From 3451a8528adbbb71f50e6686f08d7e1c7a0f3f1f Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 10 Jun 2024 10:49:16 +0300
Subject: [PATCH] Bump github.com/elastic/go-elasticsearch/v8 from 8.13.1 to
8.14.0 (#699)
Bumps
[github.com/elastic/go-elasticsearch/v8](https://github.com/elastic/go-elasticsearch)
from 8.13.1 to 8.14.0.
Release notes
Sourced from github.com/elastic/go-elasticsearch/v8's
releases.
8.14.0
API
New APIs:
Typed API
New APIs:
Transport
Changelog
Sourced from github.com/elastic/go-elasticsearch/v8's
changelog.
8.14.0
API
New APIs:
Typed API
New APIs:
Transport
Commits
[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/elastic/go-elasticsearch/v8&package-manager=go_modules&previous-version=8.13.1&new-version=8.14.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
go.mod | 6 +-
go.sum | 12 +-
.../v8/elastictransport/connection.go | 102 +-
.../v8/elastictransport/discovery.go | 19 +-
.../v8/elastictransport/version/version.go | 2 +-
.../elastic/go-elasticsearch/v8/CHANGELOG.md | 20 +
.../elastic/go-elasticsearch/v8/Makefile | 20 +-
.../go-elasticsearch/v8/elasticsearch.go | 2 +
.../go-elasticsearch/v8/esapi/api._.go | 12 +-
.../go-elasticsearch/v8/esapi/api.bulk.go | 2 +-
.../v8/esapi/api.cat.aliases.go | 2 +-
.../v8/esapi/api.cat.allocation.go | 2 +-
.../v8/esapi/api.cat.component_templates.go | 2 +-
.../v8/esapi/api.cat.count.go | 2 +-
.../v8/esapi/api.cat.fielddata.go | 2 +-
.../v8/esapi/api.cat.health.go | 2 +-
.../go-elasticsearch/v8/esapi/api.cat.help.go | 2 +-
.../v8/esapi/api.cat.indices.go | 2 +-
.../v8/esapi/api.cat.master.go | 2 +-
.../v8/esapi/api.cat.nodeattrs.go | 2 +-
.../v8/esapi/api.cat.nodes.go | 2 +-
.../v8/esapi/api.cat.pending_tasks.go | 2 +-
.../v8/esapi/api.cat.plugins.go | 2 +-
.../v8/esapi/api.cat.recovery.go | 2 +-
.../v8/esapi/api.cat.repositories.go | 2 +-
.../v8/esapi/api.cat.segments.go | 2 +-
.../v8/esapi/api.cat.shards.go | 2 +-
.../v8/esapi/api.cat.snapshots.go | 2 +-
.../v8/esapi/api.cat.tasks.go | 2 +-
.../v8/esapi/api.cat.templates.go | 2 +-
.../v8/esapi/api.cat.thread_pool.go | 2 +-
.../v8/esapi/api.clear_scroll.go | 2 +-
.../esapi/api.cluster.allocation_explain.go | 2 +-
.../api.cluster.delete_component_template.go | 2 +-
...cluster.delete_voting_config_exclusions.go | 2 +-
.../api.cluster.exists_component_template.go | 2 +-
.../api.cluster.get_component_template.go | 2 +-
.../v8/esapi/api.cluster.get_settings.go | 2 +-
.../v8/esapi/api.cluster.health.go | 2 +-
.../v8/esapi/api.cluster.info.go | 2 +-
.../v8/esapi/api.cluster.pending_tasks.go | 2 +-
...i.cluster.post_voting_config_exclusions.go | 2 +-
.../api.cluster.put_component_template.go | 2 +-
.../v8/esapi/api.cluster.put_settings.go | 2 +-
.../v8/esapi/api.cluster.remote_info.go | 2 +-
.../v8/esapi/api.cluster.reroute.go | 2 +-
.../v8/esapi/api.cluster.state.go | 2 +-
.../v8/esapi/api.cluster.stats.go | 2 +-
.../v8/esapi/api.connector.check_in.go | 2 +-
.../v8/esapi/api.connector.delete.go | 16 +-
.../v8/esapi/api.connector.get.go | 2 +-
.../v8/esapi/api.connector.last_sync.go | 2 +-
.../v8/esapi/api.connector.list.go | 2 +-
.../v8/esapi/api.connector.post.go | 2 +-
.../v8/esapi/api.connector.put.go | 2 +-
...lete.go => api.connector.secret_delete.go} | 8 +-
...ret.get.go => api.connector.secret_get.go} | 8 +-
...t.post.go => api.connector.secret_post.go} | 10 +-
...ret.put.go => api.connector.secret_put.go} | 10 +-
...el.go => api.connector.sync_job_cancel.go} | 8 +-
....go => api.connector.sync_job_check_in.go} | 8 +-
...te.go => api.connector.sync_job_delete.go} | 8 +-
...ror.go => api.connector.sync_job_error.go} | 10 +-
...b.get.go => api.connector.sync_job_get.go} | 8 +-
...list.go => api.connector.sync_job_list.go} | 8 +-
...post.go => api.connector.sync_job_post.go} | 10 +-
...=> api.connector.sync_job_update_stats.go} | 10 +-
.../api.connector.update_active_filtering.go | 229 +
.../esapi/api.connector.update_api_key_id.go | 2 +-
.../api.connector.update_configuration.go | 2 +-
.../v8/esapi/api.connector.update_error.go | 2 +-
.../esapi/api.connector.update_filtering.go | 2 +-
...i.connector.update_filtering_validation.go | 239 +
.../esapi/api.connector.update_index_name.go | 2 +-
.../v8/esapi/api.connector.update_name.go | 2 +-
.../v8/esapi/api.connector.update_native.go | 2 +-
.../v8/esapi/api.connector.update_pipeline.go | 2 +-
.../esapi/api.connector.update_scheduling.go | 2 +-
.../api.connector.update_service_type.go | 2 +-
.../v8/esapi/api.connector.update_status.go | 2 +-
.../go-elasticsearch/v8/esapi/api.count.go | 2 +-
.../go-elasticsearch/v8/esapi/api.create.go | 2 +-
....dangling_indices.delete_dangling_index.go | 2 +-
....dangling_indices.import_dangling_index.go | 2 +-
....dangling_indices.list_dangling_indices.go | 2 +-
.../go-elasticsearch/v8/esapi/api.delete.go | 2 +-
.../v8/esapi/api.delete_by_query.go | 2 +-
.../esapi/api.delete_by_query_rethrottle.go | 2 +-
.../v8/esapi/api.delete_script.go | 2 +-
.../go-elasticsearch/v8/esapi/api.exists.go | 2 +-
.../v8/esapi/api.exists_source.go | 2 +-
.../go-elasticsearch/v8/esapi/api.explain.go | 2 +-
.../v8/esapi/api.features.get_features.go | 2 +-
.../v8/esapi/api.features.reset_features.go | 2 +-
.../v8/esapi/api.field_caps.go | 2 +-
.../v8/esapi/api.fleet.delete_secret.go | 2 +-
.../v8/esapi/api.fleet.get_secret.go | 2 +-
.../v8/esapi/api.fleet.global_checkpoints.go | 2 +-
.../v8/esapi/api.fleet.msearch.go | 2 +-
.../v8/esapi/api.fleet.post_secret.go | 2 +-
.../v8/esapi/api.fleet.search.go | 2 +-
.../go-elasticsearch/v8/esapi/api.get.go | 2 +-
.../v8/esapi/api.get_script.go | 2 +-
.../v8/esapi/api.get_script_context.go | 2 +-
.../v8/esapi/api.get_script_languages.go | 2 +-
.../v8/esapi/api.get_source.go | 2 +-
.../v8/esapi/api.health_report.go | 2 +-
.../go-elasticsearch/v8/esapi/api.index.go | 2 +-
.../v8/esapi/api.indices.add_block.go | 2 +-
.../v8/esapi/api.indices.analyze.go | 2 +-
.../v8/esapi/api.indices.clear_cache.go | 2 +-
.../v8/esapi/api.indices.clone.go | 2 +-
.../v8/esapi/api.indices.close.go | 2 +-
.../v8/esapi/api.indices.create.go | 2 +-
.../v8/esapi/api.indices.delete.go | 2 +-
.../v8/esapi/api.indices.delete_alias.go | 2 +-
.../api.indices.delete_data_lifecycle.go | 2 +-
.../api.indices.delete_index_template.go | 2 +-
.../v8/esapi/api.indices.delete_template.go | 2 +-
.../v8/esapi/api.indices.disk_usage.go | 2 +-
.../v8/esapi/api.indices.downsample.go | 2 +-
.../v8/esapi/api.indices.exists.go | 2 +-
.../v8/esapi/api.indices.exists_alias.go | 2 +-
.../api.indices.exists_index_template.go | 2 +-
.../v8/esapi/api.indices.exists_template.go | 2 +-
.../api.indices.explain_data_lifecycle.go | 2 +-
.../v8/esapi/api.indices.field_usage_stats.go | 2 +-
.../v8/esapi/api.indices.flush.go | 2 +-
.../v8/esapi/api.indices.forcemerge.go | 2 +-
.../v8/esapi/api.indices.get.go | 2 +-
.../v8/esapi/api.indices.get_alias.go | 2 +-
.../esapi/api.indices.get_data_lifecycle.go | 2 +-
.../v8/esapi/api.indices.get_field_mapping.go | 2 +-
.../esapi/api.indices.get_index_template.go | 2 +-
.../v8/esapi/api.indices.get_mapping.go | 2 +-
.../v8/esapi/api.indices.get_settings.go | 2 +-
.../v8/esapi/api.indices.get_template.go | 2 +-
.../esapi/api.indices.modify_data_stream.go | 2 +-
.../v8/esapi/api.indices.open.go | 2 +-
.../v8/esapi/api.indices.put_alias.go | 2 +-
.../esapi/api.indices.put_data_lifecycle.go | 2 +-
.../esapi/api.indices.put_index_template.go | 2 +-
.../v8/esapi/api.indices.put_mapping.go | 2 +-
.../v8/esapi/api.indices.put_settings.go | 2 +-
.../v8/esapi/api.indices.put_template.go | 2 +-
.../v8/esapi/api.indices.recovery.go | 2 +-
.../v8/esapi/api.indices.refresh.go | 2 +-
.../v8/esapi/api.indices.resolve_cluster.go | 2 +-
.../v8/esapi/api.indices.resolve_index.go | 2 +-
.../v8/esapi/api.indices.rollover.go | 14 +-
.../v8/esapi/api.indices.segments.go | 2 +-
.../v8/esapi/api.indices.shard_stores.go | 2 +-
.../v8/esapi/api.indices.shrink.go | 2 +-
.../api.indices.simulate_index_template.go | 2 +-
.../v8/esapi/api.indices.simulate_template.go | 2 +-
.../v8/esapi/api.indices.split.go | 2 +-
.../v8/esapi/api.indices.stats.go | 2 +-
.../v8/esapi/api.indices.update_aliases.go | 2 +-
.../v8/esapi/api.indices.validate_query.go | 2 +-
.../v8/esapi/api.inference.delete_model.go | 2 +-
.../v8/esapi/api.inference.get_model.go | 25 +-
.../v8/esapi/api.inference.inference.go | 2 +-
.../v8/esapi/api.inference.put_model.go | 2 +-
.../go-elasticsearch/v8/esapi/api.info.go | 2 +-
.../v8/esapi/api.ingest.delete_pipeline.go | 2 +-
.../v8/esapi/api.ingest.geo_ip_stats.go | 2 +-
.../v8/esapi/api.ingest.get_pipeline.go | 2 +-
.../v8/esapi/api.ingest.processor_grok.go | 2 +-
.../v8/esapi/api.ingest.put_pipeline.go | 2 +-
.../v8/esapi/api.ingest.simulate.go | 2 +-
.../v8/esapi/api.knn_search.go | 2 +-
.../go-elasticsearch/v8/esapi/api.mget.go | 2 +-
.../go-elasticsearch/v8/esapi/api.msearch.go | 2 +-
.../v8/esapi/api.msearch_template.go | 2 +-
.../v8/esapi/api.mtermvectors.go | 2 +-
...des.clear_repositories_metering_archive.go | 2 +-
...pi.nodes.get_repositories_metering_info.go | 2 +-
.../v8/esapi/api.nodes.hot_threads.go | 2 +-
.../v8/esapi/api.nodes.info.go | 2 +-
.../esapi/api.nodes.reload_secure_settings.go | 2 +-
.../v8/esapi/api.nodes.stats.go | 2 +-
.../v8/esapi/api.nodes.usage.go | 2 +-
.../go-elasticsearch/v8/esapi/api.ping.go | 2 +-
.../v8/esapi/api.profiling.stacktraces.go | 2 +-
.../v8/esapi/api.profiling.status.go | 2 +-
.../v8/esapi/api.profiling.topn_functions.go | 225 +
.../v8/esapi/api.put_script.go | 2 +-
.../v8/esapi/api.query_ruleset.delete.go | 2 +-
.../v8/esapi/api.query_ruleset.get.go | 2 +-
.../v8/esapi/api.query_ruleset.list.go | 2 +-
.../v8/esapi/api.query_ruleset.put.go | 2 +-
.../v8/esapi/api.rank_eval.go | 2 +-
.../go-elasticsearch/v8/esapi/api.reindex.go | 2 +-
.../v8/esapi/api.reindex_rethrottle.go | 2 +-
.../v8/esapi/api.render_search_template.go | 2 +-
.../v8/esapi/api.scripts_painless_execute.go | 2 +-
.../go-elasticsearch/v8/esapi/api.scroll.go | 2 +-
.../go-elasticsearch/v8/esapi/api.search.go | 2 +-
.../v8/esapi/api.search_application.delete.go | 2 +-
...application.delete_behavioral_analytics.go | 2 +-
.../v8/esapi/api.search_application.get.go | 2 +-
...ch_application.get_behavioral_analytics.go | 2 +-
.../v8/esapi/api.search_application.list.go | 2 +-
...ication.post_behavioral_analytics_event.go | 2 +-
.../v8/esapi/api.search_application.put.go | 2 +-
...ch_application.put_behavioral_analytics.go | 2 +-
.../api.search_application.render_query.go | 2 +-
.../v8/esapi/api.search_application.search.go | 16 +-
.../v8/esapi/api.search_mvt.go | 2 +-
.../v8/esapi/api.search_shards.go | 2 +-
.../v8/esapi/api.search_template.go | 2 +-
.../v8/esapi/api.shutdown.delete_node.go | 2 +-
.../v8/esapi/api.shutdown.get_node.go | 2 +-
.../v8/esapi/api.shutdown.put_node.go | 2 +-
.../v8/esapi/api.simulate.ingest.go | 2 +-
.../esapi/api.snapshot.cleanup_repository.go | 2 +-
.../v8/esapi/api.snapshot.clone.go | 2 +-
.../v8/esapi/api.snapshot.create.go | 2 +-
.../esapi/api.snapshot.create_repository.go | 2 +-
.../v8/esapi/api.snapshot.delete.go | 2 +-
.../esapi/api.snapshot.delete_repository.go | 2 +-
.../v8/esapi/api.snapshot.get.go | 2 +-
.../v8/esapi/api.snapshot.get_repository.go | 2 +-
.../esapi/api.snapshot.repository_analyze.go | 2 +-
.../v8/esapi/api.snapshot.restore.go | 2 +-
.../v8/esapi/api.snapshot.status.go | 2 +-
.../esapi/api.snapshot.verify_repository.go | 2 +-
.../v8/esapi/api.synonyms.delete_synonym.go | 2 +-
.../esapi/api.synonyms.delete_synonym_rule.go | 2 +-
.../v8/esapi/api.synonyms.get_synonym.go | 2 +-
.../v8/esapi/api.synonyms.get_synonym_rule.go | 2 +-
.../esapi/api.synonyms.get_synonyms_sets.go | 2 +-
.../v8/esapi/api.synonyms.put_synonym.go | 2 +-
.../v8/esapi/api.synonyms.put_synonym_rule.go | 2 +-
.../v8/esapi/api.tasks.cancel.go | 2 +-
.../v8/esapi/api.tasks.get.go | 2 +-
.../v8/esapi/api.tasks.list.go | 2 +-
.../v8/esapi/api.terms_enum.go | 2 +-
.../v8/esapi/api.termvectors.go | 2 +-
.../go-elasticsearch/v8/esapi/api.update.go | 2 +-
.../v8/esapi/api.update_by_query.go | 2 +-
.../esapi/api.update_by_query_rethrottle.go | 2 +-
.../v8/esapi/api.xpack.async_search.delete.go | 2 +-
.../v8/esapi/api.xpack.async_search.get.go | 2 +-
.../v8/esapi/api.xpack.async_search.status.go | 2 +-
.../v8/esapi/api.xpack.async_search.submit.go | 2 +-
...k.autoscaling.delete_autoscaling_policy.go | 2 +-
...ck.autoscaling.get_autoscaling_capacity.go | 2 +-
...pack.autoscaling.get_autoscaling_policy.go | 2 +-
...pack.autoscaling.put_autoscaling_policy.go | 2 +-
.../api.xpack.cat.ml_data_frame_analytics.go | 2 +-
.../v8/esapi/api.xpack.cat.ml_datafeeds.go | 2 +-
.../v8/esapi/api.xpack.cat.ml_jobs.go | 2 +-
.../esapi/api.xpack.cat.ml_trained_models.go | 2 +-
.../v8/esapi/api.xpack.cat.transforms.go | 2 +-
...pi.xpack.ccr.delete_auto_follow_pattern.go | 16 +-
.../v8/esapi/api.xpack.ccr.follow.go | 15 +-
.../v8/esapi/api.xpack.ccr.follow_info.go | 16 +-
.../v8/esapi/api.xpack.ccr.follow_stats.go | 16 +-
.../v8/esapi/api.xpack.ccr.forget_follower.go | 16 +-
.../api.xpack.ccr.get_auto_follow_pattern.go | 16 +-
...api.xpack.ccr.pause_auto_follow_pattern.go | 16 +-
.../v8/esapi/api.xpack.ccr.pause_follow.go | 16 +-
.../api.xpack.ccr.put_auto_follow_pattern.go | 16 +-
...pi.xpack.ccr.resume_auto_follow_pattern.go | 16 +-
.../v8/esapi/api.xpack.ccr.resume_follow.go | 16 +-
.../v8/esapi/api.xpack.ccr.stats.go | 28 +-
.../v8/esapi/api.xpack.ccr.unfollow.go | 16 +-
.../v8/esapi/api.xpack.close_point_in_time.go | 2 +-
.../esapi/api.xpack.enrich.delete_policy.go | 2 +-
.../esapi/api.xpack.enrich.execute_policy.go | 2 +-
.../v8/esapi/api.xpack.enrich.get_policy.go | 2 +-
.../v8/esapi/api.xpack.enrich.put_policy.go | 2 +-
.../v8/esapi/api.xpack.enrich.stats.go | 2 +-
.../v8/esapi/api.xpack.eql.delete.go | 2 +-
.../v8/esapi/api.xpack.eql.get.go | 2 +-
.../v8/esapi/api.xpack.eql.get_status.go | 2 +-
.../v8/esapi/api.xpack.eql.search.go | 2 +-
.../v8/esapi/api.xpack.esql.async_query.go | 4 +-
.../esapi/api.xpack.esql.async_query_get.go | 2 +-
.../v8/esapi/api.xpack.esql.query.go | 4 +-
.../v8/esapi/api.xpack.graph.explore.go | 2 +-
.../esapi/api.xpack.ilm.delete_lifecycle.go | 2 +-
.../esapi/api.xpack.ilm.explain_lifecycle.go | 2 +-
.../v8/esapi/api.xpack.ilm.get_lifecycle.go | 2 +-
.../v8/esapi/api.xpack.ilm.get_status.go | 2 +-
.../api.xpack.ilm.migrate_to_data_tiers.go | 2 +-
.../v8/esapi/api.xpack.ilm.move_to_step.go | 2 +-
.../v8/esapi/api.xpack.ilm.put_lifecycle.go | 2 +-
.../v8/esapi/api.xpack.ilm.remove_policy.go | 2 +-
.../v8/esapi/api.xpack.ilm.retry.go | 2 +-
.../v8/esapi/api.xpack.ilm.start.go | 2 +-
.../v8/esapi/api.xpack.ilm.stop.go | 2 +-
.../api.xpack.indices.create_data_stream.go | 2 +-
.../api.xpack.indices.data_streams_stats.go | 2 +-
.../api.xpack.indices.delete_data_stream.go | 2 +-
.../api.xpack.indices.get_data_stream.go | 2 +-
...pi.xpack.indices.migrate_to_data_stream.go | 2 +-
.../api.xpack.indices.promote_data_stream.go | 2 +-
...i.xpack.indices.reload_search_analyzers.go | 2 +-
.../v8/esapi/api.xpack.indices.unfreeze.go | 2 +-
.../v8/esapi/api.xpack.license.delete.go | 2 +-
.../v8/esapi/api.xpack.license.get.go | 2 +-
.../api.xpack.license.get_basic_status.go | 2 +-
.../api.xpack.license.get_trial_status.go | 2 +-
.../v8/esapi/api.xpack.license.post.go | 2 +-
.../api.xpack.license.post_start_basic.go | 2 +-
.../api.xpack.license.post_start_trial.go | 2 +-
.../api.xpack.logstash.delete_pipeline.go | 2 +-
.../esapi/api.xpack.logstash.get_pipeline.go | 2 +-
.../esapi/api.xpack.logstash.put_pipeline.go | 2 +-
.../esapi/api.xpack.migration.deprecations.go | 2 +-
...ck.migration.get_feature_upgrade_status.go | 2 +-
...pi.xpack.migration.post_feature_upgrade.go | 2 +-
...ml.clear_trained_model_deployment_cache.go | 2 +-
.../v8/esapi/api.xpack.ml.close_job.go | 2 +-
.../v8/esapi/api.xpack.ml.delete_calendar.go | 2 +-
.../api.xpack.ml.delete_calendar_event.go | 2 +-
.../esapi/api.xpack.ml.delete_calendar_job.go | 2 +-
...pi.xpack.ml.delete_data_frame_analytics.go | 2 +-
.../v8/esapi/api.xpack.ml.delete_datafeed.go | 2 +-
.../esapi/api.xpack.ml.delete_expired_data.go | 2 +-
.../v8/esapi/api.xpack.ml.delete_filter.go | 2 +-
.../v8/esapi/api.xpack.ml.delete_forecast.go | 2 +-
.../v8/esapi/api.xpack.ml.delete_job.go | 2 +-
.../api.xpack.ml.delete_model_snapshot.go | 2 +-
.../api.xpack.ml.delete_trained_model.go | 2 +-
...api.xpack.ml.delete_trained_model_alias.go | 2 +-
.../api.xpack.ml.estimate_model_memory.go | 2 +-
.../esapi/api.xpack.ml.evaluate_data_frame.go | 2 +-
...i.xpack.ml.explain_data_frame_analytics.go | 2 +-
.../v8/esapi/api.xpack.ml.flush_job.go | 2 +-
.../v8/esapi/api.xpack.ml.forecast.go | 2 +-
.../v8/esapi/api.xpack.ml.get_buckets.go | 2 +-
.../esapi/api.xpack.ml.get_calendar_events.go | 2 +-
.../v8/esapi/api.xpack.ml.get_calendars.go | 2 +-
.../v8/esapi/api.xpack.ml.get_categories.go | 2 +-
.../api.xpack.ml.get_data_frame_analytics.go | 2 +-
...xpack.ml.get_data_frame_analytics_stats.go | 2 +-
.../esapi/api.xpack.ml.get_datafeed_stats.go | 2 +-
.../v8/esapi/api.xpack.ml.get_datafeeds.go | 2 +-
.../v8/esapi/api.xpack.ml.get_filters.go | 2 +-
.../v8/esapi/api.xpack.ml.get_influencers.go | 2 +-
.../v8/esapi/api.xpack.ml.get_job_stats.go | 2 +-
.../v8/esapi/api.xpack.ml.get_jobs.go | 2 +-
.../v8/esapi/api.xpack.ml.get_memory_stats.go | 2 +-
...ack.ml.get_model_snapshot_upgrade_stats.go | 2 +-
.../esapi/api.xpack.ml.get_model_snapshots.go | 2 +-
.../esapi/api.xpack.ml.get_overall_buckets.go | 2 +-
.../v8/esapi/api.xpack.ml.get_records.go | 2 +-
.../esapi/api.xpack.ml.get_trained_models.go | 2 +-
.../api.xpack.ml.get_trained_models_stats.go | 2 +-
.../esapi/api.xpack.ml.infer_trained_model.go | 2 +-
.../v8/esapi/api.xpack.ml.info.go | 2 +-
.../v8/esapi/api.xpack.ml.open_job.go | 2 +-
.../api.xpack.ml.post_calendar_events.go | 2 +-
.../v8/esapi/api.xpack.ml.post_data.go | 2 +-
...i.xpack.ml.preview_data_frame_analytics.go | 2 +-
.../v8/esapi/api.xpack.ml.preview_datafeed.go | 2 +-
.../v8/esapi/api.xpack.ml.put_calendar.go | 2 +-
.../v8/esapi/api.xpack.ml.put_calendar_job.go | 2 +-
.../api.xpack.ml.put_data_frame_analytics.go | 2 +-
.../v8/esapi/api.xpack.ml.put_datafeed.go | 2 +-
.../v8/esapi/api.xpack.ml.put_filter.go | 2 +-
.../v8/esapi/api.xpack.ml.put_job.go | 2 +-
.../esapi/api.xpack.ml.put_trained_model.go | 2 +-
.../api.xpack.ml.put_trained_model_alias.go | 2 +-
...ck.ml.put_trained_model_definition_part.go | 2 +-
...i.xpack.ml.put_trained_model_vocabulary.go | 2 +-
.../v8/esapi/api.xpack.ml.reset_job.go | 2 +-
.../api.xpack.ml.revert_model_snapshot.go | 2 +-
.../v8/esapi/api.xpack.ml.set_upgrade_mode.go | 2 +-
...api.xpack.ml.start_data_frame_analytics.go | 2 +-
.../v8/esapi/api.xpack.ml.start_datafeed.go | 2 +-
...xpack.ml.start_trained_model_deployment.go | 2 +-
.../api.xpack.ml.stop_data_frame_analytics.go | 2 +-
.../v8/esapi/api.xpack.ml.stop_datafeed.go | 2 +-
....xpack.ml.stop_trained_model_deployment.go | 2 +-
...pi.xpack.ml.update_data_frame_analytics.go | 2 +-
.../v8/esapi/api.xpack.ml.update_datafeed.go | 2 +-
.../v8/esapi/api.xpack.ml.update_filter.go | 2 +-
.../v8/esapi/api.xpack.ml.update_job.go | 2 +-
.../api.xpack.ml.update_model_snapshot.go | 2 +-
...pack.ml.update_trained_model_deployment.go | 2 +-
.../api.xpack.ml.upgrade_job_snapshot.go | 2 +-
.../v8/esapi/api.xpack.ml.validate.go | 2 +-
.../esapi/api.xpack.ml.validate_detector.go | 2 +-
.../v8/esapi/api.xpack.monitoring.bulk.go | 2 +-
.../v8/esapi/api.xpack.open_point_in_time.go | 2 +-
.../esapi/api.xpack.profiling.flamegraph.go | 2 +-
.../v8/esapi/api.xpack.rollup.delete_job.go | 2 +-
.../v8/esapi/api.xpack.rollup.get_jobs.go | 2 +-
.../esapi/api.xpack.rollup.get_rollup_caps.go | 2 +-
.../api.xpack.rollup.get_rollup_index_caps.go | 2 +-
.../v8/esapi/api.xpack.rollup.put_job.go | 2 +-
.../esapi/api.xpack.rollup.rollup_search.go | 2 +-
.../v8/esapi/api.xpack.rollup.start_job.go | 2 +-
.../v8/esapi/api.xpack.rollup.stop_job.go | 2 +-
....xpack.searchable_snapshots.cache_stats.go | 2 +-
....xpack.searchable_snapshots.clear_cache.go | 2 +-
.../api.xpack.searchable_snapshots.mount.go | 2 +-
.../api.xpack.searchable_snapshots.stats.go | 2 +-
...pi.xpack.security.activate_user_profile.go | 2 +-
.../esapi/api.xpack.security.authenticate.go | 2 +-
...api.xpack.security.bulk_update_api_keys.go | 2 +-
.../api.xpack.security.change_password.go | 2 +-
.../api.xpack.security.clear_api_key_cache.go | 2 +-
....xpack.security.clear_cached_privileges.go | 2 +-
.../api.xpack.security.clear_cached_realms.go | 2 +-
.../api.xpack.security.clear_cached_roles.go | 2 +-
...ck.security.clear_cached_service_tokens.go | 2 +-
.../api.xpack.security.create_api_key.go | 2 +-
...k.security.create_cross_cluster_api_key.go | 2 +-
...api.xpack.security.create_service_token.go | 8 +-
.../api.xpack.security.delete_privileges.go | 2 +-
.../esapi/api.xpack.security.delete_role.go | 2 +-
.../api.xpack.security.delete_role_mapping.go | 2 +-
...api.xpack.security.delete_service_token.go | 2 +-
.../esapi/api.xpack.security.delete_user.go | 2 +-
.../esapi/api.xpack.security.disable_user.go | 2 +-
...api.xpack.security.disable_user_profile.go | 2 +-
.../esapi/api.xpack.security.enable_user.go | 2 +-
.../api.xpack.security.enable_user_profile.go | 2 +-
.../esapi/api.xpack.security.enroll_kibana.go | 2 +-
.../esapi/api.xpack.security.enroll_node.go | 2 +-
.../esapi/api.xpack.security.get_api_key.go | 28 +-
...i.xpack.security.get_builtin_privileges.go | 2 +-
.../api.xpack.security.get_privileges.go | 2 +-
.../v8/esapi/api.xpack.security.get_role.go | 2 +-
.../api.xpack.security.get_role_mapping.go | 2 +-
...api.xpack.security.get_service_accounts.go | 2 +-
....xpack.security.get_service_credentials.go | 2 +-
.../esapi/api.xpack.security.get_settings.go | 2 +-
.../v8/esapi/api.xpack.security.get_token.go | 2 +-
.../v8/esapi/api.xpack.security.get_user.go | 2 +-
.../api.xpack.security.get_user_privileges.go | 2 +-
.../api.xpack.security.get_user_profile.go | 2 +-
.../esapi/api.xpack.security.grant_api_key.go | 2 +-
.../api.xpack.security.has_privileges.go | 2 +-
...ck.security.has_privileges_user_profile.go | 2 +-
.../api.xpack.security.invalidate_api_key.go | 2 +-
.../api.xpack.security.invalidate_token.go | 2 +-
.../api.xpack.security.oidc_authenticate.go | 2 +-
.../esapi/api.xpack.security.oidc_logout.go | 2 +-
...ck.security.oidc_prepare_authentication.go | 2 +-
.../api.xpack.security.put_privileges.go | 2 +-
.../v8/esapi/api.xpack.security.put_role.go | 2 +-
.../api.xpack.security.put_role_mapping.go | 2 +-
.../v8/esapi/api.xpack.security.put_user.go | 2 +-
.../api.xpack.security.query_api_keys.go | 28 +-
.../v8/esapi/api.xpack.security.query_user.go | 2 +-
.../api.xpack.security.saml_authenticate.go | 2 +-
...api.xpack.security.saml_complete_logout.go | 2 +-
.../api.xpack.security.saml_invalidate.go | 2 +-
.../esapi/api.xpack.security.saml_logout.go | 2 +-
...ck.security.saml_prepare_authentication.go | 2 +-
...security.saml_service_provider_metadata.go | 2 +-
...pi.xpack.security.suggest_user_profiles.go | 2 +-
.../api.xpack.security.update_api_key.go | 2 +-
...k.security.update_cross_cluster_api_key.go | 2 +-
.../api.xpack.security.update_settings.go | 2 +-
...xpack.security.update_user_profile_data.go | 2 +-
.../esapi/api.xpack.slm.delete_lifecycle.go | 2 +-
.../esapi/api.xpack.slm.execute_lifecycle.go | 2 +-
.../esapi/api.xpack.slm.execute_retention.go | 2 +-
.../v8/esapi/api.xpack.slm.get_lifecycle.go | 2 +-
.../v8/esapi/api.xpack.slm.get_stats.go | 2 +-
.../v8/esapi/api.xpack.slm.get_status.go | 2 +-
.../v8/esapi/api.xpack.slm.put_lifecycle.go | 2 +-
.../v8/esapi/api.xpack.slm.start.go | 2 +-
.../v8/esapi/api.xpack.slm.stop.go | 2 +-
.../v8/esapi/api.xpack.sql.clear_cursor.go | 2 +-
.../v8/esapi/api.xpack.sql.delete_async.go | 2 +-
.../v8/esapi/api.xpack.sql.get_async.go | 2 +-
.../esapi/api.xpack.sql.get_async_status.go | 2 +-
.../v8/esapi/api.xpack.sql.query.go | 2 +-
.../v8/esapi/api.xpack.sql.translate.go | 2 +-
.../v8/esapi/api.xpack.ssl.certificates.go | 2 +-
...ack.text_structure.find_field_structure.go | 386 ++
...k.text_structure.find_message_structure.go | 360 ++
...api.xpack.text_structure.find_structure.go | 2 +-
....xpack.text_structure.test_grok_pattern.go | 2 +-
.../api.xpack.transform.delete_transform.go | 2 +-
.../api.xpack.transform.get_transform.go | 2 +-
...api.xpack.transform.get_transform_stats.go | 2 +-
.../api.xpack.transform.preview_transform.go | 2 +-
.../api.xpack.transform.put_transform.go | 2 +-
.../api.xpack.transform.reset_transform.go | 2 +-
....xpack.transform.schedule_now_transform.go | 2 +-
.../api.xpack.transform.start_transform.go | 2 +-
.../api.xpack.transform.stop_transform.go | 2 +-
.../api.xpack.transform.update_transform.go | 2 +-
.../api.xpack.transform.upgrade_transforms.go | 2 +-
.../v8/esapi/api.xpack.watcher.ack_watch.go | 2 +-
.../esapi/api.xpack.watcher.activate_watch.go | 2 +-
.../api.xpack.watcher.deactivate_watch.go | 2 +-
.../esapi/api.xpack.watcher.delete_watch.go | 2 +-
.../esapi/api.xpack.watcher.execute_watch.go | 2 +-
.../esapi/api.xpack.watcher.get_settings.go | 2 +-
.../v8/esapi/api.xpack.watcher.get_watch.go | 2 +-
.../v8/esapi/api.xpack.watcher.put_watch.go | 2 +-
.../esapi/api.xpack.watcher.query_watches.go | 2 +-
.../v8/esapi/api.xpack.watcher.start.go | 2 +-
.../v8/esapi/api.xpack.watcher.stats.go | 2 +-
.../v8/esapi/api.xpack.watcher.stop.go | 2 +-
.../api.xpack.watcher.update_settings.go | 2 +-
.../v8/esapi/api.xpack.xpack.info.go | 2 +-
.../v8/esapi/api.xpack.xpack.usage.go | 2 +-
.../v8/internal/version/version.go | 2 +-
.../go-elasticsearch/v8/typedapi/api._.go | 7 +-
.../v8/typedapi/asyncsearch/delete/delete.go | 50 +-
.../typedapi/asyncsearch/delete/response.go | 4 +-
.../v8/typedapi/asyncsearch/get/get.go | 49 +-
.../v8/typedapi/asyncsearch/get/response.go | 4 +-
.../typedapi/asyncsearch/status/response.go | 4 +-
.../v8/typedapi/asyncsearch/status/status.go | 50 +-
.../v8/typedapi/asyncsearch/submit/request.go | 27 +-
.../typedapi/asyncsearch/submit/response.go | 4 +-
.../v8/typedapi/asyncsearch/submit/submit.go | 48 +-
.../delete_autoscaling_policy.go | 50 +-
.../deleteautoscalingpolicy/response.go | 4 +-
.../get_autoscaling_capacity.go | 50 +-
.../getautoscalingcapacity/response.go | 4 +-
.../get_autoscaling_policy.go | 50 +-
.../getautoscalingpolicy/response.go | 4 +-
.../put_autoscaling_policy.go | 47 +-
.../putautoscalingpolicy/request.go | 4 +-
.../putautoscalingpolicy/response.go | 4 +-
.../v8/typedapi/cat/aliases/aliases.go | 113 +-
.../v8/typedapi/cat/aliases/response.go | 4 +-
.../v8/typedapi/cat/allocation/allocation.go | 113 +-
.../v8/typedapi/cat/allocation/response.go | 4 +-
.../componenttemplates/component_templates.go | 113 +-
.../cat/componenttemplates/response.go | 4 +-
.../v8/typedapi/cat/count/count.go | 113 +-
.../v8/typedapi/cat/count/response.go | 4 +-
.../v8/typedapi/cat/fielddata/fielddata.go | 113 +-
.../v8/typedapi/cat/fielddata/response.go | 4 +-
.../v8/typedapi/cat/health/health.go | 112 +-
.../v8/typedapi/cat/health/response.go | 4 +-
.../v8/typedapi/cat/help/help.go | 113 +-
.../v8/typedapi/cat/help/response.go | 4 +-
.../v8/typedapi/cat/indices/indices.go | 112 +-
.../v8/typedapi/cat/indices/response.go | 4 +-
.../v8/typedapi/cat/master/master.go | 113 +-
.../v8/typedapi/cat/master/response.go | 4 +-
.../typedapi/cat/mldatafeeds/ml_datafeeds.go | 94 +-
.../v8/typedapi/cat/mldatafeeds/response.go | 4 +-
.../ml_data_frame_analytics.go | 94 +-
.../cat/mldataframeanalytics/response.go | 4 +-
.../v8/typedapi/cat/mljobs/ml_jobs.go | 94 +-
.../v8/typedapi/cat/mljobs/response.go | 4 +-
.../cat/mltrainedmodels/ml_trained_models.go | 94 +-
.../typedapi/cat/mltrainedmodels/response.go | 4 +-
.../v8/typedapi/cat/nodeattrs/nodeattrs.go | 113 +-
.../v8/typedapi/cat/nodeattrs/response.go | 4 +-
.../v8/typedapi/cat/nodes/nodes.go | 112 +-
.../v8/typedapi/cat/nodes/response.go | 4 +-
.../cat/pendingtasks/pending_tasks.go | 113 +-
.../v8/typedapi/cat/pendingtasks/response.go | 4 +-
.../v8/typedapi/cat/plugins/plugins.go | 113 +-
.../v8/typedapi/cat/plugins/response.go | 4 +-
.../v8/typedapi/cat/recovery/recovery.go | 112 +-
.../v8/typedapi/cat/recovery/response.go | 4 +-
.../typedapi/cat/repositories/repositories.go | 113 +-
.../v8/typedapi/cat/repositories/response.go | 4 +-
.../v8/typedapi/cat/segments/response.go | 4 +-
.../v8/typedapi/cat/segments/segments.go | 113 +-
.../v8/typedapi/cat/shards/response.go | 4 +-
.../v8/typedapi/cat/shards/shards.go | 113 +-
.../v8/typedapi/cat/snapshots/response.go | 4 +-
.../v8/typedapi/cat/snapshots/snapshots.go | 112 +-
.../v8/typedapi/cat/tasks/response.go | 4 +-
.../v8/typedapi/cat/tasks/tasks.go | 112 +-
.../v8/typedapi/cat/templates/response.go | 4 +-
.../v8/typedapi/cat/templates/templates.go | 113 +-
.../v8/typedapi/cat/threadpool/response.go | 4 +-
.../v8/typedapi/cat/threadpool/thread_pool.go | 113 +-
.../v8/typedapi/cat/transforms/response.go | 4 +-
.../v8/typedapi/cat/transforms/transforms.go | 94 +-
.../delete_auto_follow_pattern.go | 50 +-
.../ccr/deleteautofollowpattern/response.go | 4 +-
.../v8/typedapi/ccr/follow/follow.go | 47 +-
.../v8/typedapi/ccr/follow/request.go | 15 +-
.../v8/typedapi/ccr/follow/response.go | 4 +-
.../v8/typedapi/ccr/followinfo/follow_info.go | 50 +-
.../v8/typedapi/ccr/followinfo/response.go | 4 +-
.../typedapi/ccr/followstats/follow_stats.go | 50 +-
.../v8/typedapi/ccr/followstats/response.go | 4 +-
.../ccr/forgetfollower/forget_follower.go | 47 +-
.../v8/typedapi/ccr/forgetfollower/request.go | 5 +-
.../typedapi/ccr/forgetfollower/response.go | 4 +-
.../get_auto_follow_pattern.go | 50 +-
.../ccr/getautofollowpattern/response.go | 4 +-
.../pause_auto_follow_pattern.go | 50 +-
.../ccr/pauseautofollowpattern/response.go | 4 +-
.../typedapi/ccr/pausefollow/pause_follow.go | 50 +-
.../v8/typedapi/ccr/pausefollow/response.go | 4 +-
.../put_auto_follow_pattern.go | 47 +-
.../ccr/putautofollowpattern/request.go | 15 +-
.../ccr/putautofollowpattern/response.go | 4 +-
.../ccr/resumeautofollowpattern/response.go | 4 +-
.../resume_auto_follow_pattern.go | 50 +-
.../v8/typedapi/ccr/resumefollow/request.go | 15 +-
.../v8/typedapi/ccr/resumefollow/response.go | 4 +-
.../ccr/resumefollow/resume_follow.go | 47 +-
.../v8/typedapi/ccr/stats/response.go | 4 +-
.../v8/typedapi/ccr/stats/stats.go | 50 +-
.../v8/typedapi/ccr/unfollow/response.go | 4 +-
.../v8/typedapi/ccr/unfollow/unfollow.go | 50 +-
.../allocationexplain/allocation_explain.go | 46 +-
.../cluster/allocationexplain/request.go | 9 +-
.../cluster/allocationexplain/response.go | 4 +-
.../delete_component_template.go | 50 +-
.../deletecomponenttemplate/response.go | 4 +-
.../delete_voting_config_exclusions.go | 49 +-
.../exists_component_template.go | 49 +-
.../get_component_template.go | 49 +-
.../cluster/getcomponenttemplate/response.go | 4 +-
.../cluster/getsettings/get_settings.go | 49 +-
.../typedapi/cluster/getsettings/response.go | 4 +-
.../v8/typedapi/cluster/health/health.go | 51 +-
.../v8/typedapi/cluster/health/response.go | 4 +-
.../v8/typedapi/cluster/info/info.go | 50 +-
.../v8/typedapi/cluster/info/response.go | 4 +-
.../cluster/pendingtasks/pending_tasks.go | 49 +-
.../typedapi/cluster/pendingtasks/response.go | 4 +-
.../post_voting_config_exclusions.go | 50 +-
.../put_component_template.go | 64 +-
.../cluster/putcomponenttemplate/request.go | 29 +-
.../cluster/putcomponenttemplate/response.go | 4 +-
.../cluster/putsettings/put_settings.go | 46 +-
.../typedapi/cluster/putsettings/request.go | 5 +-
.../typedapi/cluster/putsettings/response.go | 4 +-
.../cluster/remoteinfo/remote_info.go | 50 +-
.../typedapi/cluster/remoteinfo/response.go | 8 +-
.../v8/typedapi/cluster/reroute/request.go | 5 +-
.../v8/typedapi/cluster/reroute/reroute.go | 46 +-
.../v8/typedapi/cluster/reroute/response.go | 4 +-
.../v8/typedapi/cluster/state/response.go | 4 +-
.../v8/typedapi/cluster/state/state.go | 49 +-
.../v8/typedapi/cluster/stats/response.go | 4 +-
.../v8/typedapi/cluster/stats/stats.go | 49 +-
.../v8/typedapi/core/bulk/bulk.go | 46 +-
.../v8/typedapi/core/bulk/request.go | 6 +-
.../v8/typedapi/core/bulk/response.go | 4 +-
.../typedapi/core/clearscroll/clear_scroll.go | 50 +-
.../v8/typedapi/core/clearscroll/request.go | 5 +-
.../v8/typedapi/core/clearscroll/response.go | 4 +-
.../closepointintime/close_point_in_time.go | 50 +-
.../typedapi/core/closepointintime/request.go | 5 +-
.../core/closepointintime/response.go | 4 +-
.../v8/typedapi/core/count/count.go | 46 +-
.../v8/typedapi/core/count/request.go | 5 +-
.../v8/typedapi/core/count/response.go | 4 +-
.../v8/typedapi/core/create/create.go | 55 +-
.../v8/typedapi/core/create/request.go | 4 +-
.../v8/typedapi/core/create/response.go | 8 +-
.../v8/typedapi/core/delete/delete.go | 52 +-
.../v8/typedapi/core/delete/response.go | 8 +-
.../core/deletebyquery/delete_by_query.go | 46 +-
.../v8/typedapi/core/deletebyquery/request.go | 5 +-
.../typedapi/core/deletebyquery/response.go | 4 +-
.../delete_by_query_rethrottle.go | 50 +-
.../core/deletebyqueryrethrottle/response.go | 4 +-
.../core/deletescript/delete_script.go | 50 +-
.../v8/typedapi/core/deletescript/response.go | 4 +-
.../v8/typedapi/core/exists/exists.go | 49 +-
.../core/existssource/exists_source.go | 49 +-
.../v8/typedapi/core/explain/explain.go | 46 +-
.../v8/typedapi/core/explain/request.go | 5 +-
.../v8/typedapi/core/explain/response.go | 4 +-
.../v8/typedapi/core/fieldcaps/field_caps.go | 46 +-
.../v8/typedapi/core/fieldcaps/request.go | 5 +-
.../v8/typedapi/core/fieldcaps/response.go | 4 +-
.../v8/typedapi/core/get/get.go | 51 +-
.../v8/typedapi/core/get/response.go | 4 +-
.../v8/typedapi/core/getscript/get_script.go | 50 +-
.../v8/typedapi/core/getscript/response.go | 4 +-
.../getscriptcontext/get_script_context.go | 50 +-
.../core/getscriptcontext/response.go | 4 +-
.../get_script_languages.go | 50 +-
.../core/getscriptlanguages/response.go | 4 +-
.../v8/typedapi/core/getsource/get_source.go | 49 +-
.../v8/typedapi/core/getsource/response.go | 4 +-
.../core/healthreport/health_report.go | 49 +-
.../v8/typedapi/core/healthreport/response.go | 4 +-
.../v8/typedapi/core/index/index.go | 54 +-
.../v8/typedapi/core/index/request.go | 4 +-
.../v8/typedapi/core/index/response.go | 8 +-
.../v8/typedapi/core/info/info.go | 50 +-
.../v8/typedapi/core/info/response.go | 4 +-
.../v8/typedapi/core/knnsearch/knn_search.go | 47 +-
.../v8/typedapi/core/knnsearch/request.go | 5 +-
.../v8/typedapi/core/knnsearch/response.go | 4 +-
.../v8/typedapi/core/mget/mget.go | 46 +-
.../v8/typedapi/core/mget/request.go | 5 +-
.../v8/typedapi/core/mget/response.go | 4 +-
.../v8/typedapi/core/msearch/msearch.go | 46 +-
.../v8/typedapi/core/msearch/request.go | 4 +-
.../v8/typedapi/core/msearch/response.go | 6 +-
.../core/msearchtemplate/msearch_template.go | 46 +-
.../typedapi/core/msearchtemplate/request.go | 4 +-
.../typedapi/core/msearchtemplate/response.go | 6 +-
.../core/mtermvectors/mtermvectors.go | 46 +-
.../v8/typedapi/core/mtermvectors/request.go | 5 +-
.../v8/typedapi/core/mtermvectors/response.go | 4 +-
.../openpointintime/open_point_in_time.go | 49 +-
.../typedapi/core/openpointintime/response.go | 4 +-
.../v8/typedapi/core/ping/ping.go | 50 +-
.../v8/typedapi/core/putscript/put_script.go | 47 +-
.../v8/typedapi/core/putscript/request.go | 5 +-
.../v8/typedapi/core/putscript/response.go | 4 +-
.../v8/typedapi/core/rankeval/rank_eval.go | 46 +-
.../v8/typedapi/core/rankeval/request.go | 5 +-
.../v8/typedapi/core/rankeval/response.go | 4 +-
.../v8/typedapi/core/reindex/reindex.go | 46 +-
.../v8/typedapi/core/reindex/request.go | 9 +-
.../v8/typedapi/core/reindex/response.go | 4 +-
.../reindexrethrottle/reindex_rethrottle.go | 50 +-
.../core/reindexrethrottle/response.go | 4 +-
.../render_search_template.go | 47 +-
.../core/rendersearchtemplate/request.go | 5 +-
.../core/rendersearchtemplate/response.go | 4 +-
.../core/scriptspainlessexecute/request.go | 5 +-
.../core/scriptspainlessexecute/response.go | 4 +-
.../scripts_painless_execute.go | 47 +-
.../v8/typedapi/core/scroll/request.go | 5 +-
.../v8/typedapi/core/scroll/response.go | 24 +-
.../v8/typedapi/core/scroll/scroll.go | 46 +-
.../v8/typedapi/core/search/request.go | 36 +-
.../v8/typedapi/core/search/response.go | 24 +-
.../v8/typedapi/core/search/search.go | 59 +-
.../v8/typedapi/core/searchmvt/request.go | 17 +-
.../v8/typedapi/core/searchmvt/response.go | 4 +-
.../v8/typedapi/core/searchmvt/search_mvt.go | 47 +-
.../v8/typedapi/core/searchshards/response.go | 4 +-
.../core/searchshards/search_shards.go | 49 +-
.../typedapi/core/searchtemplate/request.go | 9 +-
.../typedapi/core/searchtemplate/response.go | 24 +-
.../core/searchtemplate/search_template.go | 46 +-
.../v8/typedapi/core/termsenum/request.go | 9 +-
.../v8/typedapi/core/termsenum/response.go | 4 +-
.../v8/typedapi/core/termsenum/terms_enum.go | 47 +-
.../v8/typedapi/core/termvectors/request.go | 5 +-
.../v8/typedapi/core/termvectors/response.go | 4 +-
.../typedapi/core/termvectors/termvectors.go | 48 +-
.../v8/typedapi/core/update/request.go | 11 +-
.../v8/typedapi/core/update/response.go | 8 +-
.../v8/typedapi/core/update/update.go | 50 +-
.../v8/typedapi/core/updatebyquery/request.go | 7 +-
.../typedapi/core/updatebyquery/response.go | 4 +-
.../core/updatebyquery/update_by_query.go | 46 +-
.../core/updatebyqueryrethrottle/response.go | 4 +-
.../update_by_query_rethrottle.go | 50 +-
.../delete_dangling_index.go | 49 +-
.../deletedanglingindex/response.go | 4 +-
.../import_dangling_index.go | 49 +-
.../importdanglingindex/response.go | 4 +-
.../list_dangling_indices.go | 50 +-
.../listdanglingindices/response.go | 4 +-
.../enrich/deletepolicy/delete_policy.go | 50 +-
.../typedapi/enrich/deletepolicy/response.go | 4 +-
.../enrich/executepolicy/execute_policy.go | 49 +-
.../typedapi/enrich/executepolicy/response.go | 4 +-
.../typedapi/enrich/getpolicy/get_policy.go | 50 +-
.../v8/typedapi/enrich/getpolicy/response.go | 4 +-
.../typedapi/enrich/putpolicy/put_policy.go | 47 +-
.../v8/typedapi/enrich/putpolicy/request.go | 5 +-
.../v8/typedapi/enrich/putpolicy/response.go | 4 +-
.../v8/typedapi/enrich/stats/response.go | 4 +-
.../v8/typedapi/enrich/stats/stats.go | 50 +-
.../v8/typedapi/eql/delete/delete.go | 50 +-
.../v8/typedapi/eql/delete/response.go | 4 +-
.../v8/typedapi/eql/get/get.go | 50 +-
.../v8/typedapi/eql/get/response.go | 4 +-
.../v8/typedapi/eql/getstatus/get_status.go | 50 +-
.../v8/typedapi/eql/getstatus/response.go | 4 +-
.../v8/typedapi/eql/search/request.go | 9 +-
.../v8/typedapi/eql/search/response.go | 4 +-
.../v8/typedapi/eql/search/search.go | 46 +-
.../v8/typedapi/esql/query/helpers.go | 191 +
.../v8/typedapi/esql/query/query.go | 47 +-
.../v8/typedapi/esql/query/request.go | 5 +-
.../v8/typedapi/esql/query/response.go | 4 +-
.../features/getfeatures/get_features.go | 50 +-
.../typedapi/features/getfeatures/response.go | 4 +-
.../features/resetfeatures/reset_features.go | 50 +-
.../features/resetfeatures/response.go | 4 +-
.../globalcheckpoints/global_checkpoints.go | 49 +-
.../fleet/globalcheckpoints/response.go | 4 +-
.../v8/typedapi/fleet/msearch/msearch.go | 46 +-
.../v8/typedapi/fleet/msearch/request.go | 4 +-
.../v8/typedapi/fleet/msearch/response.go | 4 +-
.../typedapi/fleet/postsecret/post_secret.go | 5 +-
.../v8/typedapi/fleet/search/request.go | 23 +-
.../v8/typedapi/fleet/search/response.go | 24 +-
.../v8/typedapi/fleet/search/search.go | 46 +-
.../v8/typedapi/graph/explore/explore.go | 47 +-
.../v8/typedapi/graph/explore/request.go | 5 +-
.../v8/typedapi/graph/explore/response.go | 4 +-
.../ilm/deletelifecycle/delete_lifecycle.go | 50 +-
.../typedapi/ilm/deletelifecycle/response.go | 4 +-
.../ilm/explainlifecycle/explain_lifecycle.go | 49 +-
.../typedapi/ilm/explainlifecycle/response.go | 6 +-
.../ilm/getlifecycle/get_lifecycle.go | 50 +-
.../v8/typedapi/ilm/getlifecycle/response.go | 4 +-
.../v8/typedapi/ilm/getstatus/get_status.go | 50 +-
.../v8/typedapi/ilm/getstatus/response.go | 4 +-
.../migrate_to_data_tiers.go | 46 +-
.../ilm/migratetodatatiers/request.go | 5 +-
.../ilm/migratetodatatiers/response.go | 6 +-
.../typedapi/ilm/movetostep/move_to_step.go | 47 +-
.../v8/typedapi/ilm/movetostep/request.go | 5 +-
.../v8/typedapi/ilm/movetostep/response.go | 4 +-
.../ilm/putlifecycle/put_lifecycle.go | 47 +-
.../v8/typedapi/ilm/putlifecycle/request.go | 5 +-
.../v8/typedapi/ilm/putlifecycle/response.go | 4 +-
.../ilm/removepolicy/remove_policy.go | 50 +-
.../v8/typedapi/ilm/removepolicy/response.go | 4 +-
.../v8/typedapi/ilm/retry/response.go | 4 +-
.../v8/typedapi/ilm/retry/retry.go | 50 +-
.../v8/typedapi/ilm/start/response.go | 4 +-
.../v8/typedapi/ilm/start/start.go | 50 +-
.../v8/typedapi/ilm/stop/response.go | 4 +-
.../v8/typedapi/ilm/stop/stop.go | 50 +-
.../v8/typedapi/indices/addblock/add_block.go | 49 +-
.../v8/typedapi/indices/addblock/response.go | 4 +-
.../v8/typedapi/indices/analyze/analyze.go | 47 +-
.../v8/typedapi/indices/analyze/request.go | 21 +-
.../v8/typedapi/indices/analyze/response.go | 4 +-
.../indices/clearcache/clear_cache.go | 49 +-
.../typedapi/indices/clearcache/response.go | 4 +-
.../v8/typedapi/indices/clone/clone.go | 47 +-
.../v8/typedapi/indices/clone/request.go | 5 +-
.../v8/typedapi/indices/clone/response.go | 4 +-
.../v8/typedapi/indices/close/close.go | 49 +-
.../v8/typedapi/indices/close/response.go | 4 +-
.../v8/typedapi/indices/create/create.go | 47 +-
.../v8/typedapi/indices/create/request.go | 5 +-
.../v8/typedapi/indices/create/response.go | 4 +-
.../createdatastream/create_data_stream.go | 50 +-
.../indices/createdatastream/response.go | 4 +-
.../datastreamsstats/data_streams_stats.go | 50 +-
.../indices/datastreamsstats/response.go | 4 +-
.../v8/typedapi/indices/delete/delete.go | 49 +-
.../v8/typedapi/indices/delete/response.go | 4 +-
.../indices/deletealias/delete_alias.go | 50 +-
.../typedapi/indices/deletealias/response.go | 4 +-
.../delete_data_lifecycle.go | 50 +-
.../indices/deletedatalifecycle/response.go | 4 +-
.../deletedatastream/delete_data_stream.go | 50 +-
.../indices/deletedatastream/response.go | 4 +-
.../delete_index_template.go | 50 +-
.../indices/deleteindextemplate/response.go | 4 +-
.../indices/deletetemplate/delete_template.go | 50 +-
.../indices/deletetemplate/response.go | 4 +-
.../typedapi/indices/diskusage/disk_usage.go | 49 +-
.../v8/typedapi/indices/diskusage/response.go | 4 +-
.../typedapi/indices/downsample/downsample.go | 47 +-
.../v8/typedapi/indices/downsample/request.go | 4 +-
.../typedapi/indices/downsample/response.go | 4 +-
.../v8/typedapi/indices/exists/exists.go | 49 +-
.../indices/existsalias/exists_alias.go | 49 +-
.../exists_index_template.go | 50 +-
.../indices/existstemplate/exists_template.go | 49 +-
.../explain_data_lifecycle.go | 49 +-
.../indices/explaindatalifecycle/response.go | 4 +-
.../fieldusagestats/field_usage_stats.go | 49 +-
.../indices/fieldusagestats/response.go | 4 +-
.../v8/typedapi/indices/flush/flush.go | 49 +-
.../v8/typedapi/indices/flush/response.go | 4 +-
.../typedapi/indices/forcemerge/forcemerge.go | 49 +-
.../typedapi/indices/forcemerge/response.go | 4 +-
.../v8/typedapi/indices/get/get.go | 49 +-
.../v8/typedapi/indices/get/response.go | 4 +-
.../v8/typedapi/indices/getalias/get_alias.go | 51 +-
.../v8/typedapi/indices/getalias/response.go | 4 +-
.../getdatalifecycle/get_data_lifecycle.go | 49 +-
.../indices/getdatalifecycle/response.go | 4 +-
.../indices/getdatastream/get_data_stream.go | 49 +-
.../indices/getdatastream/response.go | 4 +-
.../getfieldmapping/get_field_mapping.go | 49 +-
.../indices/getfieldmapping/response.go | 4 +-
.../getindextemplate/get_index_template.go | 49 +-
.../indices/getindextemplate/response.go | 4 +-
.../indices/getmapping/get_mapping.go | 49 +-
.../typedapi/indices/getmapping/response.go | 4 +-
.../indices/getsettings/get_settings.go | 49 +-
.../typedapi/indices/getsettings/response.go | 4 +-
.../indices/gettemplate/get_template.go | 49 +-
.../typedapi/indices/gettemplate/response.go | 4 +-
.../migrate_to_data_stream.go | 50 +-
.../indices/migratetodatastream/response.go | 4 +-
.../modifydatastream/modify_data_stream.go | 47 +-
.../indices/modifydatastream/request.go | 5 +-
.../indices/modifydatastream/response.go | 4 +-
.../v8/typedapi/indices/open/open.go | 49 +-
.../v8/typedapi/indices/open/response.go | 4 +-
.../promotedatastream/promote_data_stream.go | 50 +-
.../indices/promotedatastream/response.go | 4 +-
.../v8/typedapi/indices/putalias/put_alias.go | 47 +-
.../v8/typedapi/indices/putalias/request.go | 7 +-
.../v8/typedapi/indices/putalias/response.go | 4 +-
.../putdatalifecycle/put_data_lifecycle.go | 47 +-
.../indices/putdatalifecycle/request.go | 5 +-
.../indices/putdatalifecycle/response.go | 4 +-
.../putindextemplate/put_index_template.go | 102 +-
.../indices/putindextemplate/request.go | 64 +-
.../indices/putindextemplate/response.go | 4 +-
.../indices/putmapping/put_mapping.go | 46 +-
.../v8/typedapi/indices/putmapping/request.go | 17 +-
.../typedapi/indices/putmapping/response.go | 4 +-
.../indices/putsettings/put_settings.go | 46 +-
.../typedapi/indices/putsettings/request.go | 4 +-
.../typedapi/indices/putsettings/response.go | 4 +-
.../indices/puttemplate/put_template.go | 65 +-
.../typedapi/indices/puttemplate/request.go | 15 +-
.../typedapi/indices/puttemplate/response.go | 4 +-
.../v8/typedapi/indices/recovery/recovery.go | 49 +-
.../v8/typedapi/indices/recovery/response.go | 4 +-
.../v8/typedapi/indices/refresh/refresh.go | 49 +-
.../v8/typedapi/indices/refresh/response.go | 4 +-
.../reload_search_analyzers.go | 49 +-
.../indices/reloadsearchanalyzers/response.go | 4 +-
.../indices/resolvecluster/resolve_cluster.go | 49 +-
.../indices/resolvecluster/response.go | 4 +-
.../indices/resolveindex/resolve_index.go | 50 +-
.../typedapi/indices/resolveindex/response.go | 4 +-
.../v8/typedapi/indices/rollover/request.go | 5 +-
.../v8/typedapi/indices/rollover/response.go | 4 +-
.../v8/typedapi/indices/rollover/rollover.go | 46 +-
.../v8/typedapi/indices/segments/response.go | 4 +-
.../v8/typedapi/indices/segments/segments.go | 49 +-
.../typedapi/indices/shardstores/response.go | 4 +-
.../indices/shardstores/shard_stores.go | 49 +-
.../v8/typedapi/indices/shrink/request.go | 5 +-
.../v8/typedapi/indices/shrink/response.go | 4 +-
.../v8/typedapi/indices/shrink/shrink.go | 47 +-
.../indices/simulateindextemplate/request.go | 185 -
.../indices/simulateindextemplate/response.go | 10 +-
.../simulate_index_template.go | 207 +-
.../indices/simulatetemplate/request.go | 184 +-
.../indices/simulatetemplate/response.go | 4 +-
.../simulatetemplate/simulate_template.go | 88 +-
.../v8/typedapi/indices/split/request.go | 5 +-
.../v8/typedapi/indices/split/response.go | 4 +-
.../v8/typedapi/indices/split/split.go | 47 +-
.../v8/typedapi/indices/stats/response.go | 4 +-
.../v8/typedapi/indices/stats/stats.go | 49 +-
.../v8/typedapi/indices/unfreeze/response.go | 4 +-
.../v8/typedapi/indices/unfreeze/unfreeze.go | 49 +-
.../typedapi/indices/updatealiases/request.go | 5 +-
.../indices/updatealiases/response.go | 4 +-
.../indices/updatealiases/update_aliases.go | 47 +-
.../typedapi/indices/validatequery/request.go | 5 +-
.../indices/validatequery/response.go | 4 +-
.../indices/validatequery/validate_query.go | 46 +-
.../inference/deletemodel/delete_model.go | 50 +-
.../inference/deletemodel/response.go | 4 +-
.../typedapi/inference/getmodel/get_model.go | 50 +-
.../typedapi/inference/getmodel/response.go | 4 +-
.../typedapi/inference/inference/inference.go | 65 +-
.../typedapi/inference/inference/request.go | 21 +-
.../typedapi/inference/inference/response.go | 6 +-
.../typedapi/inference/putmodel/put_model.go | 47 +-
.../v8/typedapi/inference/putmodel/request.go | 4 +-
.../typedapi/inference/putmodel/response.go | 4 +-
.../ingest/deletepipeline/delete_pipeline.go | 50 +-
.../ingest/deletepipeline/response.go | 4 +-
.../ingest/geoipstats/geo_ip_stats.go | 50 +-
.../v8/typedapi/ingest/geoipstats/response.go | 4 +-
.../ingest/getpipeline/get_pipeline.go | 49 +-
.../typedapi/ingest/getpipeline/response.go | 4 +-
.../ingest/processorgrok/processor_grok.go | 50 +-
.../typedapi/ingest/processorgrok/response.go | 4 +-
.../ingest/putpipeline/put_pipeline.go | 47 +-
.../v8/typedapi/ingest/putpipeline/request.go | 5 +-
.../typedapi/ingest/putpipeline/response.go | 4 +-
.../v8/typedapi/ingest/simulate/request.go | 5 +-
.../v8/typedapi/ingest/simulate/response.go | 4 +-
.../v8/typedapi/ingest/simulate/simulate.go | 46 +-
.../v8/typedapi/license/delete/delete.go | 50 +-
.../v8/typedapi/license/delete/response.go | 4 +-
.../v8/typedapi/license/get/get.go | 49 +-
.../v8/typedapi/license/get/response.go | 4 +-
.../getbasicstatus/get_basic_status.go | 50 +-
.../license/getbasicstatus/response.go | 4 +-
.../gettrialstatus/get_trial_status.go | 50 +-
.../license/gettrialstatus/response.go | 4 +-
.../v8/typedapi/license/post/post.go | 46 +-
.../v8/typedapi/license/post/request.go | 5 +-
.../v8/typedapi/license/post/response.go | 4 +-
.../poststartbasic/post_start_basic.go | 49 +-
.../license/poststartbasic/response.go | 8 +-
.../poststarttrial/post_start_trial.go | 49 +-
.../license/poststarttrial/response.go | 4 +-
.../deletepipeline/delete_pipeline.go | 50 +-
.../logstash/getpipeline/get_pipeline.go | 50 +-
.../typedapi/logstash/getpipeline/response.go | 4 +-
.../logstash/putpipeline/put_pipeline.go | 47 +-
.../typedapi/logstash/putpipeline/request.go | 4 +-
.../migration/deprecations/deprecations.go | 50 +-
.../migration/deprecations/response.go | 4 +-
.../get_feature_upgrade_status.go | 50 +-
.../getfeatureupgradestatus/response.go | 4 +-
.../post_feature_upgrade.go | 50 +-
.../migration/postfeatureupgrade/response.go | 4 +-
.../clear_trained_model_deployment_cache.go | 50 +-
.../response.go | 4 +-
.../v8/typedapi/ml/closejob/close_job.go | 47 +-
.../v8/typedapi/ml/closejob/request.go | 9 +-
.../v8/typedapi/ml/closejob/response.go | 4 +-
.../ml/deletecalendar/delete_calendar.go | 50 +-
.../v8/typedapi/ml/deletecalendar/response.go | 4 +-
.../delete_calendar_event.go | 50 +-
.../ml/deletecalendarevent/response.go | 4 +-
.../deletecalendarjob/delete_calendar_job.go | 50 +-
.../typedapi/ml/deletecalendarjob/response.go | 4 +-
.../ml/deletedatafeed/delete_datafeed.go | 49 +-
.../v8/typedapi/ml/deletedatafeed/response.go | 4 +-
.../delete_data_frame_analytics.go | 49 +-
.../ml/deletedataframeanalytics/response.go | 4 +-
.../deleteexpireddata/delete_expired_data.go | 47 +-
.../typedapi/ml/deleteexpireddata/request.go | 7 +-
.../typedapi/ml/deleteexpireddata/response.go | 4 +-
.../typedapi/ml/deletefilter/delete_filter.go | 50 +-
.../v8/typedapi/ml/deletefilter/response.go | 4 +-
.../ml/deleteforecast/delete_forecast.go | 49 +-
.../v8/typedapi/ml/deleteforecast/response.go | 4 +-
.../v8/typedapi/ml/deletejob/delete_job.go | 49 +-
.../v8/typedapi/ml/deletejob/response.go | 4 +-
.../delete_model_snapshot.go | 50 +-
.../ml/deletemodelsnapshot/response.go | 4 +-
.../delete_trained_model.go | 49 +-
.../ml/deletetrainedmodel/response.go | 4 +-
.../delete_trained_model_alias.go | 50 +-
.../ml/deletetrainedmodelalias/response.go | 4 +-
.../estimate_model_memory.go | 47 +-
.../ml/estimatemodelmemory/request.go | 5 +-
.../ml/estimatemodelmemory/response.go | 4 +-
.../evaluatedataframe/evaluate_data_frame.go | 47 +-
.../typedapi/ml/evaluatedataframe/request.go | 5 +-
.../typedapi/ml/evaluatedataframe/response.go | 4 +-
.../explain_data_frame_analytics.go | 47 +-
.../ml/explaindataframeanalytics/request.go | 5 +-
.../ml/explaindataframeanalytics/response.go | 4 +-
.../v8/typedapi/ml/flushjob/flush_job.go | 47 +-
.../v8/typedapi/ml/flushjob/request.go | 7 +-
.../v8/typedapi/ml/flushjob/response.go | 4 +-
.../v8/typedapi/ml/forecast/forecast.go | 47 +-
.../v8/typedapi/ml/forecast/request.go | 5 +-
.../v8/typedapi/ml/forecast/response.go | 4 +-
.../v8/typedapi/ml/getbuckets/get_buckets.go | 46 +-
.../v8/typedapi/ml/getbuckets/request.go | 13 +-
.../v8/typedapi/ml/getbuckets/response.go | 4 +-
.../getcalendarevents/get_calendar_events.go | 49 +-
.../typedapi/ml/getcalendarevents/response.go | 4 +-
.../typedapi/ml/getcalendars/get_calendars.go | 46 +-
.../v8/typedapi/ml/getcalendars/request.go | 5 +-
.../v8/typedapi/ml/getcalendars/response.go | 4 +-
.../ml/getcategories/get_categories.go | 46 +-
.../v8/typedapi/ml/getcategories/request.go | 5 +-
.../v8/typedapi/ml/getcategories/response.go | 4 +-
.../typedapi/ml/getdatafeeds/get_datafeeds.go | 49 +-
.../v8/typedapi/ml/getdatafeeds/response.go | 4 +-
.../ml/getdatafeedstats/get_datafeed_stats.go | 49 +-
.../typedapi/ml/getdatafeedstats/response.go | 4 +-
.../get_data_frame_analytics.go | 49 +-
.../ml/getdataframeanalytics/response.go | 4 +-
.../get_data_frame_analytics_stats.go | 49 +-
.../ml/getdataframeanalyticsstats/response.go | 4 +-
.../v8/typedapi/ml/getfilters/get_filters.go | 49 +-
.../v8/typedapi/ml/getfilters/response.go | 4 +-
.../ml/getinfluencers/get_influencers.go | 46 +-
.../v8/typedapi/ml/getinfluencers/request.go | 5 +-
.../v8/typedapi/ml/getinfluencers/response.go | 4 +-
.../v8/typedapi/ml/getjobs/get_jobs.go | 49 +-
.../v8/typedapi/ml/getjobs/response.go | 4 +-
.../typedapi/ml/getjobstats/get_job_stats.go | 49 +-
.../v8/typedapi/ml/getjobstats/response.go | 4 +-
.../ml/getmemorystats/get_memory_stats.go | 36 +-
.../v8/typedapi/ml/getmemorystats/response.go | 4 +-
.../getmodelsnapshots/get_model_snapshots.go | 46 +-
.../typedapi/ml/getmodelsnapshots/request.go | 7 +-
.../typedapi/ml/getmodelsnapshots/response.go | 4 +-
.../get_model_snapshot_upgrade_stats.go | 49 +-
.../getmodelsnapshotupgradestats/response.go | 4 +-
.../getoverallbuckets/get_overall_buckets.go | 47 +-
.../typedapi/ml/getoverallbuckets/request.go | 11 +-
.../typedapi/ml/getoverallbuckets/response.go | 4 +-
.../v8/typedapi/ml/getrecords/get_records.go | 46 +-
.../v8/typedapi/ml/getrecords/request.go | 11 +-
.../v8/typedapi/ml/getrecords/response.go | 4 +-
.../ml/gettrainedmodels/get_trained_models.go | 49 +-
.../typedapi/ml/gettrainedmodels/response.go | 4 +-
.../get_trained_models_stats.go | 49 +-
.../ml/gettrainedmodelsstats/response.go | 4 +-
.../infertrainedmodel/infer_trained_model.go | 47 +-
.../typedapi/ml/infertrainedmodel/request.go | 5 +-
.../typedapi/ml/infertrainedmodel/response.go | 4 +-
.../v8/typedapi/ml/info/info.go | 50 +-
.../v8/typedapi/ml/info/response.go | 4 +-
.../v8/typedapi/ml/openjob/open_job.go | 47 +-
.../v8/typedapi/ml/openjob/request.go | 5 +-
.../v8/typedapi/ml/openjob/response.go | 4 +-
.../post_calendar_events.go | 47 +-
.../typedapi/ml/postcalendarevents/request.go | 5 +-
.../ml/postcalendarevents/response.go | 4 +-
.../v8/typedapi/ml/postdata/post_data.go | 47 +-
.../v8/typedapi/ml/postdata/request.go | 4 +-
.../v8/typedapi/ml/postdata/response.go | 4 +-
.../ml/previewdatafeed/preview_datafeed.go | 47 +-
.../v8/typedapi/ml/previewdatafeed/request.go | 5 +-
.../typedapi/ml/previewdatafeed/response.go | 4 +-
.../preview_data_frame_analytics.go | 47 +-
.../ml/previewdataframeanalytics/request.go | 5 +-
.../ml/previewdataframeanalytics/response.go | 4 +-
.../typedapi/ml/putcalendar/put_calendar.go | 47 +-
.../v8/typedapi/ml/putcalendar/request.go | 5 +-
.../v8/typedapi/ml/putcalendar/response.go | 4 +-
.../ml/putcalendarjob/put_calendar_job.go | 50 +-
.../v8/typedapi/ml/putcalendarjob/response.go | 4 +-
.../typedapi/ml/putdatafeed/put_datafeed.go | 46 +-
.../v8/typedapi/ml/putdatafeed/request.go | 9 +-
.../v8/typedapi/ml/putdatafeed/response.go | 4 +-
.../put_data_frame_analytics.go | 47 +-
.../ml/putdataframeanalytics/request.go | 9 +-
.../ml/putdataframeanalytics/response.go | 4 +-
.../v8/typedapi/ml/putfilter/put_filter.go | 47 +-
.../v8/typedapi/ml/putfilter/request.go | 5 +-
.../v8/typedapi/ml/putfilter/response.go | 4 +-
.../v8/typedapi/ml/putjob/put_job.go | 47 +-
.../v8/typedapi/ml/putjob/request.go | 15 +-
.../v8/typedapi/ml/putjob/response.go | 4 +-
.../ml/puttrainedmodel/put_trained_model.go | 48 +-
.../v8/typedapi/ml/puttrainedmodel/request.go | 5 +-
.../typedapi/ml/puttrainedmodel/response.go | 4 +-
.../put_trained_model_alias.go | 49 +-
.../ml/puttrainedmodelalias/response.go | 4 +-
.../put_trained_model_definition_part.go | 47 +-
.../puttrainedmodeldefinitionpart/request.go | 5 +-
.../puttrainedmodeldefinitionpart/response.go | 4 +-
.../put_trained_model_vocabulary.go | 47 +-
.../ml/puttrainedmodelvocabulary/request.go | 5 +-
.../ml/puttrainedmodelvocabulary/response.go | 4 +-
.../v8/typedapi/ml/resetjob/reset_job.go | 49 +-
.../v8/typedapi/ml/resetjob/response.go | 4 +-
.../ml/revertmodelsnapshot/request.go | 5 +-
.../ml/revertmodelsnapshot/response.go | 4 +-
.../revert_model_snapshot.go | 47 +-
.../v8/typedapi/ml/setupgrademode/response.go | 4 +-
.../ml/setupgrademode/set_upgrade_mode.go | 49 +-
.../v8/typedapi/ml/startdatafeed/request.go | 5 +-
.../v8/typedapi/ml/startdatafeed/response.go | 6 +-
.../ml/startdatafeed/start_datafeed.go | 47 +-
.../ml/startdataframeanalytics/response.go | 4 +-
.../start_data_frame_analytics.go | 50 +-
.../starttrainedmodeldeployment/response.go | 4 +-
.../start_trained_model_deployment.go | 49 +-
.../v8/typedapi/ml/stopdatafeed/request.go | 9 +-
.../v8/typedapi/ml/stopdatafeed/response.go | 4 +-
.../typedapi/ml/stopdatafeed/stop_datafeed.go | 47 +-
.../ml/stopdataframeanalytics/response.go | 4 +-
.../stop_data_frame_analytics.go | 49 +-
.../ml/stoptrainedmodeldeployment/response.go | 4 +-
.../stop_trained_model_deployment.go | 49 +-
.../v8/typedapi/ml/updatedatafeed/request.go | 9 +-
.../v8/typedapi/ml/updatedatafeed/response.go | 4 +-
.../ml/updatedatafeed/update_datafeed.go | 46 +-
.../ml/updatedataframeanalytics/request.go | 5 +-
.../ml/updatedataframeanalytics/response.go | 4 +-
.../update_data_frame_analytics.go | 47 +-
.../v8/typedapi/ml/updatefilter/request.go | 5 +-
.../v8/typedapi/ml/updatefilter/response.go | 4 +-
.../typedapi/ml/updatefilter/update_filter.go | 47 +-
.../v8/typedapi/ml/updatejob/request.go | 15 +-
.../v8/typedapi/ml/updatejob/response.go | 4 +-
.../v8/typedapi/ml/updatejob/update_job.go | 47 +-
.../ml/updatemodelsnapshot/request.go | 5 +-
.../ml/updatemodelsnapshot/response.go | 4 +-
.../update_model_snapshot.go | 47 +-
.../updatetrainedmodeldeployment/request.go | 60 +
.../updatetrainedmodeldeployment/response.go | 38 +
.../update_trained_model_deployment.go | 379 ++
.../ml/upgradejobsnapshot/response.go | 4 +-
.../upgrade_job_snapshot.go | 49 +-
.../v8/typedapi/ml/validate/request.go | 7 +-
.../v8/typedapi/ml/validate/response.go | 4 +-
.../v8/typedapi/ml/validate/validate.go | 47 +-
.../typedapi/ml/validatedetector/request.go | 4 +-
.../typedapi/ml/validatedetector/response.go | 4 +-
.../ml/validatedetector/validate_detector.go | 47 +-
.../v8/typedapi/monitoring/bulk/bulk.go | 47 +-
.../v8/typedapi/monitoring/bulk/request.go | 6 +-
.../v8/typedapi/monitoring/bulk/response.go | 4 +-
.../clear_repositories_metering_archive.go | 50 +-
.../response.go | 4 +-
.../get_repositories_metering_info.go | 50 +-
.../getrepositoriesmeteringinfo/response.go | 4 +-
.../typedapi/nodes/hotthreads/hot_threads.go | 49 +-
.../v8/typedapi/nodes/hotthreads/response.go | 4 +-
.../v8/typedapi/nodes/info/info.go | 49 +-
.../v8/typedapi/nodes/info/response.go | 4 +-
.../reload_secure_settings.go | 47 +-
.../nodes/reloadsecuresettings/request.go | 5 +-
.../nodes/reloadsecuresettings/response.go | 4 +-
.../v8/typedapi/nodes/stats/response.go | 4 +-
.../v8/typedapi/nodes/stats/stats.go | 49 +-
.../v8/typedapi/nodes/usage/response.go | 4 +-
.../v8/typedapi/nodes/usage/usage.go | 50 +-
.../v8/typedapi/queryruleset/delete/delete.go | 50 +-
.../typedapi/queryruleset/delete/response.go | 4 +-
.../v8/typedapi/queryruleset/get/get.go | 50 +-
.../v8/typedapi/queryruleset/get/response.go | 4 +-
.../v8/typedapi/queryruleset/list/list.go | 49 +-
.../v8/typedapi/queryruleset/list/response.go | 4 +-
.../v8/typedapi/queryruleset/put/put.go | 47 +-
.../v8/typedapi/queryruleset/put/request.go | 5 +-
.../v8/typedapi/queryruleset/put/response.go | 4 +-
.../typedapi/rollup/deletejob/delete_job.go | 50 +-
.../v8/typedapi/rollup/deletejob/response.go | 4 +-
.../v8/typedapi/rollup/getjobs/get_jobs.go | 50 +-
.../v8/typedapi/rollup/getjobs/response.go | 4 +-
.../rollup/getrollupcaps/get_rollup_caps.go | 50 +-
.../typedapi/rollup/getrollupcaps/response.go | 4 +-
.../get_rollup_index_caps.go | 50 +-
.../rollup/getrollupindexcaps/response.go | 4 +-
.../v8/typedapi/rollup/putjob/put_job.go | 47 +-
.../v8/typedapi/rollup/putjob/request.go | 7 +-
.../v8/typedapi/rollup/putjob/response.go | 4 +-
.../typedapi/rollup/rollupsearch/request.go | 7 +-
.../typedapi/rollup/rollupsearch/response.go | 16 +-
.../rollup/rollupsearch/rollup_search.go | 46 +-
.../v8/typedapi/rollup/startjob/response.go | 4 +-
.../v8/typedapi/rollup/startjob/start_job.go | 50 +-
.../v8/typedapi/rollup/stopjob/response.go | 4 +-
.../v8/typedapi/rollup/stopjob/stop_job.go | 49 +-
.../cachestats/cache_stats.go | 50 +-
.../cachestats/response.go | 4 +-
.../clearcache/clear_cache.go | 27 +-
.../clearcache/response.go | 4 +-
.../searchablesnapshots/mount/mount.go | 46 +-
.../searchablesnapshots/mount/request.go | 5 +-
.../searchablesnapshots/mount/response.go | 4 +-
.../searchablesnapshots/stats/response.go | 4 +-
.../searchablesnapshots/stats/stats.go | 50 +-
.../searchapplication/delete/delete.go | 50 +-
.../searchapplication/delete/response.go | 4 +-
.../delete_behavioral_analytics.go | 50 +-
.../deletebehavioralanalytics/response.go | 4 +-
.../v8/typedapi/searchapplication/get/get.go | 50 +-
.../searchapplication/get/response.go | 4 +-
.../get_behavioral_analytics.go | 50 +-
.../getbehavioralanalytics/response.go | 4 +-
.../typedapi/searchapplication/list/list.go | 49 +-
.../searchapplication/list/response.go | 4 +-
.../v8/typedapi/searchapplication/put/put.go | 46 +-
.../typedapi/searchapplication/put/request.go | 4 +-
.../searchapplication/put/response.go | 4 +-
.../put_behavioral_analytics.go | 50 +-
.../putbehavioralanalytics/response.go | 4 +-
.../searchapplication/search/request.go | 5 +-
.../searchapplication/search/response.go | 24 +-
.../searchapplication/search/search.go | 58 +-
.../activate_user_profile.go | 47 +-
.../security/activateuserprofile/request.go | 5 +-
.../security/activateuserprofile/response.go | 4 +-
.../security/authenticate/authenticate.go | 50 +-
.../security/authenticate/response.go | 4 +-
.../bulkupdateapikeys/bulk_update_api_keys.go | 5 +-
.../changepassword/change_password.go | 47 +-
.../security/changepassword/request.go | 5 +-
.../security/changepassword/response.go | 4 +-
.../clearapikeycache/clear_api_key_cache.go | 50 +-
.../security/clearapikeycache/response.go | 4 +-
.../clear_cached_privileges.go | 50 +-
.../clearcachedprivileges/response.go | 4 +-
.../clearcachedrealms/clear_cached_realms.go | 50 +-
.../security/clearcachedrealms/response.go | 4 +-
.../clearcachedroles/clear_cached_roles.go | 50 +-
.../security/clearcachedroles/response.go | 4 +-
.../clear_cached_service_tokens.go | 50 +-
.../clearcachedservicetokens/response.go | 4 +-
.../security/createapikey/create_api_key.go | 47 +-
.../typedapi/security/createapikey/request.go | 5 +-
.../security/createapikey/response.go | 4 +-
.../create_cross_cluster_api_key.go | 5 +-
.../create_service_token.go | 50 +-
.../security/createservicetoken/response.go | 4 +-
.../deleteprivileges/delete_privileges.go | 50 +-
.../security/deleteprivileges/response.go | 4 +-
.../security/deleterole/delete_role.go | 50 +-
.../typedapi/security/deleterole/response.go | 4 +-
.../deleterolemapping/delete_role_mapping.go | 50 +-
.../security/deleterolemapping/response.go | 4 +-
.../delete_service_token.go | 50 +-
.../security/deleteservicetoken/response.go | 4 +-
.../security/deleteuser/delete_user.go | 50 +-
.../typedapi/security/deleteuser/response.go | 4 +-
.../security/disableuser/disable_user.go | 50 +-
.../typedapi/security/disableuser/response.go | 4 +-
.../disable_user_profile.go | 50 +-
.../security/disableuserprofile/response.go | 4 +-
.../security/enableuser/enable_user.go | 50 +-
.../typedapi/security/enableuser/response.go | 4 +-
.../enableuserprofile/enable_user_profile.go | 50 +-
.../security/enableuserprofile/response.go | 4 +-
.../security/enrollkibana/enroll_kibana.go | 50 +-
.../security/enrollkibana/response.go | 4 +-
.../security/enrollnode/enroll_node.go | 50 +-
.../typedapi/security/enrollnode/response.go | 4 +-
.../security/getapikey/get_api_key.go | 58 +-
.../typedapi/security/getapikey/response.go | 4 +-
.../get_builtin_privileges.go | 50 +-
.../security/getbuiltinprivileges/response.go | 4 +-
.../security/getprivileges/get_privileges.go | 50 +-
.../security/getprivileges/response.go | 4 +-
.../v8/typedapi/security/getrole/get_role.go | 50 +-
.../v8/typedapi/security/getrole/response.go | 4 +-
.../getrolemapping/get_role_mapping.go | 50 +-
.../security/getrolemapping/response.go | 4 +-
.../get_service_accounts.go | 50 +-
.../security/getserviceaccounts/response.go | 4 +-
.../get_service_credentials.go | 50 +-
.../getservicecredentials/response.go | 4 +-
.../security/getsettings/get_settings.go | 5 +-
.../typedapi/security/gettoken/get_token.go | 47 +-
.../v8/typedapi/security/gettoken/request.go | 5 +-
.../v8/typedapi/security/gettoken/response.go | 4 +-
.../v8/typedapi/security/getuser/get_user.go | 49 +-
.../v8/typedapi/security/getuser/response.go | 4 +-
.../getuserprivileges/get_user_privileges.go | 50 +-
.../security/getuserprivileges/response.go | 4 +-
.../getuserprofile/get_user_profile.go | 50 +-
.../security/getuserprofile/response.go | 4 +-
.../security/grantapikey/grant_api_key.go | 47 +-
.../typedapi/security/grantapikey/request.go | 5 +-
.../typedapi/security/grantapikey/response.go | 4 +-
.../security/hasprivileges/has_privileges.go | 47 +-
.../security/hasprivileges/request.go | 5 +-
.../security/hasprivileges/response.go | 4 +-
.../has_privileges_user_profile.go | 47 +-
.../hasprivilegesuserprofile/request.go | 5 +-
.../hasprivilegesuserprofile/response.go | 4 +-
.../invalidateapikey/invalidate_api_key.go | 47 +-
.../security/invalidateapikey/request.go | 7 +-
.../security/invalidateapikey/response.go | 4 +-
.../invalidatetoken/invalidate_token.go | 47 +-
.../security/invalidatetoken/request.go | 5 +-
.../security/invalidatetoken/response.go | 4 +-
.../oidcauthenticate/oidc_authenticate.go | 5 +-
.../security/oidclogout/oidc_logout.go | 5 +-
.../oidc_prepare_authentication.go | 5 +-
.../security/putprivileges/put_privileges.go | 47 +-
.../security/putprivileges/request.go | 4 +-
.../security/putprivileges/response.go | 4 +-
.../v8/typedapi/security/putrole/put_role.go | 47 +-
.../v8/typedapi/security/putrole/request.go | 5 +-
.../v8/typedapi/security/putrole/response.go | 4 +-
.../putrolemapping/put_role_mapping.go | 47 +-
.../security/putrolemapping/request.go | 7 +-
.../security/putrolemapping/response.go | 4 +-
.../v8/typedapi/security/putuser/put_user.go | 47 +-
.../v8/typedapi/security/putuser/request.go | 7 +-
.../v8/typedapi/security/putuser/response.go | 4 +-
.../security/queryapikeys/query_api_keys.go | 55 +-
.../typedapi/security/queryapikeys/request.go | 9 +-
.../security/queryapikeys/response.go | 12 +-
.../security/samlauthenticate/request.go | 5 +-
.../security/samlauthenticate/response.go | 4 +-
.../samlauthenticate/saml_authenticate.go | 47 +-
.../security/samlcompletelogout/request.go | 5 +-
.../saml_complete_logout.go | 47 +-
.../security/samlinvalidate/request.go | 5 +-
.../security/samlinvalidate/response.go | 4 +-
.../samlinvalidate/saml_invalidate.go | 47 +-
.../typedapi/security/samllogout/request.go | 5 +-
.../typedapi/security/samllogout/response.go | 4 +-
.../security/samllogout/saml_logout.go | 47 +-
.../samlprepareauthentication/request.go | 5 +-
.../samlprepareauthentication/response.go | 4 +-
.../saml_prepare_authentication.go | 47 +-
.../samlserviceprovidermetadata/response.go | 4 +-
.../saml_service_provider_metadata.go | 50 +-
.../security/suggestuserprofiles/request.go | 7 +-
.../security/suggestuserprofiles/response.go | 4 +-
.../suggest_user_profiles.go | 47 +-
.../typedapi/security/updateapikey/request.go | 5 +-
.../security/updateapikey/response.go | 4 +-
.../security/updateapikey/update_api_key.go | 47 +-
.../updatesettings/update_settings.go | 5 +-
.../security/updateuserprofiledata/request.go | 5 +-
.../updateuserprofiledata/response.go | 4 +-
.../update_user_profile_data.go | 47 +-
.../shutdown/deletenode/delete_node.go | 50 +-
.../typedapi/shutdown/deletenode/response.go | 4 +-
.../v8/typedapi/shutdown/getnode/get_node.go | 50 +-
.../v8/typedapi/shutdown/getnode/response.go | 4 +-
.../v8/typedapi/shutdown/putnode/put_node.go | 47 +-
.../v8/typedapi/shutdown/putnode/request.go | 5 +-
.../v8/typedapi/shutdown/putnode/response.go | 4 +-
.../slm/deletelifecycle/delete_lifecycle.go | 50 +-
.../typedapi/slm/deletelifecycle/response.go | 4 +-
.../slm/executelifecycle/execute_lifecycle.go | 50 +-
.../typedapi/slm/executelifecycle/response.go | 4 +-
.../slm/executeretention/execute_retention.go | 50 +-
.../typedapi/slm/executeretention/response.go | 4 +-
.../slm/getlifecycle/get_lifecycle.go | 50 +-
.../v8/typedapi/slm/getlifecycle/response.go | 4 +-
.../v8/typedapi/slm/getstats/get_stats.go | 50 +-
.../v8/typedapi/slm/getstats/response.go | 4 +-
.../v8/typedapi/slm/getstatus/get_status.go | 50 +-
.../v8/typedapi/slm/getstatus/response.go | 4 +-
.../slm/putlifecycle/put_lifecycle.go | 47 +-
.../v8/typedapi/slm/putlifecycle/request.go | 5 +-
.../v8/typedapi/slm/putlifecycle/response.go | 4 +-
.../v8/typedapi/slm/start/response.go | 4 +-
.../v8/typedapi/slm/start/start.go | 50 +-
.../v8/typedapi/slm/stop/response.go | 4 +-
.../v8/typedapi/slm/stop/stop.go | 50 +-
.../cleanuprepository/cleanup_repository.go | 50 +-
.../snapshot/cleanuprepository/response.go | 4 +-
.../v8/typedapi/snapshot/clone/clone.go | 47 +-
.../v8/typedapi/snapshot/clone/request.go | 5 +-
.../v8/typedapi/snapshot/clone/response.go | 4 +-
.../v8/typedapi/snapshot/create/create.go | 46 +-
.../v8/typedapi/snapshot/create/request.go | 11 +-
.../v8/typedapi/snapshot/create/response.go | 4 +-
.../createrepository/create_repository.go | 46 +-
.../snapshot/createrepository/request.go | 4 +-
.../snapshot/createrepository/response.go | 4 +-
.../v8/typedapi/snapshot/delete/delete.go | 50 +-
.../v8/typedapi/snapshot/delete/response.go | 4 +-
.../deleterepository/delete_repository.go | 50 +-
.../snapshot/deleterepository/response.go | 4 +-
.../v8/typedapi/snapshot/get/get.go | 49 +-
.../v8/typedapi/snapshot/get/response.go | 4 +-
.../snapshot/getrepository/get_repository.go | 49 +-
.../snapshot/getrepository/response.go | 8 +-
.../v8/typedapi/snapshot/restore/request.go | 13 +-
.../v8/typedapi/snapshot/restore/response.go | 4 +-
.../v8/typedapi/snapshot/restore/restore.go | 46 +-
.../v8/typedapi/snapshot/status/response.go | 4 +-
.../v8/typedapi/snapshot/status/status.go | 49 +-
.../snapshot/verifyrepository/response.go | 4 +-
.../verifyrepository/verify_repository.go | 50 +-
.../typedapi/sql/clearcursor/clear_cursor.go | 47 +-
.../v8/typedapi/sql/clearcursor/request.go | 5 +-
.../v8/typedapi/sql/clearcursor/response.go | 4 +-
.../typedapi/sql/deleteasync/delete_async.go | 50 +-
.../v8/typedapi/sql/deleteasync/response.go | 4 +-
.../v8/typedapi/sql/getasync/get_async.go | 50 +-
.../v8/typedapi/sql/getasync/response.go | 4 +-
.../sql/getasyncstatus/get_async_status.go | 50 +-
.../typedapi/sql/getasyncstatus/response.go | 4 +-
.../v8/typedapi/sql/query/query.go | 47 +-
.../v8/typedapi/sql/query/request.go | 15 +-
.../v8/typedapi/sql/query/response.go | 4 +-
.../v8/typedapi/sql/translate/request.go | 7 +-
.../v8/typedapi/sql/translate/response.go | 6 +-
.../v8/typedapi/sql/translate/translate.go | 47 +-
.../typedapi/ssl/certificates/certificates.go | 50 +-
.../v8/typedapi/ssl/certificates/response.go | 4 +-
.../synonyms/deletesynonym/delete_synonym.go | 50 +-
.../synonyms/deletesynonym/response.go | 4 +-
.../deletesynonymrule/delete_synonym_rule.go | 50 +-
.../synonyms/deletesynonymrule/response.go | 4 +-
.../synonyms/getsynonym/get_synonym.go | 49 +-
.../typedapi/synonyms/getsynonym/response.go | 4 +-
.../getsynonymrule/get_synonym_rule.go | 50 +-
.../synonyms/getsynonymrule/response.go | 4 +-
.../getsynonymssets/get_synonyms_sets.go | 49 +-
.../synonyms/getsynonymssets/response.go | 4 +-
.../synonyms/putsynonym/put_synonym.go | 47 +-
.../typedapi/synonyms/putsynonym/request.go | 5 +-
.../typedapi/synonyms/putsynonym/response.go | 8 +-
.../putsynonymrule/put_synonym_rule.go | 47 +-
.../synonyms/putsynonymrule/request.go | 5 +-
.../synonyms/putsynonymrule/response.go | 4 +-
.../v8/typedapi/tasks/cancel/cancel.go | 49 +-
.../v8/typedapi/tasks/cancel/response.go | 4 +-
.../v8/typedapi/tasks/get/get.go | 49 +-
.../v8/typedapi/tasks/get/response.go | 4 +-
.../v8/typedapi/tasks/list/list.go | 49 +-
.../v8/typedapi/tasks/list/response.go | 4 +-
.../findstructure/find_structure.go | 2 +-
.../textstructure/findstructure/request.go | 4 +-
.../textstructure/findstructure/response.go | 4 +-
.../textstructure/testgrokpattern/request.go | 5 +-
.../textstructure/testgrokpattern/response.go | 4 +-
.../testgrokpattern/test_grok_pattern.go | 47 +-
.../deletetransform/delete_transform.go | 49 +-
.../transform/deletetransform/response.go | 4 +-
.../transform/gettransform/get_transform.go | 49 +-
.../transform/gettransform/response.go | 4 +-
.../gettransformstats/get_transform_stats.go | 49 +-
.../transform/gettransformstats/response.go | 4 +-
.../previewtransform/preview_transform.go | 47 +-
.../transform/previewtransform/request.go | 5 +-
.../transform/previewtransform/response.go | 4 +-
.../transform/puttransform/put_transform.go | 46 +-
.../transform/puttransform/request.go | 5 +-
.../transform/puttransform/response.go | 4 +-
.../resettransform/reset_transform.go | 49 +-
.../transform/resettransform/response.go | 4 +-
.../schedulenowtransform/response.go | 4 +-
.../schedule_now_transform.go | 50 +-
.../transform/starttransform/response.go | 4 +-
.../starttransform/start_transform.go | 50 +-
.../transform/stoptransform/response.go | 4 +-
.../transform/stoptransform/stop_transform.go | 49 +-
.../transform/updatetransform/request.go | 5 +-
.../transform/updatetransform/response.go | 4 +-
.../updatetransform/update_transform.go | 46 +-
.../transform/upgradetransforms/response.go | 4 +-
.../upgradetransforms/upgrade_transforms.go | 49 +-
.../v8/typedapi/types/acknowledgement.go | 4 +-
.../v8/typedapi/types/acknowledgestate.go | 4 +-
.../v8/typedapi/types/actionstatus.go | 4 +-
.../v8/typedapi/types/activationstate.go | 6 +-
.../v8/typedapi/types/activationstatus.go | 4 +-
.../v8/typedapi/types/adaptiveselection.go | 12 +-
.../v8/typedapi/types/addaction.go | 10 +-
.../types/adjacencymatrixaggregate.go | 4 +-
.../types/adjacencymatrixaggregation.go | 19 +-
.../typedapi/types/adjacencymatrixbucket.go | 14 +-
.../v8/typedapi/types/aggregate.go | 6 +-
.../types/aggregatemetricdoubleproperty.go | 22 +-
.../v8/typedapi/types/aggregateorder.go | 6 +-
.../v8/typedapi/types/aggregateoutput.go | 4 +-
.../v8/typedapi/types/aggregation.go | 52 +-
.../v8/typedapi/types/aggregationbreakdown.go | 28 +-
.../v8/typedapi/types/aggregationprofile.go | 4 +-
.../typedapi/types/aggregationprofiledebug.go | 46 +-
.../aggregationprofiledelegatedebugfilter.go | 8 +-
.../v8/typedapi/types/aggregationrange.go | 52 +-
.../v8/typedapi/types/aggregations.go | 4 +-
.../v8/typedapi/types/alias.go | 8 +-
.../v8/typedapi/types/aliasdefinition.go | 8 +-
.../v8/typedapi/types/aliasesrecord.go | 4 +-
.../v8/typedapi/types/allfield.go | 18 +-
.../v8/typedapi/types/allocationdecision.go | 4 +-
.../v8/typedapi/types/allocationrecord.go | 4 +-
.../v8/typedapi/types/allocationstore.go | 12 +-
.../v8/typedapi/types/alwayscondition.go | 4 +-
.../v8/typedapi/types/analysisconfig.go | 6 +-
.../v8/typedapi/types/analysisconfigread.go | 6 +-
.../v8/typedapi/types/analysislimits.go | 6 +-
.../v8/typedapi/types/analysismemorylimit.go | 4 +-
.../v8/typedapi/types/analytics.go | 8 +-
.../v8/typedapi/types/analyticscollection.go | 4 +-
.../v8/typedapi/types/analyticsstatistics.go | 22 +-
.../v8/typedapi/types/analyzedetail.go | 6 +-
.../v8/typedapi/types/analyzer.go | 6 +-
.../v8/typedapi/types/analyzerdetail.go | 4 +-
.../v8/typedapi/types/analyzetoken.go | 12 +-
.../v8/typedapi/types/anomaly.go | 14 +-
.../v8/typedapi/types/anomalycause.go | 6 +-
.../v8/typedapi/types/anomalydetectors.go | 10 +-
.../v8/typedapi/types/anomalyexplanation.go | 22 +-
.../v8/typedapi/types/apikey.go | 39 +-
.../v8/typedapi/types/apikeyaggregate.go | 6 +-
.../types/apikeyaggregationcontainer.go | 4 +-
.../v8/typedapi/types/apikeyauthorization.go | 4 +-
.../types/apikeyfiltersaggregation.go | 29 +-
.../v8/typedapi/types/apikeyquerycontainer.go | 4 +-
.../v8/typedapi/types/appendprocessor.go | 8 +-
.../types/applicationglobaluserprivileges.go | 4 +-
.../typedapi/types/applicationprivileges.go | 4 +-
.../types/applicationprivilegescheck.go | 4 +-
.../typedapi/types/applicationsprivileges.go | 4 +-
.../v8/typedapi/types/archive.go | 10 +-
.../typedapi/types/arraycomparecondition.go | 6 +-
.../v8/typedapi/types/arraycompareopparams.go | 4 +-
.../v8/typedapi/types/arraypercentilesitem.go | 4 +-
.../typedapi/types/asciifoldingtokenfilter.go | 4 +-
.../v8/typedapi/types/asyncsearch.go | 24 +-
.../v8/typedapi/types/attachmentprocessor.go | 12 +-
.../v8/typedapi/types/audit.go | 6 +-
.../v8/typedapi/types/authenticateduser.go | 6 +-
.../v8/typedapi/types/authenticatetoken.go | 4 +-
.../typedapi/types/authenticationprovider.go | 4 +-
.../types/autodatehistogramaggregate.go | 4 +-
.../types/autodatehistogramaggregation.go | 27 +-
.../v8/typedapi/types/autofollowedcluster.go | 4 +-
.../v8/typedapi/types/autofollowpattern.go | 4 +-
.../types/autofollowpatternsummary.go | 8 +-
.../v8/typedapi/types/autofollowstats.go | 10 +-
.../v8/typedapi/types/autoscalingcapacity.go | 4 +-
.../v8/typedapi/types/autoscalingdecider.go | 4 +-
.../v8/typedapi/types/autoscalingdeciders.go | 4 +-
.../v8/typedapi/types/autoscalingnode.go | 4 +-
.../v8/typedapi/types/autoscalingpolicy.go | 4 +-
.../v8/typedapi/types/autoscalingresources.go | 8 +-
.../v8/typedapi/types/averageaggregation.go | 4 +-
.../types/averagebucketaggregation.go | 23 +-
.../v8/typedapi/types/avgaggregate.go | 4 +-
.../v8/typedapi/types/azurerepository.go | 4 +-
.../typedapi/types/azurerepositorysettings.go | 8 +-
.../v8/typedapi/types/base.go | 8 +-
.../v8/typedapi/types/baseindicator.go | 4 +-
.../v8/typedapi/types/basenode.go | 4 +-
.../v8/typedapi/types/binaryproperty.go | 26 +-
.../v8/typedapi/types/booleanproperty.go | 32 +-
.../v8/typedapi/types/boolquery.go | 6 +-
.../v8/typedapi/types/boostingquery.go | 8 +-
.../v8/typedapi/types/boxplotaggregate.go | 18 +-
.../v8/typedapi/types/boxplotaggregation.go | 6 +-
.../v8/typedapi/types/breaker.go | 12 +-
.../types/bucketcorrelationaggregation.go | 24 +-
.../types/bucketcorrelationfunction.go | 4 +-
...cketcorrelationfunctioncountcorrelation.go | 4 +-
...lationfunctioncountcorrelationindicator.go | 6 +-
.../v8/typedapi/types/bucketinfluencer.go | 14 +-
.../v8/typedapi/types/bucketksaggregation.go | 23 +-
.../types/bucketmetricvalueaggregate.go | 4 +-
.../typedapi/types/bucketpathaggregation.go | 24 +-
.../types/bucketsadjacencymatrixbucket.go | 6 +-
.../types/bucketsapikeyquerycontainer.go | 6 +-
.../typedapi/types/bucketscompositebucket.go | 6 +-
.../typedapi/types/bucketscriptaggregation.go | 23 +-
.../types/bucketsdatehistogrambucket.go | 6 +-
.../types/bucketsdoubletermsbucket.go | 6 +-
.../types/bucketselectoraggregation.go | 23 +-
.../v8/typedapi/types/bucketsfiltersbucket.go | 6 +-
.../types/bucketsfrequentitemsetsbucket.go | 6 +-
.../types/bucketsgeohashgridbucket.go | 6 +-
.../typedapi/types/bucketsgeohexgridbucket.go | 6 +-
.../types/bucketsgeotilegridbucket.go | 6 +-
.../typedapi/types/bucketshistogrambucket.go | 6 +-
.../typedapi/types/bucketsipprefixbucket.go | 6 +-
.../v8/typedapi/types/bucketsiprangebucket.go | 6 +-
.../types/bucketslongraretermsbucket.go | 6 +-
.../typedapi/types/bucketslongtermsbucket.go | 6 +-
.../typedapi/types/bucketsmultitermsbucket.go | 6 +-
.../typedapi/types/bucketsortaggregation.go | 27 +-
.../v8/typedapi/types/bucketspath.go | 6 +-
.../v8/typedapi/types/bucketsquery.go | 6 +-
.../v8/typedapi/types/bucketsrangebucket.go | 6 +-
.../bucketssignificantlongtermsbucket.go | 6 +-
.../bucketssignificantstringtermsbucket.go | 6 +-
.../types/bucketsstringraretermsbucket.go | 6 +-
.../types/bucketsstringtermsbucket.go | 6 +-
.../v8/typedapi/types/bucketsummary.go | 12 +-
.../bucketsvariablewidthhistogrambucket.go | 6 +-
.../v8/typedapi/types/bucketsvoid.go | 10 +-
.../v8/typedapi/types/buildinformation.go | 4 +-
.../types/bulkindexbyscrollfailure.go | 6 +-
.../v8/typedapi/types/bulkstats.go | 10 +-
.../v8/typedapi/types/bytenumberproperty.go | 36 +-
.../v8/typedapi/types/bytesize.go | 6 +-
.../v8/typedapi/types/bytesprocessor.go | 8 +-
.../v8/typedapi/types/cachequeries.go | 6 +-
.../v8/typedapi/types/cachestats.go | 12 +-
.../v8/typedapi/types/calendar.go | 4 +-
.../v8/typedapi/types/calendarevent.go | 4 +-
.../v8/typedapi/types/cardinalityaggregate.go | 6 +-
.../typedapi/types/cardinalityaggregation.go | 8 +-
.../types/catanonalydetectorcolumns.go | 4 +-
.../v8/typedapi/types/catcomponenttemplate.go | 4 +-
.../v8/typedapi/types/catdatafeedcolumns.go | 4 +-
.../v8/typedapi/types/catdfacolumns.go | 4 +-
.../typedapi/types/categorizationanalyzer.go | 6 +-
.../types/categorizationanalyzerdefinition.go | 18 +-
.../types/categorizetextaggregation.go | 41 +-
.../typedapi/types/categorizetextanalyzer.go | 6 +-
.../v8/typedapi/types/category.go | 6 +-
.../typedapi/types/cattrainedmodelscolumns.go | 4 +-
.../v8/typedapi/types/cattransformcolumns.go | 4 +-
.../go-elasticsearch/v8/typedapi/types/ccr.go | 12 +-
.../v8/typedapi/types/ccrshardstats.go | 30 +-
.../typedapi/types/certificateinformation.go | 6 +-
.../v8/typedapi/types/cgroup.go | 4 +-
.../v8/typedapi/types/cgroupcpu.go | 8 +-
.../v8/typedapi/types/cgroupcpustat.go | 8 +-
.../v8/typedapi/types/cgroupmemory.go | 4 +-
.../v8/typedapi/types/chaininput.go | 4 +-
.../v8/typedapi/types/charfilter.go | 6 +-
.../v8/typedapi/types/charfilterdefinition.go | 6 +-
.../v8/typedapi/types/charfilterdetail.go | 4 +-
.../v8/typedapi/types/charfiltertypes.go | 4 +-
.../v8/typedapi/types/chargrouptokenizer.go | 6 +-
.../v8/typedapi/types/checkpointing.go | 10 +-
.../v8/typedapi/types/checkpointstats.go | 6 +-
.../v8/typedapi/types/childrenaggregate.go | 14 +-
.../v8/typedapi/types/childrenaggregation.go | 24 +-
.../v8/typedapi/types/chisquareheuristic.go | 8 +-
.../v8/typedapi/types/chunkingconfig.go | 4 +-
.../v8/typedapi/types/circleprocessor.go | 10 +-
.../types/classificationinferenceoptions.go | 8 +-
.../types/cleanuprepositoryresults.go | 8 +-
.../v8/typedapi/types/client.go | 16 +-
.../v8/typedapi/types/closeindexresult.go | 6 +-
.../v8/typedapi/types/closeshardresult.go | 4 +-
.../v8/typedapi/types/clusterappliedstats.go | 4 +-
.../types/clustercomponenttemplate.go | 4 +-
.../v8/typedapi/types/clusterdetails.go | 6 +-
.../v8/typedapi/types/clusterfilesystem.go | 10 +-
.../typedapi/types/clusterindexingpressure.go | 4 +-
.../v8/typedapi/types/clusterindices.go | 6 +-
.../v8/typedapi/types/clusterindicesshards.go | 10 +-
.../types/clusterindicesshardsindex.go | 4 +-
.../v8/typedapi/types/clusterinfo.go | 4 +-
.../v8/typedapi/types/clusterinfotargets.go | 4 +-
.../v8/typedapi/types/clusteringest.go | 6 +-
.../v8/typedapi/types/clusterjvm.go | 6 +-
.../v8/typedapi/types/clusterjvmmemory.go | 8 +-
.../v8/typedapi/types/clusterjvmversion.go | 10 +-
.../v8/typedapi/types/clusternetworktypes.go | 4 +-
.../v8/typedapi/types/clusternode.go | 4 +-
.../v8/typedapi/types/clusternodecount.go | 32 +-
.../v8/typedapi/types/clusternodes.go | 4 +-
.../typedapi/types/clusteroperatingsystem.go | 8 +-
.../clusteroperatingsystemarchitecture.go | 6 +-
.../types/clusteroperatingsystemname.go | 6 +-
.../types/clusteroperatingsystemprettyname.go | 6 +-
.../typedapi/types/clusterpressurememory.go | 6 +-
.../v8/typedapi/types/clusterprocess.go | 4 +-
.../v8/typedapi/types/clusterprocesscpu.go | 6 +-
.../clusterprocessopenfiledescriptors.go | 10 +-
.../v8/typedapi/types/clusterprocessor.go | 10 +-
.../v8/typedapi/types/clusterremoteinfo.go | 6 +-
.../typedapi/types/clusterremoteproxyinfo.go | 12 +-
.../typedapi/types/clusterremotesniffinfo.go | 12 +-
.../types/clusterruntimefieldtypes.go | 28 +-
.../v8/typedapi/types/clustershardmetrics.go | 10 +-
.../v8/typedapi/types/clusterstatequeue.go | 10 +-
.../v8/typedapi/types/clusterstateupdate.go | 6 +-
.../v8/typedapi/types/clusterstatistics.go | 16 +-
.../v8/typedapi/types/collector.go | 4 +-
.../v8/typedapi/types/column.go | 4 +-
.../v8/typedapi/types/combinedfieldsquery.go | 8 +-
.../v8/typedapi/types/command.go | 4 +-
.../types/commandallocateprimaryaction.go | 8 +-
.../types/commandallocatereplicaaction.go | 6 +-
.../v8/typedapi/types/commandcancelaction.go | 8 +-
.../v8/typedapi/types/commandmoveaction.go | 6 +-
.../types/commoncatqueryparameters.go | 175 +
.../typedapi/types/commongramstokenfilter.go | 8 +-
.../typedapi/types/commonqueryparameters.go | 137 +
.../v8/typedapi/types/commontermsquery.go | 8 +-
.../v8/typedapi/types/compactnodeinfo.go | 4 +-
.../v8/typedapi/types/completioncontext.go | 8 +-
.../v8/typedapi/types/completionproperty.go | 32 +-
.../v8/typedapi/types/completionresult.go | 76 +
.../v8/typedapi/types/completionstats.go | 6 +-
.../v8/typedapi/types/completionsuggest.go | 8 +-
.../v8/typedapi/types/completionsuggester.go | 8 +-
.../typedapi/types/completionsuggestoption.go | 10 +-
.../typedapi/types/componenttemplatenode.go | 4 +-
.../types/componenttemplatesummary.go | 4 +-
.../v8/typedapi/types/compositeaggregate.go | 4 +-
.../typedapi/types/compositeaggregatekey.go | 4 +-
.../v8/typedapi/types/compositeaggregation.go | 25 +-
.../types/compositeaggregationsource.go | 4 +-
.../v8/typedapi/types/compositebucket.go | 14 +-
.../compositedatehistogramaggregation.go | 6 +-
.../types/compositegeotilegridaggregation.go | 8 +-
.../types/compositehistogramaggregation.go | 8 +-
.../types/compositetermsaggregation.go | 6 +-
.../v8/typedapi/types/conditiontokenfilter.go | 4 +-
.../v8/typedapi/types/configuration.go | 10 +-
.../v8/typedapi/types/configurations.go | 4 +-
.../v8/typedapi/types/confusionmatrixitem.go | 8 +-
.../types/confusionmatrixprediction.go | 6 +-
.../types/confusionmatrixthreshold.go | 12 +-
.../v8/typedapi/types/connection.go | 12 +-
.../typedapi/types/constantkeywordproperty.go | 22 +-
.../v8/typedapi/types/constantscorequery.go | 6 +-
.../v8/typedapi/types/context.go | 6 +-
.../v8/typedapi/types/contextmethod.go | 4 +-
.../v8/typedapi/types/contextmethodparam.go | 4 +-
.../v8/typedapi/types/convertprocessor.go | 8 +-
.../v8/typedapi/types/coordinatorstats.go | 12 +-
.../v8/typedapi/types/coordsgeobounds.go | 12 +-
.../v8/typedapi/types/coreknnquery.go | 22 +-
.../v8/typedapi/types/counter.go | 8 +-
.../v8/typedapi/types/countrecord.go | 4 +-
.../go-elasticsearch/v8/typedapi/types/cpu.go | 6 +-
.../v8/typedapi/types/cpuacct.go | 4 +-
.../v8/typedapi/types/createdstatus.go | 6 +-
.../v8/typedapi/types/createoperation.go | 8 +-
.../v8/typedapi/types/csvprocessor.go | 10 +-
.../types/cumulativecardinalityaggregate.go | 6 +-
.../types/cumulativecardinalityaggregation.go | 23 +-
.../types/cumulativesumaggregation.go | 23 +-
.../v8/typedapi/types/currentnode.go | 6 +-
.../v8/typedapi/types/customanalyzer.go | 8 +-
.../types/customcategorizetextanalyzer.go | 4 +-
.../v8/typedapi/types/customnormalizer.go | 4 +-
.../v8/typedapi/types/dailyschedule.go | 4 +-
.../v8/typedapi/types/danglingindex.go | 4 +-
.../v8/typedapi/types/datacounts.go | 40 +-
.../v8/typedapi/types/datadescription.go | 4 +-
.../v8/typedapi/types/dataemailattachment.go | 4 +-
.../typedapi/types/datafeedauthorization.go | 4 +-
.../v8/typedapi/types/datafeedconfig.go | 8 +-
.../v8/typedapi/types/datafeedrunningstate.go | 8 +-
.../v8/typedapi/types/datafeeds.go | 6 +-
.../v8/typedapi/types/datafeedsrecord.go | 4 +-
.../v8/typedapi/types/datafeedstats.go | 4 +-
.../v8/typedapi/types/datafeedtimingstats.go | 8 +-
.../v8/typedapi/types/dataframeanalysis.go | 32 +-
.../types/dataframeanalysisanalyzedfields.go | 4 +-
.../types/dataframeanalysisclassification.go | 34 +-
.../types/dataframeanalysiscontainer.go | 4 +-
.../dataframeanalysisfeatureprocessor.go | 4 +-
...alysisfeatureprocessorfrequencyencoding.go | 4 +-
...meanalysisfeatureprocessormultiencoding.go | 4 +-
...meanalysisfeatureprocessorngramencoding.go | 10 +-
...eanalysisfeatureprocessoronehotencoding.go | 4 +-
...lysisfeatureprocessortargetmeanencoding.go | 6 +-
.../dataframeanalysisoutlierdetection.go | 14 +-
.../types/dataframeanalysisregression.go | 34 +-
.../v8/typedapi/types/dataframeanalytics.go | 4 +-
.../types/dataframeanalyticsauthorization.go | 4 +-
.../types/dataframeanalyticsdestination.go | 4 +-
.../types/dataframeanalyticsfieldselection.go | 8 +-
.../dataframeanalyticsmemoryestimation.go | 4 +-
.../types/dataframeanalyticsrecord.go | 4 +-
.../types/dataframeanalyticssource.go | 4 +-
.../types/dataframeanalyticsstatscontainer.go | 4 +-
.../dataframeanalyticsstatsdatacounts.go | 10 +-
.../dataframeanalyticsstatshyperparameters.go | 6 +-
.../dataframeanalyticsstatsmemoryusage.go | 8 +-
...dataframeanalyticsstatsoutlierdetection.go | 4 +-
.../types/dataframeanalyticsstatsprogress.go | 6 +-
.../types/dataframeanalyticssummary.go | 8 +-
.../types/dataframeclassificationsummary.go | 4 +-
.../dataframeclassificationsummaryaccuracy.go | 6 +-
...icationsummarymulticlassconfusionmatrix.go | 6 +-
...dataframeclassificationsummaryprecision.go | 6 +-
.../dataframeclassificationsummaryrecall.go | 6 +-
.../types/dataframeevaluationclass.go | 6 +-
.../dataframeevaluationclassification.go | 4 +-
...ataframeevaluationclassificationmetrics.go | 4 +-
...meevaluationclassificationmetricsaucroc.go | 6 +-
.../types/dataframeevaluationcontainer.go | 4 +-
.../types/dataframeevaluationmetrics.go | 4 +-
.../dataframeevaluationoutlierdetection.go | 4 +-
...aframeevaluationoutlierdetectionmetrics.go | 4 +-
.../types/dataframeevaluationregression.go | 4 +-
.../dataframeevaluationregressionmetrics.go | 4 +-
...taframeevaluationregressionmetricshuber.go | 6 +-
...ataframeevaluationregressionmetricsmsle.go | 6 +-
.../types/dataframeevaluationsummaryaucroc.go | 6 +-
...taframeevaluationsummaryaucroccurveitem.go | 10 +-
.../types/dataframeevaluationvalue.go | 6 +-
.../types/dataframeoutlierdetectionsummary.go | 4 +-
.../typedapi/types/dataframepreviewconfig.go | 6 +-
.../types/dataframeregressionsummary.go | 4 +-
.../v8/typedapi/types/datapathstats.go | 18 +-
.../v8/typedapi/types/datastream.go | 16 +-
.../v8/typedapi/types/datastreamindex.go | 6 +-
.../v8/typedapi/types/datastreamlifecycle.go | 4 +-
.../types/datastreamlifecycledownsampling.go | 4 +-
.../types/datastreamlifecycleexplain.go | 6 +-
.../datastreamlifecyclerolloverconditions.go | 12 +-
.../types/datastreamlifecyclewithrollover.go | 4 +-
.../v8/typedapi/types/datastreamnames.go | 4 +-
.../v8/typedapi/types/datastreams.go | 12 +-
.../v8/typedapi/types/datastreamsstatsitem.go | 8 +-
.../v8/typedapi/types/datastreamtimestamp.go | 6 +-
.../types/datastreamtimestampfield.go | 4 +-
.../v8/typedapi/types/datastreamvisibility.go | 6 +-
.../typedapi/types/datastreamwithlifecycle.go | 4 +-
.../typedapi/types/datatierphasestatistics.go | 24 +-
.../v8/typedapi/types/datatiers.go | 8 +-
.../v8/typedapi/types/datedecayfunction.go | 6 +-
.../types/datedistancefeaturequery.go | 6 +-
.../typedapi/types/datehistogramaggregate.go | 4 +-
.../types/datehistogramaggregation.go | 29 +-
.../v8/typedapi/types/datehistogrambucket.go | 14 +-
.../typedapi/types/datehistogramgrouping.go | 4 +-
.../typedapi/types/dateindexnameprocessor.go | 6 +-
.../v8/typedapi/types/datenanosproperty.go | 34 +-
.../v8/typedapi/types/dateprocessor.go | 6 +-
.../v8/typedapi/types/dateproperty.go | 34 +-
.../v8/typedapi/types/daterangeaggregate.go | 4 +-
.../v8/typedapi/types/daterangeaggregation.go | 27 +-
.../v8/typedapi/types/daterangeexpression.go | 4 +-
.../v8/typedapi/types/daterangeproperty.go | 32 +-
.../v8/typedapi/types/daterangequery.go | 6 +-
.../v8/typedapi/types/datetime.go | 6 +-
.../v8/typedapi/types/decayfunction.go | 6 +-
.../types/decayplacementdatemathduration.go | 6 +-
.../types/decayplacementdoubledouble.go | 12 +-
.../decayplacementgeolocationdistance.go | 6 +-
.../v8/typedapi/types/defaults.go | 4 +-
.../v8/typedapi/types/definition.go | 4 +-
.../typedapi/types/delayeddatacheckconfig.go | 6 +-
.../v8/typedapi/types/deleteoperation.go | 6 +-
.../types/delimitedpayloadtokenfilter.go | 4 +-
.../typedapi/types/densevectorindexoptions.go | 8 +-
.../v8/typedapi/types/densevectorproperty.go | 40 +-
.../v8/typedapi/types/deprecation.go | 4 +-
.../v8/typedapi/types/deprecationindexing.go | 4 +-
.../v8/typedapi/types/derivativeaggregate.go | 6 +-
.../typedapi/types/derivativeaggregation.go | 23 +-
.../v8/typedapi/types/detectionrule.go | 4 +-
.../v8/typedapi/types/detector.go | 8 +-
.../v8/typedapi/types/detectorread.go | 8 +-
.../v8/typedapi/types/diagnosis.go | 4 +-
.../types/diagnosisaffectedresources.go | 4 +-
.../dictionarydecompoundertokenfilter.go | 12 +-
.../v8/typedapi/types/directgenerator.go | 18 +-
.../v8/typedapi/types/discovery.go | 4 +-
.../v8/typedapi/types/discoverynode.go | 4 +-
.../v8/typedapi/types/diskindicator.go | 4 +-
.../v8/typedapi/types/diskindicatordetails.go | 14 +-
.../v8/typedapi/types/diskusage.go | 14 +-
.../v8/typedapi/types/dismaxquery.go | 8 +-
.../v8/typedapi/types/dissectprocessor.go | 8 +-
.../v8/typedapi/types/distancefeaturequery.go | 6 +-
...istancefeaturequerybasedatemathduration.go | 6 +-
...ancefeaturequerybasegeolocationdistance.go | 6 +-
.../types/diversifiedsampleraggregation.go | 31 +-
.../v8/typedapi/types/docstats.go | 8 +-
.../v8/typedapi/types/document.go | 4 +-
.../v8/typedapi/types/documentrating.go | 6 +-
.../v8/typedapi/types/documentsimulation.go | 6 +-
.../v8/typedapi/types/dotexpanderprocessor.go | 6 +-
.../v8/typedapi/types/doublenumberproperty.go | 38 +-
.../v8/typedapi/types/doublerangeproperty.go | 32 +-
.../v8/typedapi/types/doubletermsaggregate.go | 8 +-
.../v8/typedapi/types/doubletermsbucket.go | 36 +-
.../v8/typedapi/types/downsampleconfig.go | 4 +-
.../v8/typedapi/types/downsamplinground.go | 4 +-
.../v8/typedapi/types/dropprocessor.go | 6 +-
.../v8/typedapi/types/duration.go | 6 +-
.../types/durationvalueunitfloatmillis.go | 4 +-
.../typedapi/types/durationvalueunitmillis.go | 4 +-
.../typedapi/types/durationvalueunitnanos.go | 4 +-
.../types/durationvalueunitseconds.go | 4 +-
.../v8/typedapi/types/dutchanalyzer.go | 4 +-
.../v8/typedapi/types/dynamicproperty.go | 46 +-
.../v8/typedapi/types/dynamictemplate.go | 457 +-
.../v8/typedapi/types/edgengramtokenfilter.go | 8 +-
.../v8/typedapi/types/edgengramtokenizer.go | 8 +-
.../types/elasticsearchversioninfo.go | 6 +-
.../types/elasticsearchversionmininfo.go | 4 +-
.../v8/typedapi/types/elisiontokenfilter.go | 4 +-
.../v8/typedapi/types/email.go | 4 +-
.../v8/typedapi/types/emailaction.go | 4 +-
.../types/emailattachmentcontainer.go | 4 +-
.../v8/typedapi/types/emailbody.go | 4 +-
.../v8/typedapi/types/emailresult.go | 4 +-
.../v8/typedapi/types/emptyobject.go | 4 +-
.../v8/typedapi/types/enrichpolicy.go | 4 +-
.../v8/typedapi/types/enrichprocessor.go | 12 +-
.../v8/typedapi/types/ensemble.go | 4 +-
.../accesstokengranttype.go | 4 +-
.../acknowledgementoptions.go | 4 +-
.../actionexecutionmode.go | 4 +-
.../actionstatusoptions.go | 4 +-
.../types/enums/actiontype/actiontype.go | 4 +-
.../allocationexplaindecision.go | 4 +-
.../enums/apikeygranttype/apikeygranttype.go | 4 +-
.../types/enums/appliesto/appliesto.go | 4 +-
.../enums/boundaryscanner/boundaryscanner.go | 4 +-
.../v8/typedapi/types/enums/bytes/bytes.go | 4 +-
.../calendarinterval/calendarinterval.go | 4 +-
.../cardinalityexecutionmode.go | 4 +-
.../catanomalydetectorcolumn.go | 4 +-
.../catdatafeedcolumn/catdatafeedcolumn.go | 4 +-
.../types/enums/catdfacolumn/catdfacolumn.go | 4 +-
.../categorizationstatus.go | 4 +-
.../cattrainedmodelscolumn.go | 4 +-
.../cattransformcolumn/cattransformcolumn.go | 4 +-
.../enums/childscoremode/childscoremode.go | 4 +-
.../types/enums/chunkingmode/chunkingmode.go | 4 +-
.../clusterinfotarget/clusterinfotarget.go | 4 +-
.../clusterprivilege/clusterprivilege.go | 92 +-
.../clustersearchstatus.go | 4 +-
.../combinedfieldsoperator.go | 4 +-
.../combinedfieldszeroterms.go | 4 +-
.../types/enums/conditionop/conditionop.go | 4 +-
.../conditionoperator/conditionoperator.go | 4 +-
.../enums/conditiontype/conditiontype.go | 4 +-
.../types/enums/conflicts/conflicts.go | 4 +-
.../connectionscheme/connectionscheme.go | 4 +-
.../types/enums/converttype/converttype.go | 4 +-
.../dataattachmentformat.go | 4 +-
.../enums/datafeedstate/datafeedstate.go | 4 +-
.../enums/dataframestate/dataframestate.go | 4 +-
.../v8/typedapi/types/enums/day/day.go | 4 +-
.../typedapi/types/enums/decision/decision.go | 4 +-
.../delimitedpayloadencoding.go | 4 +-
.../deploymentallocationstate.go | 4 +-
.../deploymentassignmentstate.go | 4 +-
.../enums/deploymentstate/deploymentstate.go | 4 +-
.../deprecationlevel/deprecationlevel.go | 4 +-
.../dfiindependencemeasure.go | 4 +-
.../enums/dfraftereffect/dfraftereffect.go | 4 +-
.../enums/dfrbasicmodel/dfrbasicmodel.go | 4 +-
.../types/enums/distanceunit/distanceunit.go | 40 +-
.../enums/dynamicmapping/dynamicmapping.go | 4 +-
.../enums/edgengramside/edgengramside.go | 4 +-
.../enums/emailpriority/emailpriority.go | 4 +-
.../enrichpolicyphase/enrichpolicyphase.go | 4 +-
.../enums/excludefrequent/excludefrequent.go | 4 +-
.../enums/executionphase/executionphase.go | 4 +-
.../enums/executionstatus/executionstatus.go | 4 +-
.../enums/expandwildcard/expandwildcard.go | 4 +-
.../typedapi/types/enums/feature/feature.go | 4 +-
.../fieldsortnumerictype.go | 4 +-
.../types/enums/fieldtype/fieldtype.go | 12 +-
.../fieldvaluefactormodifier.go | 4 +-
.../types/enums/filtertype/filtertype.go | 4 +-
.../followerindexstatus.go | 4 +-
.../functionboostmode/functionboostmode.go | 4 +-
.../functionscoremode/functionscoremode.go | 4 +-
.../types/enums/gappolicy/gappolicy.go | 4 +-
.../enums/geodistancetype/geodistancetype.go | 4 +-
.../types/enums/geoexecution/geoexecution.go | 4 +-
.../enums/geoorientation/geoorientation.go | 4 +-
.../geoshaperelation/geoshaperelation.go | 4 +-
.../types/enums/geostrategy/geostrategy.go | 4 +-
.../geovalidationmethod.go | 4 +-
.../types/enums/granttype/granttype.go | 4 +-
.../gridaggregationtype.go | 4 +-
.../typedapi/types/enums/gridtype/gridtype.go | 4 +-
.../typedapi/types/enums/groupby/groupby.go | 4 +-
.../types/enums/healthstatus/healthstatus.go | 4 +-
.../highlighterencoder/highlighterencoder.go | 4 +-
.../highlighterfragmenter.go | 4 +-
.../highlighterorder/highlighterorder.go | 4 +-
.../highlightertagsschema.go | 4 +-
.../enums/highlightertype/highlightertype.go | 8 +-
.../enums/holtwinterstype/holtwinterstype.go | 12 +-
.../enums/httpinputmethod/httpinputmethod.go | 4 +-
.../enums/ibdistribution/ibdistribution.go | 4 +-
.../typedapi/types/enums/iblambda/iblambda.go | 4 +-
.../icucollationalternate.go | 4 +-
.../icucollationcasefirst.go | 4 +-
.../icucollationdecomposition.go | 4 +-
.../icucollationstrength.go | 4 +-
.../icunormalizationmode.go | 4 +-
.../icunormalizationtype.go | 4 +-
.../icutransformdirection.go | 4 +-
.../types/enums/impactarea/impactarea.go | 4 +-
.../typedapi/types/enums/include/include.go | 4 +-
.../indexcheckonstartup.go | 4 +-
.../indexingjobstate/indexingjobstate.go | 4 +-
.../indexmetadatastate/indexmetadatastate.go | 4 +-
.../types/enums/indexoptions/indexoptions.go | 4 +-
.../enums/indexprivilege/indexprivilege.go | 24 +-
.../indexroutingallocationoptions.go | 4 +-
.../indexroutingrebalanceoptions.go | 4 +-
.../indicatorhealthstatus.go | 4 +-
.../types/enums/inputtype/inputtype.go | 4 +-
.../jobblockedreason/jobblockedreason.go | 4 +-
.../typedapi/types/enums/jobstate/jobstate.go | 4 +-
.../jsonprocessorconflictstrategy.go | 4 +-
.../enums/keeptypesmode/keeptypesmode.go | 4 +-
.../kuromojitokenizationmode.go | 4 +-
.../typedapi/types/enums/language/language.go | 4 +-
.../v8/typedapi/types/enums/level/level.go | 4 +-
.../enums/licensestatus/licensestatus.go | 4 +-
.../types/enums/licensetype/licensetype.go | 4 +-
.../lifecycleoperationmode.go | 4 +-
.../types/enums/managedby/managedby.go | 12 +-
.../types/enums/matchtype/matchtype.go | 4 +-
.../types/enums/memorystatus/memorystatus.go | 4 +-
.../v8/typedapi/types/enums/metric/metric.go | 4 +-
.../enums/migrationstatus/migrationstatus.go | 4 +-
.../enums/minimuminterval/minimuminterval.go | 4 +-
.../types/enums/missingorder/missingorder.go | 4 +-
.../v8/typedapi/types/enums/month/month.go | 4 +-
.../enums/multivaluemode/multivaluemode.go | 4 +-
.../typedapi/types/enums/noderole/noderole.go | 4 +-
.../noridecompoundmode/noridecompoundmode.go | 4 +-
.../enums/normalization/normalization.go | 4 +-
.../enums/normalizemethod/normalizemethod.go | 8 +-
.../numericfielddataformat.go | 4 +-
.../enums/onscripterror/onscripterror.go | 4 +-
.../enums/operationtype/operationtype.go | 4 +-
.../typedapi/types/enums/operator/operator.go | 4 +-
.../v8/typedapi/types/enums/optype/optype.go | 4 +-
.../pagerdutycontexttype.go | 4 +-
.../pagerdutyeventtype/pagerdutyeventtype.go | 4 +-
.../enums/phoneticencoder/phoneticencoder.go | 4 +-
.../phoneticlanguage/phoneticlanguage.go | 4 +-
.../phoneticnametype/phoneticnametype.go | 4 +-
.../phoneticruletype/phoneticruletype.go | 4 +-
.../types/enums/policytype/policytype.go | 4 +-
.../types/enums/quantifier/quantifier.go | 4 +-
.../queryrulecriteriatype.go | 4 +-
.../enums/queryruletype/queryruletype.go | 4 +-
.../enums/rangerelation/rangerelation.go | 4 +-
.../typedapi/types/enums/ratemode/ratemode.go | 4 +-
.../typedapi/types/enums/refresh/refresh.go | 4 +-
.../responsecontenttype.go | 4 +-
.../v8/typedapi/types/enums/result/result.go | 4 +-
.../enums/resultposition/resultposition.go | 4 +-
.../types/enums/routingstate/routingstate.go | 4 +-
.../types/enums/ruleaction/ruleaction.go | 4 +-
.../runtimefieldtype/runtimefieldtype.go | 4 +-
.../sampleraggregationexecutionhint.go | 4 +-
.../types/enums/scoremode/scoremode.go | 4 +-
.../enums/scriptlanguage/scriptlanguage.go | 4 +-
.../enums/scriptsorttype/scriptsorttype.go | 4 +-
.../types/enums/searchtype/searchtype.go | 4 +-
.../segmentsortmissing/segmentsortmissing.go | 4 +-
.../enums/segmentsortmode/segmentsortmode.go | 4 +-
.../segmentsortorder/segmentsortorder.go | 4 +-
.../types/enums/shapetype/shapetype.go | 4 +-
.../shardroutingstate/shardroutingstate.go | 4 +-
.../shardsstatsstage/shardsstatsstage.go | 4 +-
.../shardstoreallocation.go | 4 +-
.../shardstorestatus/shardstorestatus.go | 4 +-
.../enums/shutdownstatus/shutdownstatus.go | 4 +-
.../types/enums/shutdowntype/shutdowntype.go | 4 +-
.../types/enums/snapshotsort/snapshotsort.go | 4 +-
.../snapshotupgradestate.go | 4 +-
.../snowballlanguage/snowballlanguage.go | 4 +-
.../typedapi/types/enums/sortmode/sortmode.go | 4 +-
.../types/enums/sortorder/sortorder.go | 4 +-
.../enums/sourcefieldmode/sourcefieldmode.go | 4 +-
.../types/enums/statslevel/statslevel.go | 4 +-
.../types/enums/storagetype/storagetype.go | 4 +-
.../enums/stringdistance/stringdistance.go | 4 +-
.../types/enums/suggestmode/suggestmode.go | 4 +-
.../types/enums/suggestsort/suggestsort.go | 4 +-
.../enums/synonymformat/synonymformat.go | 4 +-
.../typedapi/types/enums/tasktype/tasktype.go | 12 +-
.../enums/templateformat/templateformat.go | 4 +-
.../termsaggregationcollectmode.go | 4 +-
.../termsaggregationexecutionhint.go | 4 +-
.../termvectoroption/termvectoroption.go | 4 +-
.../enums/textquerytype/textquerytype.go | 4 +-
.../types/enums/threadtype/threadtype.go | 4 +-
.../timeseriesmetrictype.go | 4 +-
.../typedapi/types/enums/timeunit/timeunit.go | 32 +-
.../types/enums/tokenchar/tokenchar.go | 4 +-
.../tokenizationtruncate.go | 4 +-
.../totalhitsrelation/totalhitsrelation.go | 4 +-
.../trainedmodeltype/trainedmodeltype.go | 4 +-
.../trainingpriority/trainingpriority.go | 4 +-
.../translogdurability/translogdurability.go | 4 +-
.../types/enums/ttesttype/ttesttype.go | 4 +-
.../v8/typedapi/types/enums/type_/type_.go | 4 +-
.../unassignedinformationreason.go | 4 +-
.../useragentproperty/useragentproperty.go | 4 +-
.../types/enums/valuetype/valuetype.go | 4 +-
.../types/enums/versiontype/versiontype.go | 4 +-
.../enums/waitforevents/waitforevents.go | 4 +-
.../types/enums/watcherstate/watcherstate.go | 4 +-
.../enums/zerotermsquery/zerotermsquery.go | 4 +-
.../v8/typedapi/types/epochtimeunitmillis.go | 4 +-
.../v8/typedapi/types/epochtimeunitseconds.go | 4 +-
.../go-elasticsearch/v8/typedapi/types/eql.go | 8 +-
.../v8/typedapi/types/eqlfeatures.go | 4 +-
.../v8/typedapi/types/eqlfeaturesjoin.go | 4 +-
.../v8/typedapi/types/eqlfeatureskeys.go | 4 +-
.../v8/typedapi/types/eqlfeaturespipes.go | 4 +-
.../v8/typedapi/types/eqlfeaturessequences.go | 4 +-
.../v8/typedapi/types/eqlhits.go | 4 +-
.../v8/typedapi/types/errorcause.go | 6 +-
.../v8/typedapi/types/errorresponsebase.go | 6 +-
.../v8/typedapi/types/esqlcolumns.go | 4 +-
.../v8/typedapi/types/eventdatastream.go | 4 +-
.../v8/typedapi/types/ewmamodelsettings.go | 6 +-
.../types/ewmamovingaverageaggregation.go | 31 +-
.../types/executeenrichpolicystatus.go | 4 +-
.../v8/typedapi/types/executingpolicy.go | 4 +-
.../v8/typedapi/types/executionresult.go | 4 +-
.../typedapi/types/executionresultaction.go | 4 +-
.../types/executionresultcondition.go | 6 +-
.../v8/typedapi/types/executionresultinput.go | 4 +-
.../v8/typedapi/types/executionstate.go | 6 +-
.../v8/typedapi/types/executionthreadpool.go | 8 +-
.../v8/typedapi/types/existsquery.go | 6 +-
.../v8/typedapi/types/expandwildcards.go | 4 +-
.../v8/typedapi/types/explainanalyzetoken.go | 18 +-
.../v8/typedapi/types/explanation.go | 6 +-
.../v8/typedapi/types/explanationdetail.go | 6 +-
.../v8/typedapi/types/explorecontrols.go | 8 +-
.../v8/typedapi/types/extendedboundsdouble.go | 8 +-
.../types/extendedboundsfielddatemath.go | 4 +-
.../v8/typedapi/types/extendedmemorystats.go | 22 +-
.../typedapi/types/extendedstatsaggregate.go | 8 +-
.../types/extendedstatsaggregation.go | 6 +-
.../types/extendedstatsbucketaggregate.go | 8 +-
.../types/extendedstatsbucketaggregation.go | 25 +-
.../v8/typedapi/types/failprocessor.go | 6 +-
.../v8/typedapi/types/feature.go | 4 +-
.../v8/typedapi/types/features.go | 4 +-
.../v8/typedapi/types/featuretoggle.go | 6 +-
.../v8/typedapi/types/fetchprofile.go | 4 +-
.../typedapi/types/fetchprofilebreakdown.go | 20 +-
.../v8/typedapi/types/fetchprofiledebug.go | 6 +-
.../v8/typedapi/types/fieldaliasproperty.go | 22 +-
.../v8/typedapi/types/fieldandformat.go | 6 +-
.../v8/typedapi/types/fieldcapability.go | 12 +-
.../v8/typedapi/types/fieldcollapse.go | 6 +-
.../types/fielddatafrequencyfilter.go | 10 +-
.../v8/typedapi/types/fielddatarecord.go | 4 +-
.../v8/typedapi/types/fielddatastats.go | 8 +-
.../v8/typedapi/types/fielddatemath.go | 6 +-
.../v8/typedapi/types/fieldlookup.go | 4 +-
.../v8/typedapi/types/fieldmapping.go | 12 +-
.../v8/typedapi/types/fieldmemoryusage.go | 6 +-
.../v8/typedapi/types/fieldmetric.go | 4 +-
.../v8/typedapi/types/fieldnamesfield.go | 6 +-
.../v8/typedapi/types/fieldrule.go | 4 +-
.../v8/typedapi/types/fields.go | 4 +-
.../v8/typedapi/types/fieldsecurity.go | 4 +-
.../v8/typedapi/types/fieldsizeusage.go | 6 +-
.../v8/typedapi/types/fieldsort.go | 4 +-
.../v8/typedapi/types/fieldstat.go | 16 +-
.../v8/typedapi/types/fieldstatistics.go | 10 +-
.../v8/typedapi/types/fieldsuggester.go | 4 +-
.../v8/typedapi/types/fieldsummary.go | 4 +-
.../v8/typedapi/types/fieldsusagebody.go | 6 +-
.../v8/typedapi/types/fieldtypes.go | 16 +-
.../v8/typedapi/types/fieldtypesmappings.go | 10 +-
.../v8/typedapi/types/fieldvalue.go | 6 +-
.../types/fieldvaluefactorscorefunction.go | 8 +-
.../typedapi/types/filecountsnapshotstats.go | 8 +-
.../v8/typedapi/types/filedetails.go | 8 +-
.../v8/typedapi/types/filesystem.go | 6 +-
.../v8/typedapi/types/filesystemtotal.go | 10 +-
.../types/fillmaskinferenceoptions.go | 6 +-
.../types/fillmaskinferenceupdateoptions.go | 6 +-
.../v8/typedapi/types/filteraggregate.go | 14 +-
.../v8/typedapi/types/filterref.go | 4 +-
.../v8/typedapi/types/filtersaggregate.go | 4 +-
.../v8/typedapi/types/filtersaggregation.go | 29 +-
.../v8/typedapi/types/filtersbucket.go | 14 +-
.../v8/typedapi/types/fingerprintanalyzer.go | 8 +-
.../typedapi/types/fingerprinttokenfilter.go | 6 +-
.../v8/typedapi/types/flattened.go | 10 +-
.../v8/typedapi/types/flattenedproperty.go | 34 +-
.../v8/typedapi/types/floatnumberproperty.go | 38 +-
.../v8/typedapi/types/floatrangeproperty.go | 32 +-
.../v8/typedapi/types/flushstats.go | 8 +-
.../v8/typedapi/types/followerindex.go | 4 +-
.../typedapi/types/followerindexparameters.go | 14 +-
.../v8/typedapi/types/followindexstats.go | 4 +-
.../v8/typedapi/types/followstats.go | 4 +-
.../typedapi/types/forcemergeconfiguration.go | 6 +-
.../typedapi/types/forcemergeresponsebody.go | 4 +-
.../v8/typedapi/types/foreachprocessor.go | 8 +-
.../types/formattablemetricaggregation.go | 4 +-
.../v8/typedapi/types/foundstatus.go | 6 +-
.../types/frequencyencodingpreprocessor.go | 4 +-
.../types/frequentitemsetsaggregate.go | 4 +-
.../types/frequentitemsetsaggregation.go | 10 +-
.../typedapi/types/frequentitemsetsbucket.go | 16 +-
.../typedapi/types/frequentitemsetsfield.go | 4 +-
.../v8/typedapi/types/frozenindices.go | 10 +-
.../v8/typedapi/types/functionscore.go | 6 +-
.../v8/typedapi/types/functionscorequery.go | 10 +-
.../v8/typedapi/types/fuzziness.go | 6 +-
.../v8/typedapi/types/fuzzyquery.go | 12 +-
.../v8/typedapi/types/garbagecollector.go | 4 +-
.../typedapi/types/garbagecollectortotal.go | 8 +-
.../v8/typedapi/types/gcsrepository.go | 4 +-
.../typedapi/types/gcsrepositorysettings.go | 8 +-
.../v8/typedapi/types/geoboundingboxquery.go | 10 +-
.../v8/typedapi/types/geobounds.go | 6 +-
.../v8/typedapi/types/geoboundsaggregate.go | 4 +-
.../v8/typedapi/types/geoboundsaggregation.go | 6 +-
.../v8/typedapi/types/geocentroidaggregate.go | 6 +-
.../typedapi/types/geocentroidaggregation.go | 6 +-
.../v8/typedapi/types/geodecayfunction.go | 6 +-
.../v8/typedapi/types/geodistanceaggregate.go | 4 +-
.../typedapi/types/geodistanceaggregation.go | 26 +-
.../typedapi/types/geodistancefeaturequery.go | 6 +-
.../v8/typedapi/types/geodistancequery.go | 10 +-
.../v8/typedapi/types/geodistancesort.go | 8 +-
.../v8/typedapi/types/geohashgridaggregate.go | 4 +-
.../typedapi/types/geohashgridaggregation.go | 29 +-
.../v8/typedapi/types/geohashgridbucket.go | 14 +-
.../v8/typedapi/types/geohashlocation.go | 4 +-
.../v8/typedapi/types/geohashprecision.go | 6 +-
.../v8/typedapi/types/geohexgridaggregate.go | 4 +-
.../typedapi/types/geohexgridaggregation.go | 31 +-
.../v8/typedapi/types/geohexgridbucket.go | 14 +-
.../typedapi/types/geoipdownloadstatistics.go | 12 +-
.../typedapi/types/geoipnodedatabasename.go | 4 +-
.../v8/typedapi/types/geoipnodedatabases.go | 4 +-
.../v8/typedapi/types/geoipprocessor.go | 10 +-
.../v8/typedapi/types/geoline.go | 4 +-
.../v8/typedapi/types/geolineaggregate.go | 4 +-
.../v8/typedapi/types/geolineaggregation.go | 8 +-
.../v8/typedapi/types/geolinepoint.go | 4 +-
.../v8/typedapi/types/geolinesort.go | 4 +-
.../v8/typedapi/types/geolocation.go | 6 +-
.../v8/typedapi/types/geopointproperty.go | 32 +-
.../v8/typedapi/types/geopolygonpoints.go | 4 +-
.../v8/typedapi/types/geopolygonquery.go | 10 +-
.../v8/typedapi/types/georesults.go | 4 +-
.../v8/typedapi/types/geoshapefieldquery.go | 4 +-
.../v8/typedapi/types/geoshapeproperty.go | 32 +-
.../v8/typedapi/types/geoshapequery.go | 10 +-
.../v8/typedapi/types/geotilegridaggregate.go | 4 +-
.../typedapi/types/geotilegridaggregation.go | 29 +-
.../v8/typedapi/types/geotilegridbucket.go | 14 +-
.../v8/typedapi/types/getmigrationfeature.go | 4 +-
.../v8/typedapi/types/getresult.go | 8 +-
.../v8/typedapi/types/getscriptcontext.go | 4 +-
.../v8/typedapi/types/getstats.go | 12 +-
.../v8/typedapi/types/getuserprofileerrors.go | 6 +-
.../v8/typedapi/types/globalaggregate.go | 14 +-
.../v8/typedapi/types/globalaggregation.go | 52 +-
.../v8/typedapi/types/globalprivilege.go | 4 +-
.../googlenormalizeddistanceheuristic.go | 6 +-
.../v8/typedapi/types/grantapikey.go | 4 +-
.../v8/typedapi/types/grokprocessor.go | 10 +-
.../v8/typedapi/types/groupings.go | 4 +-
.../v8/typedapi/types/gsubprocessor.go | 8 +-
.../typedapi/types/halffloatnumberproperty.go | 38 +-
.../v8/typedapi/types/haschildquery.go | 12 +-
.../v8/typedapi/types/hasparentquery.go | 10 +-
.../types/hasprivilegesuserprofileerrors.go | 6 +-
.../v8/typedapi/types/hdrmethod.go | 6 +-
.../types/hdrpercentileranksaggregate.go | 4 +-
.../typedapi/types/hdrpercentilesaggregate.go | 4 +-
.../v8/typedapi/types/healthrecord.go | 4 +-
.../v8/typedapi/types/healthresponsebody.go | 26 +-
.../v8/typedapi/types/healthstatistics.go | 8 +-
.../v8/typedapi/types/helprecord.go | 4 +-
.../v8/typedapi/types/highlight.go | 24 +-
.../v8/typedapi/types/highlightfield.go | 26 +-
.../v8/typedapi/types/hint.go | 4 +-
.../v8/typedapi/types/histogramaggregate.go | 4 +-
.../v8/typedapi/types/histogramaggregation.go | 35 +-
.../v8/typedapi/types/histogrambucket.go | 16 +-
.../v8/typedapi/types/histogramgrouping.go | 6 +-
.../v8/typedapi/types/histogramproperty.go | 24 +-
.../go-elasticsearch/v8/typedapi/types/hit.go | 8 +-
.../v8/typedapi/types/hitsevent.go | 4 +-
.../v8/typedapi/types/hitsmetadata.go | 4 +-
.../v8/typedapi/types/hitssequence.go | 4 +-
.../typedapi/types/holtlinearmodelsettings.go | 8 +-
.../types/holtmovingaverageaggregation.go | 31 +-
.../types/holtwintersmodelsettings.go | 14 +-
.../holtwintersmovingaverageaggregation.go | 31 +-
.../go-elasticsearch/v8/typedapi/types/hop.go | 4 +-
.../v8/typedapi/types/hotthread.go | 4 +-
.../v8/typedapi/types/hourandminute.go | 4 +-
.../v8/typedapi/types/hourlyschedule.go | 4 +-
.../v8/typedapi/types/htmlstripcharfilter.go | 4 +-
.../v8/typedapi/types/http.go | 8 +-
.../v8/typedapi/types/httpemailattachment.go | 6 +-
.../v8/typedapi/types/httpheaders.go | 4 +-
.../v8/typedapi/types/httpinput.go | 4 +-
.../typedapi/types/httpinputauthentication.go | 4 +-
.../types/httpinputbasicauthentication.go | 4 +-
.../v8/typedapi/types/httpinputproxy.go | 4 +-
.../types/httpinputrequestdefinition.go | 4 +-
.../typedapi/types/httpinputrequestresult.go | 4 +-
.../typedapi/types/httpinputresponseresult.go | 6 +-
.../v8/typedapi/types/hunspelltokenfilter.go | 8 +-
.../v8/typedapi/types/hyperparameter.go | 12 +-
.../v8/typedapi/types/hyperparameters.go | 32 +-
.../hyphenationdecompoundertokenfilter.go | 12 +-
.../v8/typedapi/types/icuanalyzer.go | 4 +-
.../v8/typedapi/types/icucollationproperty.go | 1026 +++
.../typedapi/types/icucollationtokenfilter.go | 26 +-
.../typedapi/types/icufoldingtokenfilter.go | 4 +-
.../types/icunormalizationcharfilter.go | 4 +-
.../types/icunormalizationtokenfilter.go | 4 +-
.../v8/typedapi/types/icutokenizer.go | 4 +-
.../typedapi/types/icutransformtokenfilter.go | 4 +-
.../go-elasticsearch/v8/typedapi/types/ids.go | 4 +-
.../v8/typedapi/types/idsquery.go | 6 +-
.../go-elasticsearch/v8/typedapi/types/ilm.go | 6 +-
.../v8/typedapi/types/ilmindicator.go | 4 +-
.../v8/typedapi/types/ilmindicatordetails.go | 6 +-
.../v8/typedapi/types/ilmpolicy.go | 4 +-
.../v8/typedapi/types/ilmpolicystatistics.go | 6 +-
.../v8/typedapi/types/impact.go | 6 +-
.../v8/typedapi/types/indexaction.go | 4 +-
.../v8/typedapi/types/indexaliases.go | 4 +-
.../types/indexanddatastreamaction.go | 4 +-
.../v8/typedapi/types/indexcapabilities.go | 4 +-
.../v8/typedapi/types/indexdetails.go | 10 +-
.../v8/typedapi/types/indexfield.go | 6 +-
.../v8/typedapi/types/indexhealthstats.go | 18 +-
.../types/indexingpressurememorysummary.go | 20 +-
.../typedapi/types/indexingslowlogsettings.go | 8 +-
.../types/indexingslowlogtresholds.go | 4 +-
.../v8/typedapi/types/indexingstats.go | 20 +-
.../v8/typedapi/types/indexmappingrecord.go | 4 +-
.../v8/typedapi/types/indexoperation.go | 8 +-
.../v8/typedapi/types/indexprivilegescheck.go | 6 +-
.../v8/typedapi/types/indexresult.go | 4 +-
.../v8/typedapi/types/indexresultsummary.go | 6 +-
.../v8/typedapi/types/indexrouting.go | 4 +-
.../typedapi/types/indexroutingallocation.go | 4 +-
.../types/indexroutingallocationdisk.go | 4 +-
.../types/indexroutingallocationinclude.go | 4 +-
.../indexroutingallocationinitialrecovery.go | 4 +-
.../typedapi/types/indexroutingrebalance.go | 4 +-
.../v8/typedapi/types/indexsegment.go | 4 +-
.../v8/typedapi/types/indexsegmentsort.go | 4 +-
.../v8/typedapi/types/indexsettingblocks.go | 4 +-
.../v8/typedapi/types/indexsettings.go | 36 +-
.../typedapi/types/indexsettingsanalysis.go | 24 +-
.../typedapi/types/indexsettingslifecycle.go | 8 +-
.../types/indexsettingslifecyclestep.go | 4 +-
.../typedapi/types/indexsettingstimeseries.go | 4 +-
.../v8/typedapi/types/indexstate.go | 4 +-
.../v8/typedapi/types/indexstats.go | 4 +-
.../v8/typedapi/types/indextemplate.go | 8 +-
.../indextemplatedatastreamconfiguration.go | 8 +-
.../v8/typedapi/types/indextemplateitem.go | 4 +-
.../v8/typedapi/types/indextemplatemapping.go | 4 +-
.../v8/typedapi/types/indextemplatesummary.go | 4 +-
.../v8/typedapi/types/indexversioning.go | 4 +-
.../v8/typedapi/types/indicatornode.go | 4 +-
.../v8/typedapi/types/indicators.go | 4 +-
.../v8/typedapi/types/indices.go | 4 +-
.../v8/typedapi/types/indicesaction.go | 4 +-
.../v8/typedapi/types/indicesblockstatus.go | 6 +-
.../typedapi/types/indicesindexingpressure.go | 4 +-
.../types/indicesindexingpressurememory.go | 6 +-
.../v8/typedapi/types/indicesmodifyaction.go | 4 +-
.../v8/typedapi/types/indicesoptions.go | 10 +-
.../v8/typedapi/types/indicesprivileges.go | 6 +-
.../typedapi/types/indicesprivilegesquery.go | 6 +-
.../v8/typedapi/types/indicesrecord.go | 4 +-
.../v8/typedapi/types/indicesshardsstats.go | 4 +-
.../v8/typedapi/types/indicesshardstats.go | 4 +-
.../v8/typedapi/types/indicesshardstores.go | 4 +-
.../v8/typedapi/types/indicesstats.go | 4 +-
.../types/indicesvalidationexplanation.go | 6 +-
.../v8/typedapi/types/indicesversions.go | 10 +-
.../v8/typedapi/types/inferenceaggregate.go | 6 +-
.../v8/typedapi/types/inferenceaggregation.go | 25 +-
.../types/inferenceclassimportance.go | 6 +-
.../v8/typedapi/types/inferenceconfig.go | 4 +-
.../types/inferenceconfigclassification.go | 8 +-
.../types/inferenceconfigcontainer.go | 4 +-
.../types/inferenceconfigcreatecontainer.go | 4 +-
.../types/inferenceconfigregression.go | 6 +-
.../types/inferenceconfigupdatecontainer.go | 4 +-
.../types/inferencefeatureimportance.go | 6 +-
.../v8/typedapi/types/inferenceprocessor.go | 6 +-
.../typedapi/types/inferenceresponseresult.go | 10 +-
.../v8/typedapi/types/inferenceresult.go | 6 +-
.../typedapi/types/inferencetopclassentry.go | 8 +-
.../v8/typedapi/types/influence.go | 4 +-
.../v8/typedapi/types/influencer.go | 12 +-
.../v8/typedapi/types/infofeaturestate.go | 4 +-
.../v8/typedapi/types/ingestpipeline.go | 4 +-
.../v8/typedapi/types/ingesttotal.go | 10 +-
.../v8/typedapi/types/inlineget.go | 10 +-
.../types/inlinegetdictuserdefined.go | 10 +-
.../v8/typedapi/types/inlinescript.go | 4 +-
.../v8/typedapi/types/innerhits.go | 18 +-
.../v8/typedapi/types/innerhitsresult.go | 4 +-
.../v8/typedapi/types/inprogress.go | 4 +-
.../v8/typedapi/types/input.go | 4 +-
.../typedapi/types/integernumberproperty.go | 38 +-
.../v8/typedapi/types/integerrangeproperty.go | 32 +-
.../v8/typedapi/types/intervals.go | 4 +-
.../v8/typedapi/types/intervalsallof.go | 8 +-
.../v8/typedapi/types/intervalsanyof.go | 4 +-
.../v8/typedapi/types/intervalsfilter.go | 4 +-
.../v8/typedapi/types/intervalsfuzzy.go | 8 +-
.../v8/typedapi/types/intervalsmatch.go | 8 +-
.../v8/typedapi/types/intervalsprefix.go | 4 +-
.../v8/typedapi/types/intervalsquery.go | 6 +-
.../v8/typedapi/types/intervalswildcard.go | 4 +-
.../v8/typedapi/types/invertedindex.go | 4 +-
.../v8/typedapi/types/invocation.go | 4 +-
.../v8/typedapi/types/invocations.go | 6 +-
.../v8/typedapi/types/iostatdevice.go | 14 +-
.../v8/typedapi/types/iostats.go | 4 +-
.../v8/typedapi/types/ipfilter.go | 8 +-
.../v8/typedapi/types/ipprefixaggregate.go | 4 +-
.../v8/typedapi/types/ipprefixaggregation.go | 37 +-
.../v8/typedapi/types/ipprefixbucket.go | 18 +-
.../v8/typedapi/types/ipproperty.go | 34 +-
.../v8/typedapi/types/iprangeaggregate.go | 4 +-
.../v8/typedapi/types/iprangeaggregation.go | 26 +-
.../typedapi/types/iprangeaggregationrange.go | 4 +-
.../v8/typedapi/types/iprangebucket.go | 14 +-
.../v8/typedapi/types/iprangeproperty.go | 32 +-
.../go-elasticsearch/v8/typedapi/types/job.go | 16 +-
.../v8/typedapi/types/jobblocked.go | 4 +-
.../v8/typedapi/types/jobconfig.go | 14 +-
.../typedapi/types/jobforecaststatistics.go | 8 +-
.../v8/typedapi/types/jobsrecord.go | 4 +-
.../v8/typedapi/types/jobstatistics.go | 12 +-
.../v8/typedapi/types/jobstats.go | 6 +-
.../v8/typedapi/types/jobtimingstats.go | 6 +-
.../v8/typedapi/types/jobusage.go | 6 +-
.../v8/typedapi/types/joinprocessor.go | 6 +-
.../v8/typedapi/types/joinproperty.go | 24 +-
.../v8/typedapi/types/jsonprocessor.go | 10 +-
.../go-elasticsearch/v8/typedapi/types/jvm.go | 8 +-
.../v8/typedapi/types/jvmclasses.go | 10 +-
.../v8/typedapi/types/jvmmemorystats.go | 16 +-
.../v8/typedapi/types/jvmstats.go | 10 +-
.../v8/typedapi/types/jvmthreads.go | 8 +-
.../v8/typedapi/types/keeptypestokenfilter.go | 4 +-
.../v8/typedapi/types/keepwordstokenfilter.go | 6 +-
.../v8/typedapi/types/keyedpercentiles.go | 6 +-
.../v8/typedapi/types/keyedprocessor.go | 4 +-
.../v8/typedapi/types/keyvalueprocessor.go | 10 +-
.../v8/typedapi/types/keywordanalyzer.go | 4 +-
.../types/keywordmarkertokenfilter.go | 6 +-
.../v8/typedapi/types/keywordproperty.go | 100 +-
.../v8/typedapi/types/keywordtokenizer.go | 6 +-
.../v8/typedapi/types/kibanatoken.go | 4 +-
.../v8/typedapi/types/knnquery.go | 62 +-
.../v8/typedapi/types/knnretriever.go | 165 +
.../v8/typedapi/types/knnsearch.go | 182 +
.../v8/typedapi/types/kstemtokenfilter.go | 4 +-
.../v8/typedapi/types/kuromojianalyzer.go | 4 +-
.../types/kuromojiiterationmarkcharfilter.go | 8 +-
.../types/kuromojipartofspeechtokenfilter.go | 4 +-
.../types/kuromojireadingformtokenfilter.go | 6 +-
.../types/kuromojistemmertokenfilter.go | 6 +-
.../v8/typedapi/types/kuromojitokenizer.go | 10 +-
.../v8/typedapi/types/languageanalyzer.go | 4 +-
.../v8/typedapi/types/languagecontext.go | 4 +-
.../typedapi/types/laplacesmoothingmodel.go | 6 +-
.../v8/typedapi/types/latest.go | 4 +-
.../v8/typedapi/types/latlongeolocation.go | 8 +-
.../v8/typedapi/types/learningtorank.go | 89 +
.../v8/typedapi/types/lengthtokenfilter.go | 8 +-
.../v8/typedapi/types/lettertokenizer.go | 4 +-
.../v8/typedapi/types/license.go | 6 +-
.../v8/typedapi/types/licenseinformation.go | 4 +-
.../v8/typedapi/types/lifecycle.go | 4 +-
.../v8/typedapi/types/lifecycleexplain.go | 6 +-
.../typedapi/types/lifecycleexplainmanaged.go | 8 +-
.../types/lifecycleexplainphaseexecution.go | 4 +-
.../types/lifecycleexplainunmanaged.go | 4 +-
.../v8/typedapi/types/like.go | 6 +-
.../v8/typedapi/types/likedocument.go | 7 +-
.../v8/typedapi/types/limits.go | 4 +-
.../types/limittokencounttokenfilter.go | 6 +-
.../linearinterpolationsmoothingmodel.go | 10 +-
.../types/linearmovingaverageaggregation.go | 31 +-
.../v8/typedapi/types/loggingaction.go | 4 +-
.../v8/typedapi/types/loggingresult.go | 4 +-
.../v8/typedapi/types/logstashpipeline.go | 4 +-
.../v8/typedapi/types/longnumberproperty.go | 38 +-
.../v8/typedapi/types/longrangeproperty.go | 32 +-
.../typedapi/types/longraretermsaggregate.go | 4 +-
.../v8/typedapi/types/longraretermsbucket.go | 16 +-
.../v8/typedapi/types/longtermsaggregate.go | 8 +-
.../v8/typedapi/types/longtermsbucket.go | 36 +-
.../v8/typedapi/types/lowercasenormalizer.go | 4 +-
.../v8/typedapi/types/lowercaseprocessor.go | 8 +-
.../v8/typedapi/types/lowercasetokenfilter.go | 4 +-
.../v8/typedapi/types/lowercasetokenizer.go | 4 +-
.../v8/typedapi/types/machinelearning.go | 10 +-
.../v8/typedapi/types/manageuserprivileges.go | 4 +-
.../v8/typedapi/types/mapboxvectortiles.go | 4 +-
.../v8/typedapi/types/mappingcharfilter.go | 4 +-
.../v8/typedapi/types/mappinglimitsettings.go | 8 +-
.../types/mappinglimitsettingsdepth.go | 13 +-
.../mappinglimitsettingsdimensionfields.go | 13 +-
.../mappinglimitsettingsfieldnamelength.go | 6 +-
.../types/mappinglimitsettingsnestedfields.go | 13 +-
.../mappinglimitsettingsnestedobjects.go | 13 +-
.../types/mappinglimitsettingstotalfields.go | 13 +-
.../v8/typedapi/types/mappingstats.go | 8 +-
.../typedapi/types/masterisstableindicator.go | 4 +-
...erisstableindicatorclusterformationnode.go | 4 +-
.../types/masterisstableindicatordetails.go | 4 +-
...stableindicatorexceptionfetchinghistory.go | 4 +-
.../v8/typedapi/types/masterrecord.go | 4 +-
.../v8/typedapi/types/matchallquery.go | 6 +-
.../v8/typedapi/types/matchboolprefixquery.go | 12 +-
.../v8/typedapi/types/matchedfield.go | 8 +-
.../v8/typedapi/types/matchedtext.go | 6 +-
.../v8/typedapi/types/matchnonequery.go | 6 +-
.../typedapi/types/matchonlytextproperty.go | 12 +-
.../typedapi/types/matchphraseprefixquery.go | 10 +-
.../v8/typedapi/types/matchphrasequery.go | 8 +-
.../v8/typedapi/types/matchquery.go | 18 +-
.../v8/typedapi/types/matrixaggregation.go | 24 +-
.../v8/typedapi/types/matrixstatsaggregate.go | 6 +-
.../typedapi/types/matrixstatsaggregation.go | 24 +-
.../v8/typedapi/types/matrixstatsfields.go | 14 +-
.../v8/typedapi/types/maxaggregate.go | 4 +-
.../v8/typedapi/types/maxaggregation.go | 4 +-
.../v8/typedapi/types/maxbucketaggregation.go | 23 +-
.../types/medianabsolutedeviationaggregate.go | 4 +-
.../medianabsolutedeviationaggregation.go | 6 +-
.../v8/typedapi/types/memmlstats.go | 14 +-
.../v8/typedapi/types/memory.go | 4 +-
.../v8/typedapi/types/memorystats.go | 18 +-
.../v8/typedapi/types/memstats.go | 8 +-
.../v8/typedapi/types/merge.go | 4 +-
.../v8/typedapi/types/mergescheduler.go | 4 +-
.../v8/typedapi/types/mergesstats.go | 18 +-
.../v8/typedapi/types/metadata.go | 4 +-
.../v8/typedapi/types/metrics.go | 4 +-
.../v8/typedapi/types/mgetoperation.go | 4 +-
.../v8/typedapi/types/mgetresponseitem.go | 6 +-
.../types/migrationfeatureindexinfo.go | 4 +-
.../v8/typedapi/types/minaggregate.go | 4 +-
.../v8/typedapi/types/minaggregation.go | 4 +-
.../v8/typedapi/types/minbucketaggregation.go | 23 +-
.../types/minimallicenseinformation.go | 4 +-
.../v8/typedapi/types/minimumshouldmatch.go | 6 +-
.../v8/typedapi/types/missing.go | 6 +-
.../v8/typedapi/types/missingaggregate.go | 14 +-
.../v8/typedapi/types/missingaggregation.go | 28 +-
.../v8/typedapi/types/mlcounter.go | 6 +-
.../v8/typedapi/types/mldatafeed.go | 8 +-
.../types/mldataframeanalyticsjobs.go | 4 +-
.../types/mldataframeanalyticsjobsanalysis.go | 10 +-
.../types/mldataframeanalyticsjobscount.go | 6 +-
.../types/mldataframeanalyticsjobsmemory.go | 4 +-
.../v8/typedapi/types/mlfilter.go | 4 +-
.../v8/typedapi/types/mlinference.go | 4 +-
.../typedapi/types/mlinferencedeployments.go | 6 +-
.../types/mlinferencedeploymentstimems.go | 6 +-
.../types/mlinferenceingestprocessor.go | 4 +-
.../types/mlinferenceingestprocessorcount.go | 10 +-
.../types/mlinferencetrainedmodels.go | 4 +-
.../types/mlinferencetrainedmodelscount.go | 20 +-
.../v8/typedapi/types/mljobforecasts.go | 8 +-
.../v8/typedapi/types/modelconfig.go | 4 +-
.../v8/typedapi/types/modelconfigcontainer.go | 4 +-
.../v8/typedapi/types/modelplotconfig.go | 8 +-
.../v8/typedapi/types/modelsizestats.go | 26 +-
.../v8/typedapi/types/modelsnapshot.go | 14 +-
.../v8/typedapi/types/modelsnapshotupgrade.go | 4 +-
.../v8/typedapi/types/monitoring.go | 10 +-
.../v8/typedapi/types/morelikethisquery.go | 42 +-
.../v8/typedapi/types/mountedsnapshot.go | 4 +-
.../types/movingaverageaggregation.go | 6 +-
.../types/movingfunctionaggregation.go | 27 +-
.../types/movingpercentilesaggregation.go | 29 +-
.../v8/typedapi/types/msearchrequestitem.go | 6 +-
.../v8/typedapi/types/msearchresponseitem.go | 6 +-
.../typedapi/types/mtermvectorsoperation.go | 16 +-
...ucketaggregatebaseadjacencymatrixbucket.go | 4 +-
...multibucketaggregatebasecompositebucket.go | 4 +-
...ibucketaggregatebasedatehistogrambucket.go | 4 +-
...ltibucketaggregatebasedoubletermsbucket.go | 4 +-
.../multibucketaggregatebasefiltersbucket.go | 4 +-
...cketaggregatebasefrequentitemsetsbucket.go | 4 +-
...ltibucketaggregatebasegeohashgridbucket.go | 4 +-
...ultibucketaggregatebasegeohexgridbucket.go | 4 +-
...ltibucketaggregatebasegeotilegridbucket.go | 4 +-
...multibucketaggregatebasehistogrambucket.go | 4 +-
.../multibucketaggregatebaseipprefixbucket.go | 4 +-
.../multibucketaggregatebaseiprangebucket.go | 4 +-
...ibucketaggregatebaselongraretermsbucket.go | 4 +-
...multibucketaggregatebaselongtermsbucket.go | 4 +-
...ultibucketaggregatebasemultitermsbucket.go | 4 +-
.../multibucketaggregatebaserangebucket.go | 4 +-
...aggregatebasesignificantlongtermsbucket.go | 4 +-
...gregatebasesignificantstringtermsbucket.go | 4 +-
...ucketaggregatebasestringraretermsbucket.go | 4 +-
...ltibucketaggregatebasestringtermsbucket.go | 4 +-
...gregatebasevariablewidthhistogrambucket.go | 4 +-
.../types/multibucketaggregatebasevoid.go | 8 +-
.../v8/typedapi/types/multigeterror.go | 4 +-
.../v8/typedapi/types/multimatchquery.go | 22 +-
.../typedapi/types/multiplexertokenfilter.go | 4 +-
.../v8/typedapi/types/multisearchbody.go | 26 +-
.../v8/typedapi/types/multisearchheader.go | 16 +-
.../v8/typedapi/types/multisearchitem.go | 26 +-
.../v8/typedapi/types/multisearchresult.go | 6 +-
.../v8/typedapi/types/multitermlookup.go | 4 +-
.../v8/typedapi/types/multitermsaggregate.go | 8 +-
.../typedapi/types/multitermsaggregation.go | 35 +-
.../v8/typedapi/types/multitermsbucket.go | 16 +-
.../v8/typedapi/types/murmur3hashproperty.go | 26 +-
.../types/mutualinformationheuristic.go | 8 +-
.../v8/typedapi/types/names.go | 4 +-
.../v8/typedapi/types/nativecode.go | 4 +-
.../typedapi/types/nativecodeinformation.go | 4 +-
.../v8/typedapi/types/nerinferenceoptions.go | 4 +-
.../types/nerinferenceupdateoptions.go | 4 +-
.../v8/typedapi/types/nestedaggregate.go | 14 +-
.../v8/typedapi/types/nestedaggregation.go | 24 +-
.../v8/typedapi/types/nestedidentity.go | 6 +-
.../v8/typedapi/types/nestedproperty.go | 30 +-
.../v8/typedapi/types/nestedquery.go | 8 +-
.../v8/typedapi/types/nestedsortvalue.go | 6 +-
.../v8/typedapi/types/nevercondition.go | 4 +-
.../v8/typedapi/types/ngramtokenfilter.go | 8 +-
.../v8/typedapi/types/ngramtokenizer.go | 8 +-
.../types/nlpberttokenizationconfig.go | 12 +-
.../types/nlprobertatokenizationconfig.go | 12 +-
.../types/nlptokenizationupdateoptions.go | 6 +-
.../v8/typedapi/types/node.go | 4 +-
.../types/nodeallocationexplanation.go | 6 +-
.../v8/typedapi/types/nodeattributes.go | 4 +-
.../v8/typedapi/types/nodeattributesrecord.go | 4 +-
.../v8/typedapi/types/nodebufferpool.go | 10 +-
.../v8/typedapi/types/nodediskusage.go | 4 +-
.../v8/typedapi/types/nodeids.go | 4 +-
.../v8/typedapi/types/nodeinfo.go | 6 +-
.../v8/typedapi/types/nodeinfoaction.go | 4 +-
.../v8/typedapi/types/nodeinfoaggregation.go | 4 +-
.../v8/typedapi/types/nodeinfobootstrap.go | 4 +-
.../v8/typedapi/types/nodeinfoclient.go | 4 +-
.../v8/typedapi/types/nodeinfodiscover.go | 6 +-
.../v8/typedapi/types/nodeinfohttp.go | 6 +-
.../v8/typedapi/types/nodeinfoingest.go | 4 +-
.../types/nodeinfoingestdownloader.go | 4 +-
.../v8/typedapi/types/nodeinfoingestinfo.go | 4 +-
.../typedapi/types/nodeinfoingestprocessor.go | 4 +-
.../v8/typedapi/types/nodeinfojvmmemory.go | 14 +-
.../v8/typedapi/types/nodeinfomemory.go | 6 +-
.../v8/typedapi/types/nodeinfonetwork.go | 6 +-
.../types/nodeinfonetworkinterface.go | 4 +-
.../v8/typedapi/types/nodeinfooscpu.go | 14 +-
.../v8/typedapi/types/nodeinfopath.go | 4 +-
.../v8/typedapi/types/nodeinforepositories.go | 4 +-
.../typedapi/types/nodeinforepositoriesurl.go | 4 +-
.../v8/typedapi/types/nodeinfoscript.go | 10 +-
.../v8/typedapi/types/nodeinfosearch.go | 4 +-
.../v8/typedapi/types/nodeinfosearchremote.go | 4 +-
.../v8/typedapi/types/nodeinfosettings.go | 6 +-
.../typedapi/types/nodeinfosettingscluster.go | 4 +-
.../types/nodeinfosettingsclusterelection.go | 4 +-
.../v8/typedapi/types/nodeinfosettingshttp.go | 4 +-
.../types/nodeinfosettingshttptype.go | 4 +-
.../typedapi/types/nodeinfosettingsingest.go | 4 +-
.../typedapi/types/nodeinfosettingsnetwork.go | 6 +-
.../v8/typedapi/types/nodeinfosettingsnode.go | 4 +-
.../types/nodeinfosettingstransport.go | 4 +-
.../nodeinfosettingstransportfeatures.go | 4 +-
.../types/nodeinfosettingstransporttype.go | 4 +-
.../v8/typedapi/types/nodeinfotransport.go | 4 +-
.../v8/typedapi/types/nodeinfoxpack.go | 4 +-
.../v8/typedapi/types/nodeinfoxpacklicense.go | 4 +-
.../types/nodeinfoxpacklicensetype.go | 4 +-
.../typedapi/types/nodeinfoxpacksecurity.go | 4 +-
.../types/nodeinfoxpacksecurityauthc.go | 4 +-
.../types/nodeinfoxpacksecurityauthcrealms.go | 4 +-
.../nodeinfoxpacksecurityauthcrealmsstatus.go | 4 +-
.../types/nodeinfoxpacksecurityauthctoken.go | 4 +-
.../types/nodeinfoxpacksecurityssl.go | 4 +-
.../v8/typedapi/types/nodejvminfo.go | 8 +-
.../typedapi/types/nodeoperatingsysteminfo.go | 8 +-
.../v8/typedapi/types/nodepackagingtype.go | 6 +-
.../v8/typedapi/types/nodeprocessinfo.go | 8 +-
.../v8/typedapi/types/nodereloaderror.go | 4 +-
.../v8/typedapi/types/nodereloadresult.go | 6 +-
.../v8/typedapi/types/nodescontext.go | 10 +-
.../v8/typedapi/types/nodescredentials.go | 4 +-
.../types/nodescredentialsfiletoken.go | 4 +-
.../v8/typedapi/types/nodeshard.go | 8 +-
.../v8/typedapi/types/nodeshutdownstatus.go | 4 +-
.../typedapi/types/nodesindexingpressure.go | 4 +-
.../types/nodesindexingpressurememory.go | 6 +-
.../v8/typedapi/types/nodesingest.go | 4 +-
.../v8/typedapi/types/nodesrecord.go | 4 +-
.../v8/typedapi/types/nodestatistics.go | 10 +-
.../v8/typedapi/types/nodetasks.go | 4 +-
.../v8/typedapi/types/nodethreadpoolinfo.go | 12 +-
.../v8/typedapi/types/nodeusage.go | 4 +-
.../v8/typedapi/types/norianalyzer.go | 4 +-
.../types/noripartofspeechtokenfilter.go | 4 +-
.../v8/typedapi/types/noritokenizer.go | 6 +-
.../v8/typedapi/types/normalizeaggregation.go | 23 +-
.../v8/typedapi/types/normalizer.go | 6 +-
.../v8/typedapi/types/nullvalue.go | 29 +
.../v8/typedapi/types/numberrangequery.go | 14 +-
.../v8/typedapi/types/numericdecayfunction.go | 6 +-
.../v8/typedapi/types/numericfielddata.go | 4 +-
.../v8/typedapi/types/objectproperty.go | 28 +-
.../types/onehotencodingpreprocessor.go | 4 +-
.../v8/typedapi/types/operatingsystem.go | 6 +-
.../types/operatingsystemmemoryinfo.go | 16 +-
.../v8/typedapi/types/operationcontainer.go | 4 +-
.../types/outlierdetectionparameters.go | 14 +-
.../v8/typedapi/types/overallbucket.go | 8 +-
.../v8/typedapi/types/overallbucketjob.go | 6 +-
.../v8/typedapi/types/overlapping.go | 4 +-
.../v8/typedapi/types/page.go | 8 +-
.../v8/typedapi/types/pagerdutyaction.go | 6 +-
.../v8/typedapi/types/pagerdutycontext.go | 4 +-
.../v8/typedapi/types/pagerdutyevent.go | 6 +-
.../v8/typedapi/types/pagerdutyeventproxy.go | 6 +-
.../v8/typedapi/types/pagerdutyresult.go | 4 +-
.../v8/typedapi/types/painlesscontextsetup.go | 4 +-
.../v8/typedapi/types/parentaggregate.go | 14 +-
.../v8/typedapi/types/parentaggregation.go | 24 +-
.../v8/typedapi/types/parentidquery.go | 8 +-
.../v8/typedapi/types/parenttaskinfo.go | 10 +-
.../types/passthroughinferenceoptions.go | 4 +-
.../passthroughinferenceupdateoptions.go | 4 +-
.../typedapi/types/pathhierarchytokenizer.go | 4 +-
.../v8/typedapi/types/patternanalyzer.go | 6 +-
.../types/patterncapturetokenfilter.go | 4 +-
.../types/patternreplacecharfilter.go | 4 +-
.../types/patternreplacetokenfilter.go | 6 +-
.../v8/typedapi/types/patterntokenizer.go | 6 +-
.../v8/typedapi/types/pendingtask.go | 8 +-
.../v8/typedapi/types/pendingtasksrecord.go | 4 +-
.../v8/typedapi/types/percentage.go | 6 +-
.../types/percentagescoreheuristic.go | 4 +-
.../types/percentileranksaggregation.go | 6 +-
.../v8/typedapi/types/percentiles.go | 6 +-
.../typedapi/types/percentilesaggregation.go | 6 +-
.../types/percentilesbucketaggregate.go | 4 +-
.../types/percentilesbucketaggregation.go | 23 +-
.../v8/typedapi/types/percolatequery.go | 6 +-
.../v8/typedapi/types/percolatorproperty.go | 22 +-
.../types/perpartitioncategorization.go | 8 +-
.../v8/typedapi/types/persistenttaskstatus.go | 4 +-
.../v8/typedapi/types/phase.go | 4 +-
.../v8/typedapi/types/phases.go | 4 +-
.../v8/typedapi/types/phonetictokenfilter.go | 23 +-
.../v8/typedapi/types/phrasesuggest.go | 8 +-
.../v8/typedapi/types/phrasesuggestcollate.go | 6 +-
.../types/phrasesuggestcollatequery.go | 4 +-
.../v8/typedapi/types/phrasesuggester.go | 20 +-
.../typedapi/types/phrasesuggesthighlight.go | 4 +-
.../v8/typedapi/types/phrasesuggestoption.go | 8 +-
.../v8/typedapi/types/pinneddoc.go | 4 +-
.../v8/typedapi/types/pinnedquery.go | 6 +-
.../v8/typedapi/types/pipelineconfig.go | 4 +-
.../v8/typedapi/types/pipelinemetadata.go | 4 +-
.../v8/typedapi/types/pipelineprocessor.go | 8 +-
.../v8/typedapi/types/pipelinesettings.go | 14 +-
.../v8/typedapi/types/pipelinesimulation.go | 4 +-
...pipeseparatedflagssimplequerystringflag.go | 6 +-
.../v8/typedapi/types/pivot.go | 4 +-
.../typedapi/types/pivotgroupbycontainer.go | 4 +-
.../v8/typedapi/types/pluginsrecord.go | 4 +-
.../v8/typedapi/types/pluginsstatus.go | 4 +-
.../v8/typedapi/types/pluginstats.go | 8 +-
.../v8/typedapi/types/pointintimereference.go | 4 +-
.../v8/typedapi/types/pointproperty.go | 30 +-
.../v8/typedapi/types/pool.go | 12 +-
.../typedapi/types/porterstemtokenfilter.go | 4 +-
.../v8/typedapi/types/postmigrationfeature.go | 4 +-
.../v8/typedapi/types/predicatetokenfilter.go | 4 +-
.../v8/typedapi/types/predictedvalue.go | 6 +-
.../v8/typedapi/types/prefixquery.go | 8 +-
.../v8/typedapi/types/preprocessor.go | 4 +-
.../v8/typedapi/types/pressurememory.go | 20 +-
.../v8/typedapi/types/privileges.go | 4 +-
.../v8/typedapi/types/privilegesactions.go | 4 +-
.../v8/typedapi/types/privilegescheck.go | 4 +-
.../v8/typedapi/types/process.go | 10 +-
.../v8/typedapi/types/processor.go | 10 +-
.../v8/typedapi/types/processorcontainer.go | 4 +-
.../v8/typedapi/types/profile.go | 4 +-
.../v8/typedapi/types/property.go | 7 +-
.../typedapi/types/publishedclusterstates.go | 10 +-
.../v8/typedapi/types/queries.go | 4 +-
.../v8/typedapi/types/query.go | 20 +-
.../v8/typedapi/types/querybreakdown.go | 40 +-
.../v8/typedapi/types/querycachestats.go | 60 +-
.../v8/typedapi/types/queryprofile.go | 4 +-
.../v8/typedapi/types/queryrule.go | 4 +-
.../v8/typedapi/types/queryruleactions.go | 4 +-
.../v8/typedapi/types/queryrulecriteria.go | 4 +-
.../v8/typedapi/types/queryruleset.go | 4 +-
.../v8/typedapi/types/queryrulesetlistitem.go | 6 +-
.../v8/typedapi/types/querystringquery.go | 30 +-
.../v8/typedapi/types/queryvectorbuilder.go | 4 +-
.../v8/typedapi/types/querywatch.go | 6 +-
.../questionansweringinferenceoptions.go | 8 +-
...questionansweringinferenceupdateoptions.go | 8 +-
.../v8/typedapi/types/randomscorefunction.go | 4 +-
.../v8/typedapi/types/rangeaggregate.go | 4 +-
.../v8/typedapi/types/rangeaggregation.go | 31 +-
.../v8/typedapi/types/rangebucket.go | 18 +-
.../v8/typedapi/types/rangequery.go | 6 +-
.../v8/typedapi/types/rankcontainer.go | 4 +-
.../v8/typedapi/types/rankeddocument.go | 110 +
.../v8/typedapi/types/rankevalhit.go | 6 +-
.../v8/typedapi/types/rankevalhititem.go | 4 +-
.../v8/typedapi/types/rankevalmetric.go | 4 +-
.../v8/typedapi/types/rankevalmetricdetail.go | 6 +-
.../rankevalmetricdiscountedcumulativegain.go | 8 +-
.../rankevalmetricexpectedreciprocalrank.go | 8 +-
.../types/rankevalmetricmeanreciprocalrank.go | 8 +-
.../typedapi/types/rankevalmetricprecision.go | 10 +-
.../types/rankevalmetricratingtreshold.go | 8 +-
.../v8/typedapi/types/rankevalmetricrecall.go | 8 +-
.../v8/typedapi/types/rankevalquery.go | 6 +-
.../v8/typedapi/types/rankevalrequestitem.go | 4 +-
.../v8/typedapi/types/rankfeaturefunction.go | 4 +-
.../types/rankfeaturefunctionlinear.go | 4 +-
.../types/rankfeaturefunctionlogarithm.go | 6 +-
.../types/rankfeaturefunctionsaturation.go | 6 +-
.../types/rankfeaturefunctionsigmoid.go | 8 +-
.../v8/typedapi/types/rankfeatureproperty.go | 24 +-
.../v8/typedapi/types/rankfeaturequery.go | 6 +-
.../v8/typedapi/types/rankfeaturesproperty.go | 24 +-
.../v8/typedapi/types/raretermsaggregation.go | 29 +-
.../v8/typedapi/types/rateaggregate.go | 6 +-
.../v8/typedapi/types/rateaggregation.go | 4 +-
.../v8/typedapi/types/readexception.go | 6 +-
.../typedapi/types/readonlyurlrepository.go | 4 +-
.../types/readonlyurlrepositorysettings.go | 10 +-
.../v8/typedapi/types/realmcache.go | 6 +-
.../v8/typedapi/types/realminfo.go | 4 +-
.../v8/typedapi/types/recording.go | 6 +-
.../v8/typedapi/types/recoverybytes.go | 4 +-
.../v8/typedapi/types/recoveryfiles.go | 10 +-
.../v8/typedapi/types/recoveryindexstatus.go | 4 +-
.../v8/typedapi/types/recoveryorigin.go | 6 +-
.../v8/typedapi/types/recoveryrecord.go | 4 +-
.../v8/typedapi/types/recoverystartstatus.go | 4 +-
.../v8/typedapi/types/recoverystats.go | 8 +-
.../v8/typedapi/types/recoverystatus.go | 4 +-
.../v8/typedapi/types/refreshstats.go | 10 +-
.../v8/typedapi/types/regexoptions.go | 6 +-
.../v8/typedapi/types/regexpquery.go | 10 +-
.../types/regressioninferenceoptions.go | 6 +-
.../v8/typedapi/types/reindexdestination.go | 4 +-
.../v8/typedapi/types/reindexnode.go | 4 +-
.../v8/typedapi/types/reindexsource.go | 6 +-
.../v8/typedapi/types/reindexstatus.go | 20 +-
.../v8/typedapi/types/reindextask.go | 8 +-
.../v8/typedapi/types/reloaddetails.go | 4 +-
.../v8/typedapi/types/reloadresult.go | 4 +-
.../typedapi/types/relocationfailureinfo.go | 6 +-
.../v8/typedapi/types/remotesource.go | 4 +-
.../v8/typedapi/types/removeaction.go | 6 +-
.../types/removeduplicatestokenfilter.go | 4 +-
.../v8/typedapi/types/removeindexaction.go | 6 +-
.../v8/typedapi/types/removeprocessor.go | 27 +-
.../v8/typedapi/types/renameprocessor.go | 8 +-
.../types/reportingemailattachment.go | 8 +-
.../v8/typedapi/types/repositoriesrecord.go | 4 +-
.../v8/typedapi/types/repository.go | 6 +-
.../types/repositoryintegrityindicator.go | 4 +-
.../repositoryintegrityindicatordetails.go | 8 +-
.../v8/typedapi/types/repositorylocation.go | 4 +-
.../types/repositorymeteringinformation.go | 6 +-
.../v8/typedapi/types/requestcachestats.go | 12 +-
.../v8/typedapi/types/requestcounts.go | 26 +-
.../v8/typedapi/types/requestitem.go | 6 +-
.../v8/typedapi/types/reroutedecision.go | 4 +-
.../v8/typedapi/types/rerouteexplanation.go | 4 +-
.../v8/typedapi/types/rerouteparameters.go | 8 +-
.../v8/typedapi/types/rerouteprocessor.go | 6 +-
.../v8/typedapi/types/rescore.go | 16 +-
.../v8/typedapi/types/rescorequery.go | 8 +-
.../v8/typedapi/types/reservedsize.go | 6 +-
.../v8/typedapi/types/resolveclusterinfo.go | 10 +-
.../typedapi/types/resolveindexaliasitem.go | 4 +-
.../types/resolveindexdatastreamsitem.go | 4 +-
.../v8/typedapi/types/resolveindexitem.go | 4 +-
.../v8/typedapi/types/resourceprivileges.go | 4 +-
.../v8/typedapi/types/responsebody.go | 24 +-
.../v8/typedapi/types/responseitem.go | 10 +-
.../v8/typedapi/types/retention.go | 8 +-
.../v8/typedapi/types/retentionlease.go | 4 +-
.../v8/typedapi/types/retentionpolicy.go | 4 +-
.../types/retentionpolicycontainer.go | 4 +-
.../v8/typedapi/types/retries.go | 8 +-
.../v8/typedapi/types/retrievercontainer.go | 40 +
.../typedapi/types/reversenestedaggregate.go | 14 +-
.../types/reversenestedaggregation.go | 24 +-
.../v8/typedapi/types/reversetokenfilter.go | 4 +-
.../v8/typedapi/types/role.go | 4 +-
.../v8/typedapi/types/roledescriptor.go | 4 +-
.../v8/typedapi/types/roledescriptorread.go | 4 +-
.../typedapi/types/roledescriptorwrapper.go | 4 +-
.../v8/typedapi/types/rolemappingrule.go | 4 +-
.../v8/typedapi/types/roletemplate.go | 4 +-
.../typedapi/types/roletemplateinlinequery.go | 6 +-
.../types/roletemplateinlinescript.go | 4 +-
.../v8/typedapi/types/roletemplatequery.go | 4 +-
.../v8/typedapi/types/roletemplatescript.go | 6 +-
.../v8/typedapi/types/rolloverconditions.go | 20 +-
.../v8/typedapi/types/rollupcapabilities.go | 4 +-
.../typedapi/types/rollupcapabilitysummary.go | 4 +-
.../v8/typedapi/types/rollupfieldsummary.go | 4 +-
.../v8/typedapi/types/rollupjob.go | 4 +-
.../typedapi/types/rollupjobconfiguration.go | 6 +-
.../v8/typedapi/types/rollupjobstats.go | 22 +-
.../v8/typedapi/types/rollupjobstatus.go | 6 +-
.../v8/typedapi/types/rollupjobsummary.go | 4 +-
.../typedapi/types/rollupjobsummaryfield.go | 4 +-
.../v8/typedapi/types/routingfield.go | 6 +-
.../v8/typedapi/types/rrfrank.go | 8 +-
.../v8/typedapi/types/rrfretriever.go | 126 +
.../v8/typedapi/types/rulecondition.go | 6 +-
.../v8/typedapi/types/rulequery.go | 6 +-
.../types/runningstatesearchinterval.go | 4 +-
.../v8/typedapi/types/runtimefield.go | 4 +-
.../typedapi/types/runtimefieldfetchfields.go | 4 +-
.../v8/typedapi/types/runtimefields.go | 4 +-
.../v8/typedapi/types/runtimefieldstype.go | 28 +-
.../v8/typedapi/types/s3repository.go | 4 +-
.../v8/typedapi/types/s3repositorysettings.go | 10 +-
.../v8/typedapi/types/samplediversity.go | 6 +-
.../v8/typedapi/types/sampleraggregate.go | 14 +-
.../v8/typedapi/types/sampleraggregation.go | 25 +-
.../v8/typedapi/types/scalarvalue.go | 6 +-
.../types/scaledfloatnumberproperty.go | 40 +-
.../v8/typedapi/types/schedulecontainer.go | 4 +-
.../v8/typedapi/types/scheduletimeofday.go | 6 +-
.../v8/typedapi/types/scheduletriggerevent.go | 4 +-
.../v8/typedapi/types/scoresort.go | 4 +-
.../v8/typedapi/types/script.go | 6 +-
.../v8/typedapi/types/scriptcache.go | 10 +-
.../v8/typedapi/types/scriptcondition.go | 4 +-
.../v8/typedapi/types/scriptedheuristic.go | 4 +-
.../typedapi/types/scriptedmetricaggregate.go | 4 +-
.../types/scriptedmetricaggregation.go | 4 +-
.../v8/typedapi/types/scriptfield.go | 6 +-
.../v8/typedapi/types/scripting.go | 10 +-
.../v8/typedapi/types/scriptprocessor.go | 6 +-
.../v8/typedapi/types/scriptquery.go | 6 +-
.../v8/typedapi/types/scriptscorefunction.go | 4 +-
.../v8/typedapi/types/scriptscorequery.go | 8 +-
.../v8/typedapi/types/scriptsort.go | 4 +-
.../v8/typedapi/types/scripttransform.go | 4 +-
.../v8/typedapi/types/scrollids.go | 4 +-
.../v8/typedapi/types/searchablesnapshots.go | 14 +-
.../v8/typedapi/types/searchapplication.go | 4 +-
.../types/searchapplicationlistitem.go | 4 +-
.../types/searchapplicationtemplate.go | 4 +-
.../typedapi/types/searchasyoutypeproperty.go | 30 +-
.../v8/typedapi/types/searchidle.go | 4 +-
.../v8/typedapi/types/searchinput.go | 4 +-
.../typedapi/types/searchinputrequestbody.go | 4 +-
.../types/searchinputrequestdefinition.go | 6 +-
.../v8/typedapi/types/searchprofile.go | 6 +-
.../v8/typedapi/types/searchstats.go | 22 +-
.../types/searchtemplaterequestbody.go | 8 +-
.../v8/typedapi/types/searchtransform.go | 4 +-
.../v8/typedapi/types/security.go | 8 +-
.../v8/typedapi/types/securityrolemapping.go | 8 +-
.../v8/typedapi/types/securityroles.go | 4 +-
.../v8/typedapi/types/securityrolesdls.go | 4 +-
.../types/securityrolesdlsbitsetcache.go | 6 +-
.../v8/typedapi/types/securityrolesfile.go | 10 +-
.../v8/typedapi/types/securityrolesnative.go | 10 +-
.../v8/typedapi/types/segment.go | 18 +-
.../v8/typedapi/types/segmentsrecord.go | 4 +-
.../v8/typedapi/types/segmentsstats.go | 30 +-
.../types/serialdifferencingaggregation.go | 27 +-
.../typedapi/types/serializedclusterstate.go | 4 +-
.../types/serializedclusterstatedetail.go | 10 +-
.../v8/typedapi/types/servicetoken.go | 4 +-
.../v8/typedapi/types/setprocessor.go | 10 +-
.../types/setsecurityuserprocessor.go | 6 +-
.../v8/typedapi/types/settings.go | 16 +-
.../v8/typedapi/types/settingsanalyze.go | 4 +-
.../v8/typedapi/types/settingshighlight.go | 6 +-
.../v8/typedapi/types/settingsquerystring.go | 4 +-
.../v8/typedapi/types/settingssearch.go | 4 +-
.../v8/typedapi/types/settingssimilarity.go | 6 +-
.../typedapi/types/settingssimilaritybm25.go | 10 +-
.../types/settingssimilarityboolean.go | 4 +-
.../typedapi/types/settingssimilaritydfi.go | 4 +-
.../typedapi/types/settingssimilaritydfr.go | 4 +-
.../v8/typedapi/types/settingssimilarityib.go | 4 +-
.../typedapi/types/settingssimilaritylmd.go | 6 +-
.../typedapi/types/settingssimilaritylmj.go | 6 +-
.../types/settingssimilarityscripted.go | 4 +-
.../v8/typedapi/types/shapefieldquery.go | 4 +-
.../v8/typedapi/types/shapeproperty.go | 32 +-
.../v8/typedapi/types/shapequery.go | 10 +-
.../v8/typedapi/types/shardcommit.go | 8 +-
.../v8/typedapi/types/shardfailure.go | 6 +-
.../v8/typedapi/types/shardfilesizeinfo.go | 14 +-
.../v8/typedapi/types/shardhealthstats.go | 14 +-
.../v8/typedapi/types/shardlease.go | 6 +-
.../v8/typedapi/types/shardmigrationstatus.go | 4 +-
.../v8/typedapi/types/shardpath.go | 6 +-
.../v8/typedapi/types/shardprofile.go | 4 +-
.../v8/typedapi/types/shardquerycache.go | 18 +-
.../v8/typedapi/types/shardrecovery.go | 8 +-
.../v8/typedapi/types/shardretentionleases.go | 6 +-
.../v8/typedapi/types/shardrouting.go | 6 +-
.../types/shardsavailabilityindicator.go | 4 +-
.../shardsavailabilityindicatordetails.go | 22 +-
.../typedapi/types/shardscapacityindicator.go | 4 +-
.../types/shardscapacityindicatordetails.go | 4 +-
.../shardscapacityindicatortierdetail.go | 8 +-
.../v8/typedapi/types/shardsegmentrouting.go | 6 +-
.../v8/typedapi/types/shardsequencenumber.go | 8 +-
.../v8/typedapi/types/shardsrecord.go | 4 +-
.../v8/typedapi/types/shardssegment.go | 8 +-
.../v8/typedapi/types/shardsstatssummary.go | 4 +-
.../typedapi/types/shardsstatssummaryitem.go | 8 +-
.../v8/typedapi/types/shardstatistics.go | 4 +-
.../v8/typedapi/types/shardstore.go | 6 +-
.../v8/typedapi/types/shardstoreexception.go | 4 +-
.../v8/typedapi/types/shardstoreindex.go | 4 +-
.../v8/typedapi/types/shardstorenode.go | 4 +-
.../v8/typedapi/types/shardstorewrapper.go | 4 +-
.../v8/typedapi/types/shardstotalstats.go | 6 +-
.../v8/typedapi/types/shared.go | 12 +-
.../types/sharedfilesystemrepository.go | 4 +-
.../sharedfilesystemrepositorysettings.go | 10 +-
.../v8/typedapi/types/shingletokenfilter.go | 8 +-
.../v8/typedapi/types/shortnumberproperty.go | 36 +-
.../v8/typedapi/types/shrinkconfiguration.go | 6 +-
.../types/significantlongtermsaggregate.go | 8 +-
.../types/significantlongtermsbucket.go | 20 +-
.../types/significantstringtermsaggregate.go | 8 +-
.../types/significantstringtermsbucket.go | 18 +-
...aggregatebasesignificantlongtermsbucket.go | 8 +-
...gregatebasesignificantstringtermsbucket.go | 8 +-
.../significanttermsaggregatebasevoid.go | 12 +-
.../types/significanttermsaggregation.go | 33 +-
.../types/significanttextaggregation.go | 35 +-
.../v8/typedapi/types/simpleanalyzer.go | 4 +-
.../types/simplemovingaverageaggregation.go | 31 +-
.../typedapi/types/simplequerystringflags.go | 4 +-
.../typedapi/types/simplequerystringquery.go | 18 +-
.../v8/typedapi/types/simplevalueaggregate.go | 4 +-
.../v8/typedapi/types/simulatedactions.go | 6 +-
.../v8/typedapi/types/simulateingest.go | 4 +-
.../v8/typedapi/types/sizefield.go | 6 +-
.../v8/typedapi/types/slackaction.go | 4 +-
.../v8/typedapi/types/slackattachment.go | 4 +-
.../v8/typedapi/types/slackattachmentfield.go | 6 +-
.../typedapi/types/slackdynamicattachment.go | 4 +-
.../v8/typedapi/types/slackmessage.go | 4 +-
.../v8/typedapi/types/slackresult.go | 4 +-
.../v8/typedapi/types/slicedscroll.go | 6 +-
.../v8/typedapi/types/slices.go | 6 +-
.../go-elasticsearch/v8/typedapi/types/slm.go | 10 +-
.../v8/typedapi/types/slmindicator.go | 4 +-
.../v8/typedapi/types/slmindicatordetails.go | 6 +-
.../types/slmindicatorunhealthypolicies.go | 6 +-
.../v8/typedapi/types/slmpolicy.go | 4 +-
.../v8/typedapi/types/slowlogsettings.go | 8 +-
.../typedapi/types/slowlogtresholdlevels.go | 4 +-
.../v8/typedapi/types/slowlogtresholds.go | 4 +-
.../typedapi/types/smoothingmodelcontainer.go | 4 +-
.../v8/typedapi/types/snapshotindexstats.go | 4 +-
.../v8/typedapi/types/snapshotinfo.go | 6 +-
.../v8/typedapi/types/snapshotlifecycle.go | 4 +-
.../v8/typedapi/types/snapshotresponseitem.go | 4 +-
.../v8/typedapi/types/snapshotrestore.go | 4 +-
.../v8/typedapi/types/snapshotshardfailure.go | 4 +-
.../v8/typedapi/types/snapshotshardsstats.go | 16 +-
.../v8/typedapi/types/snapshotshardsstatus.go | 4 +-
.../v8/typedapi/types/snapshotsrecord.go | 4 +-
.../v8/typedapi/types/snapshotstats.go | 4 +-
.../v8/typedapi/types/snowballanalyzer.go | 4 +-
.../v8/typedapi/types/snowballtokenfilter.go | 4 +-
.../v8/typedapi/types/softdeletes.go | 6 +-
.../v8/typedapi/types/sort.go | 4 +-
.../v8/typedapi/types/sortcombinations.go | 6 +-
.../v8/typedapi/types/sortoptions.go | 6 +-
.../v8/typedapi/types/sortprocessor.go | 6 +-
.../v8/typedapi/types/sourceconfig.go | 6 +-
.../v8/typedapi/types/sourceconfigparam.go | 6 +-
.../v8/typedapi/types/sourcefield.go | 8 +-
.../v8/typedapi/types/sourcefilter.go | 4 +-
.../v8/typedapi/types/sourceonlyrepository.go | 4 +-
.../types/sourceonlyrepositorysettings.go | 10 +-
.../v8/typedapi/types/spancontainingquery.go | 6 +-
.../typedapi/types/spanfieldmaskingquery.go | 6 +-
.../v8/typedapi/types/spanfirstquery.go | 8 +-
.../v8/typedapi/types/spangapquery.go | 4 +-
.../v8/typedapi/types/spanmultitermquery.go | 6 +-
.../v8/typedapi/types/spannearquery.go | 10 +-
.../v8/typedapi/types/spannotquery.go | 12 +-
.../v8/typedapi/types/spanorquery.go | 6 +-
.../v8/typedapi/types/spanquery.go | 18 +-
.../v8/typedapi/types/spantermquery.go | 6 +-
.../v8/typedapi/types/spanwithinquery.go | 6 +-
.../typedapi/types/sparseembeddingresult.go | 4 +-
.../v8/typedapi/types/sparsevector.go | 4 +-
.../v8/typedapi/types/sparsevectorproperty.go | 22 +-
.../v8/typedapi/types/splitprocessor.go | 10 +-
.../go-elasticsearch/v8/typedapi/types/sql.go | 8 +-
.../go-elasticsearch/v8/typedapi/types/ssl.go | 4 +-
.../v8/typedapi/types/standardanalyzer.go | 6 +-
.../typedapi/types/standarddeviationbounds.go | 4 +-
.../types/standarddeviationboundsasstring.go | 4 +-
.../v8/typedapi/types/standardretriever.go | 158 +
.../v8/typedapi/types/standardtokenizer.go | 6 +-
.../v8/typedapi/types/statistics.go | 18 +-
.../v8/typedapi/types/stats.go | 6 +-
.../v8/typedapi/types/statsaggregate.go | 8 +-
.../v8/typedapi/types/statsaggregation.go | 4 +-
.../v8/typedapi/types/statsbucketaggregate.go | 8 +-
.../typedapi/types/statsbucketaggregation.go | 23 +-
.../v8/typedapi/types/status.go | 6 +-
.../types/stemmeroverridetokenfilter.go | 4 +-
.../v8/typedapi/types/stemmertokenfilter.go | 4 +-
.../v8/typedapi/types/stepkey.go | 4 +-
.../v8/typedapi/types/stopanalyzer.go | 4 +-
.../v8/typedapi/types/stoptokenfilter.go | 8 +-
.../v8/typedapi/types/stopwords.go | 4 +-
.../v8/typedapi/types/storage.go | 6 +-
.../v8/typedapi/types/storedscript.go | 4 +-
.../v8/typedapi/types/storedscriptid.go | 4 +-
.../v8/typedapi/types/storestats.go | 10 +-
.../v8/typedapi/types/stringifiedboolean.go | 6 +-
.../types/stringifiedepochtimeunitmillis.go | 6 +-
.../types/stringifiedepochtimeunitseconds.go | 6 +-
.../v8/typedapi/types/stringifiedinteger.go | 6 +-
.../types/stringifiedversionnumber.go | 6 +-
.../types/stringraretermsaggregate.go | 4 +-
.../typedapi/types/stringraretermsbucket.go | 14 +-
.../v8/typedapi/types/stringstatsaggregate.go | 6 +-
.../typedapi/types/stringstatsaggregation.go | 6 +-
.../v8/typedapi/types/stringtermsaggregate.go | 8 +-
.../v8/typedapi/types/stringtermsbucket.go | 32 +-
.../types/stupidbackoffsmoothingmodel.go | 6 +-
.../v8/typedapi/types/suggest.go | 6 +-
.../v8/typedapi/types/suggestcontext.go | 4 +-
.../v8/typedapi/types/suggester.go | 6 +-
.../v8/typedapi/types/suggestfuzziness.go | 12 +-
.../v8/typedapi/types/sumaggregate.go | 4 +-
.../v8/typedapi/types/sumaggregation.go | 4 +-
.../v8/typedapi/types/sumbucketaggregation.go | 23 +-
.../v8/typedapi/types/summary.go | 4 +-
.../v8/typedapi/types/synccontainer.go | 4 +-
.../typedapi/types/synonymgraphtokenfilter.go | 24 +-
.../v8/typedapi/types/synonymrule.go | 4 +-
.../v8/typedapi/types/synonymruleread.go | 4 +-
.../v8/typedapi/types/synonymssetitem.go | 6 +-
.../v8/typedapi/types/synonymsupdateresult.go | 4 +-
.../v8/typedapi/types/synonymtokenfilter.go | 24 +-
.../types/targetmeanencodingpreprocessor.go | 6 +-
.../v8/typedapi/types/taskfailure.go | 6 +-
.../v8/typedapi/types/taskid.go | 6 +-
.../v8/typedapi/types/taskinfo.go | 10 +-
.../v8/typedapi/types/taskinfos.go | 6 +-
.../v8/typedapi/types/tasksrecord.go | 4 +-
.../v8/typedapi/types/tdigest.go | 6 +-
.../types/tdigestpercentileranksaggregate.go | 4 +-
.../types/tdigestpercentilesaggregate.go | 4 +-
.../v8/typedapi/types/template.go | 4 +-
.../v8/typedapi/types/templateconfig.go | 8 +-
.../v8/typedapi/types/templatemapping.go | 6 +-
.../v8/typedapi/types/templatesrecord.go | 4 +-
.../v8/typedapi/types/term.go | 12 +-
.../v8/typedapi/types/termquery.go | 8 +-
.../termsaggregatebasedoubletermsbucket.go | 8 +-
.../termsaggregatebaselongtermsbucket.go | 8 +-
.../termsaggregatebasemultitermsbucket.go | 8 +-
.../termsaggregatebasestringtermsbucket.go | 8 +-
.../typedapi/types/termsaggregatebasevoid.go | 12 +-
.../v8/typedapi/types/termsaggregation.go | 33 +-
.../v8/typedapi/types/termsexclude.go | 4 +-
.../v8/typedapi/types/termsgrouping.go | 4 +-
.../v8/typedapi/types/termsinclude.go | 6 +-
.../v8/typedapi/types/termslookup.go | 4 +-
.../v8/typedapi/types/termspartition.go | 8 +-
.../v8/typedapi/types/termsquery.go | 8 +-
.../v8/typedapi/types/termsqueryfield.go | 6 +-
.../v8/typedapi/types/termssetquery.go | 6 +-
.../v8/typedapi/types/termsuggest.go | 8 +-
.../v8/typedapi/types/termsuggester.go | 22 +-
.../v8/typedapi/types/termsuggestoption.go | 10 +-
.../v8/typedapi/types/termvector.go | 4 +-
.../v8/typedapi/types/termvectorsfilter.go | 18 +-
.../v8/typedapi/types/termvectorsresult.go | 8 +-
.../v8/typedapi/types/termvectorstoken.go | 10 +-
.../v8/typedapi/types/testpopulation.go | 4 +-
.../textclassificationinferenceoptions.go | 6 +-
...extclassificationinferenceupdateoptions.go | 6 +-
.../v8/typedapi/types/textembedding.go | 4 +-
.../typedapi/types/textembeddingbyteresult.go | 4 +-
.../types/textembeddinginferenceoptions.go | 6 +-
.../textembeddinginferenceupdateoptions.go | 4 +-
.../v8/typedapi/types/textembeddingresult.go | 4 +-
.../types/textexpansioninferenceoptions.go | 4 +-
.../textexpansioninferenceupdateoptions.go | 4 +-
.../v8/typedapi/types/textexpansionquery.go | 6 +-
.../v8/typedapi/types/textindexprefixes.go | 8 +-
.../v8/typedapi/types/textproperty.go | 38 +-
.../v8/typedapi/types/texttoanalyze.go | 4 +-
.../v8/typedapi/types/threadcount.go | 16 +-
.../v8/typedapi/types/threadpoolrecord.go | 4 +-
.../v8/typedapi/types/throttlestate.go | 4 +-
.../v8/typedapi/types/timeofmonth.go | 4 +-
.../v8/typedapi/types/timeofweek.go | 4 +-
.../v8/typedapi/types/timeofyear.go | 4 +-
.../v8/typedapi/types/timesync.go | 4 +-
.../v8/typedapi/types/timingstats.go | 4 +-
.../v8/typedapi/types/tokencountproperty.go | 34 +-
.../v8/typedapi/types/tokendetail.go | 4 +-
.../v8/typedapi/types/tokenfilter.go | 6 +-
.../typedapi/types/tokenfilterdefinition.go | 7 +-
.../types/tokenizationconfigcontainer.go | 4 +-
.../v8/typedapi/types/tokenizer.go | 6 +-
.../v8/typedapi/types/tokenizerdefinition.go | 6 +-
.../v8/typedapi/types/tokenpruningconfig.go | 10 +-
.../v8/typedapi/types/topclassentry.go | 8 +-
.../v8/typedapi/types/tophit.go | 6 +-
.../v8/typedapi/types/tophitsaggregate.go | 4 +-
.../v8/typedapi/types/tophitsaggregation.go | 41 +-
.../types/topleftbottomrightgeobounds.go | 4 +-
.../v8/typedapi/types/topmetrics.go | 4 +-
.../v8/typedapi/types/topmetricsaggregate.go | 4 +-
.../typedapi/types/topmetricsaggregation.go | 6 +-
.../v8/typedapi/types/topmetricsvalue.go | 4 +-
.../types/toprightbottomleftgeobounds.go | 4 +-
.../typedapi/types/totalfeatureimportance.go | 4 +-
.../types/totalfeatureimportanceclass.go | 4 +-
.../types/totalfeatureimportancestatistics.go | 10 +-
.../v8/typedapi/types/totaluserprofiles.go | 6 +-
.../v8/typedapi/types/trackhits.go | 6 +-
.../v8/typedapi/types/trainedmodel.go | 4 +-
.../typedapi/types/trainedmodelassignment.go | 6 +-
.../trainedmodelassignmentroutingtable.go | 8 +-
.../trainedmodelassignmenttaskparameters.go | 12 +-
.../v8/typedapi/types/trainedmodelconfig.go | 10 +-
.../typedapi/types/trainedmodelconfiginput.go | 4 +-
.../types/trainedmodelconfigmetadata.go | 4 +-
.../trainedmodeldeploymentallocationstatus.go | 8 +-
.../types/trainedmodeldeploymentnodesstats.go | 20 +-
.../types/trainedmodeldeploymentstats.go | 18 +-
.../v8/typedapi/types/trainedmodelentities.go | 10 +-
.../trainedmodelinferenceclassimportance.go | 6 +-
.../trainedmodelinferencefeatureimportance.go | 6 +-
.../types/trainedmodelinferencestats.go | 12 +-
.../v8/typedapi/types/trainedmodellocation.go | 4 +-
.../types/trainedmodellocationindex.go | 4 +-
.../types/trainedmodelprefixstrings.go | 4 +-
.../typedapi/types/trainedmodelsizestats.go | 6 +-
.../v8/typedapi/types/trainedmodelsrecord.go | 4 +-
.../v8/typedapi/types/trainedmodelstats.go | 6 +-
.../v8/typedapi/types/trainedmodeltree.go | 4 +-
.../v8/typedapi/types/trainedmodeltreenode.go | 20 +-
.../typedapi/types/transformauthorization.go | 4 +-
.../v8/typedapi/types/transformcontainer.go | 4 +-
.../v8/typedapi/types/transformdestination.go | 4 +-
.../typedapi/types/transformindexerstats.go | 28 +-
.../v8/typedapi/types/transformprogress.go | 14 +-
.../v8/typedapi/types/transformsource.go | 4 +-
.../v8/typedapi/types/transformsrecord.go | 4 +-
.../v8/typedapi/types/transformstats.go | 4 +-
.../v8/typedapi/types/transformstatshealth.go | 4 +-
.../v8/typedapi/types/transformsummary.go | 4 +-
.../v8/typedapi/types/translog.go | 4 +-
.../v8/typedapi/types/translogretention.go | 4 +-
.../v8/typedapi/types/translogstats.go | 14 +-
.../v8/typedapi/types/translogstatus.go | 10 +-
.../v8/typedapi/types/transport.go | 16 +-
.../v8/typedapi/types/transporthistogram.go | 10 +-
.../v8/typedapi/types/triggercontainer.go | 4 +-
.../typedapi/types/triggereventcontainer.go | 4 +-
.../v8/typedapi/types/triggereventresult.go | 4 +-
.../v8/typedapi/types/trimprocessor.go | 8 +-
.../v8/typedapi/types/trimtokenfilter.go | 4 +-
.../v8/typedapi/types/truncatetokenfilter.go | 6 +-
.../v8/typedapi/types/ttestaggregate.go | 4 +-
.../v8/typedapi/types/ttestaggregation.go | 67 +-
.../v8/typedapi/types/typefieldmappings.go | 4 +-
.../v8/typedapi/types/typemapping.go | 20 +-
.../v8/typedapi/types/typequery.go | 6 +-
.../v8/typedapi/types/uaxemailurltokenizer.go | 6 +-
.../typedapi/types/unassignedinformation.go | 8 +-
.../v8/typedapi/types/uniquetokenfilter.go | 6 +-
.../types/unmappedraretermsaggregate.go | 8 +-
.../types/unmappedsampleraggregate.go | 14 +-
.../unmappedsignificanttermsaggregate.go | 12 +-
.../typedapi/types/unmappedtermsaggregate.go | 12 +-
.../v8/typedapi/types/unrateddocument.go | 4 +-
.../types/unsignedlongnumberproperty.go | 36 +-
.../v8/typedapi/types/updateaction.go | 10 +-
.../types/updatebyqueryrethrottlenode.go | 4 +-
.../v8/typedapi/types/updateoperation.go | 10 +-
.../v8/typedapi/types/uppercaseprocessor.go | 8 +-
.../v8/typedapi/types/uppercasetokenfilter.go | 4 +-
.../v8/typedapi/types/urldecodeprocessor.go | 8 +-
.../v8/typedapi/types/usagestatsindex.go | 4 +-
.../v8/typedapi/types/usagestatsshards.go | 4 +-
.../v8/typedapi/types/user.go | 6 +-
.../v8/typedapi/types/useragentprocessor.go | 8 +-
.../typedapi/types/userindicesprivileges.go | 6 +-
.../v8/typedapi/types/userprofile.go | 6 +-
.../typedapi/types/userprofilehitmetadata.go | 6 +-
.../v8/typedapi/types/userprofileuser.go | 4 +-
.../typedapi/types/userprofilewithmetadata.go | 8 +-
.../v8/typedapi/types/userrealm.go | 4 +-
.../v8/typedapi/types/validationloss.go | 4 +-
.../v8/typedapi/types/valuecountaggregate.go | 4 +-
.../typedapi/types/valuecountaggregation.go | 4 +-
.../types/variablewidthhistogramaggregate.go | 4 +-
.../variablewidthhistogramaggregation.go | 10 +-
.../types/variablewidthhistogrambucket.go | 20 +-
.../v8/typedapi/types/vector.go | 14 +-
.../v8/typedapi/types/verifyindex.go | 4 +-
.../v8/typedapi/types/versionproperty.go | 26 +-
.../v8/typedapi/types/vertex.go | 8 +-
.../v8/typedapi/types/vertexdefinition.go | 10 +-
.../v8/typedapi/types/vertexinclude.go | 6 +-
.../v8/typedapi/types/vocabulary.go | 4 +-
.../v8/typedapi/types/waitforactiveshards.go | 6 +-
.../v8/typedapi/types/warmerstats.go | 8 +-
.../v8/typedapi/types/watch.go | 4 +-
.../v8/typedapi/types/watcher.go | 8 +-
.../v8/typedapi/types/watcheraction.go | 6 +-
.../v8/typedapi/types/watcheractions.go | 4 +-
.../v8/typedapi/types/watcheractiontotals.go | 4 +-
.../v8/typedapi/types/watchercondition.go | 4 +-
.../v8/typedapi/types/watcherinput.go | 4 +-
.../v8/typedapi/types/watchernodestats.go | 6 +-
.../v8/typedapi/types/watcherstatusactions.go | 4 +-
.../v8/typedapi/types/watcherwatch.go | 4 +-
.../v8/typedapi/types/watcherwatchtrigger.go | 4 +-
.../types/watcherwatchtriggerschedule.go | 8 +-
.../v8/typedapi/types/watchrecord.go | 4 +-
.../typedapi/types/watchrecordqueuedstats.go | 4 +-
.../v8/typedapi/types/watchrecordstats.go | 4 +-
.../v8/typedapi/types/watchstatus.go | 4 +-
.../v8/typedapi/types/webhookaction.go | 4 +-
.../v8/typedapi/types/webhookresult.go | 4 +-
.../types/weightedaverageaggregation.go | 25 +-
.../v8/typedapi/types/weightedaveragevalue.go | 6 +-
.../v8/typedapi/types/weightedavgaggregate.go | 4 +-
.../v8/typedapi/types/weightedtokensquery.go | 6 +-
.../v8/typedapi/types/weights.go | 6 +-
.../v8/typedapi/types/whitespaceanalyzer.go | 4 +-
.../v8/typedapi/types/whitespacetokenizer.go | 6 +-
.../v8/typedapi/types/wildcardproperty.go | 26 +-
.../v8/typedapi/types/wildcardquery.go | 8 +-
.../v8/typedapi/types/wktgeobounds.go | 4 +-
.../types/worddelimitergraphtokenfilter.go | 24 +-
.../types/worddelimitertokenfilter.go | 20 +-
.../v8/typedapi/types/wrapperquery.go | 6 +-
.../v8/typedapi/types/writeoperation.go | 8 +-
.../v8/typedapi/types/xpackdatafeed.go | 6 +-
.../v8/typedapi/types/xpackfeature.go | 8 +-
.../v8/typedapi/types/xpackfeatures.go | 4 +-
.../v8/typedapi/types/xpackquery.go | 12 +-
.../v8/typedapi/types/xpackrealm.go | 8 +-
.../v8/typedapi/types/xpackrolemapping.go | 8 +-
.../typedapi/types/xpackruntimefieldtypes.go | 8 +-
.../zeroshotclassificationinferenceoptions.go | 6 +-
...hotclassificationinferenceupdateoptions.go | 6 +-
.../v8/typedapi/watcher/ackwatch/ack_watch.go | 50 +-
.../v8/typedapi/watcher/ackwatch/response.go | 4 +-
.../watcher/activatewatch/activate_watch.go | 50 +-
.../watcher/activatewatch/response.go | 4 +-
.../deactivatewatch/deactivate_watch.go | 50 +-
.../watcher/deactivatewatch/response.go | 4 +-
.../watcher/deletewatch/delete_watch.go | 50 +-
.../typedapi/watcher/deletewatch/response.go | 4 +-
.../watcher/executewatch/execute_watch.go | 46 +-
.../typedapi/watcher/executewatch/request.go | 5 +-
.../typedapi/watcher/executewatch/response.go | 4 +-
.../watcher/getsettings/get_settings.go | 5 +-
.../v8/typedapi/watcher/getwatch/get_watch.go | 50 +-
.../v8/typedapi/watcher/getwatch/response.go | 4 +-
.../v8/typedapi/watcher/putwatch/put_watch.go | 46 +-
.../v8/typedapi/watcher/putwatch/request.go | 5 +-
.../v8/typedapi/watcher/putwatch/response.go | 4 +-
.../watcher/querywatches/query_watches.go | 47 +-
.../typedapi/watcher/querywatches/request.go | 9 +-
.../typedapi/watcher/querywatches/response.go | 4 +-
.../v8/typedapi/watcher/start/response.go | 4 +-
.../v8/typedapi/watcher/start/start.go | 50 +-
.../v8/typedapi/watcher/stats/response.go | 4 +-
.../v8/typedapi/watcher/stats/stats.go | 49 +-
.../v8/typedapi/watcher/stop/response.go | 4 +-
.../v8/typedapi/watcher/stop/stop.go | 50 +-
.../watcher/updatesettings/update_settings.go | 5 +-
.../v8/typedapi/xpack/info/info.go | 36 +-
.../v8/typedapi/xpack/info/response.go | 4 +-
.../v8/typedapi/xpack/usage/response.go | 4 +-
.../v8/typedapi/xpack/usage/usage.go | 50 +-
vendor/golang.org/x/sys/unix/asm_zos_s390x.s | 665 +-
vendor/golang.org/x/sys/unix/bpxsvc_zos.go | 657 ++
vendor/golang.org/x/sys/unix/bpxsvc_zos.s | 192 +
vendor/golang.org/x/sys/unix/epoll_zos.go | 220 -
vendor/golang.org/x/sys/unix/fstatfs_zos.go | 163 -
vendor/golang.org/x/sys/unix/pagesize_unix.go | 2 +-
.../x/sys/unix/readdirent_getdirentries.go | 2 +-
vendor/golang.org/x/sys/unix/sockcmsg_zos.go | 58 +
.../golang.org/x/sys/unix/symaddr_zos_s390x.s | 75 +
.../x/sys/unix/syscall_zos_s390x.go | 1507 ++++-
vendor/golang.org/x/sys/unix/sysvshm_unix.go | 2 +-
.../x/sys/unix/sysvshm_unix_other.go | 2 +-
vendor/golang.org/x/sys/unix/zerrors_linux.go | 9 +
.../x/sys/unix/zerrors_zos_s390x.go | 233 +-
.../x/sys/unix/zsymaddr_zos_s390x.s | 364 ++
.../x/sys/unix/zsyscall_zos_s390x.go | 3113 ++++++++--
.../x/sys/unix/zsysnum_linux_386.go | 5 +
.../x/sys/unix/zsysnum_linux_amd64.go | 5 +
.../x/sys/unix/zsysnum_linux_arm.go | 5 +
.../x/sys/unix/zsysnum_linux_arm64.go | 5 +
.../x/sys/unix/zsysnum_linux_loong64.go | 5 +
.../x/sys/unix/zsysnum_linux_mips.go | 5 +
.../x/sys/unix/zsysnum_linux_mips64.go | 5 +
.../x/sys/unix/zsysnum_linux_mips64le.go | 5 +
.../x/sys/unix/zsysnum_linux_mipsle.go | 5 +
.../x/sys/unix/zsysnum_linux_ppc.go | 5 +
.../x/sys/unix/zsysnum_linux_ppc64.go | 5 +
.../x/sys/unix/zsysnum_linux_ppc64le.go | 5 +
.../x/sys/unix/zsysnum_linux_riscv64.go | 5 +
.../x/sys/unix/zsysnum_linux_s390x.go | 5 +
.../x/sys/unix/zsysnum_linux_sparc64.go | 5 +
.../x/sys/unix/zsysnum_zos_s390x.go | 5507 +++++++++--------
vendor/golang.org/x/sys/unix/ztypes_linux.go | 26 +-
.../golang.org/x/sys/unix/ztypes_linux_386.go | 8 -
.../x/sys/unix/ztypes_linux_amd64.go | 9 -
.../golang.org/x/sys/unix/ztypes_linux_arm.go | 9 -
.../x/sys/unix/ztypes_linux_arm64.go | 9 -
.../x/sys/unix/ztypes_linux_loong64.go | 9 -
.../x/sys/unix/ztypes_linux_mips.go | 9 -
.../x/sys/unix/ztypes_linux_mips64.go | 9 -
.../x/sys/unix/ztypes_linux_mips64le.go | 9 -
.../x/sys/unix/ztypes_linux_mipsle.go | 9 -
.../golang.org/x/sys/unix/ztypes_linux_ppc.go | 9 -
.../x/sys/unix/ztypes_linux_ppc64.go | 9 -
.../x/sys/unix/ztypes_linux_ppc64le.go | 9 -
.../x/sys/unix/ztypes_linux_riscv64.go | 9 -
.../x/sys/unix/ztypes_linux_s390x.go | 9 -
.../x/sys/unix/ztypes_linux_sparc64.go | 9 -
.../golang.org/x/sys/unix/ztypes_zos_s390x.go | 146 +-
vendor/golang.org/x/sys/windows/aliases.go | 2 +-
vendor/golang.org/x/sys/windows/empty.s | 8 -
vendor/modules.txt | 7 +-
3517 files changed, 46200 insertions(+), 15813 deletions(-)
rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.connector_secret.delete.go => api.connector.secret_delete.go} (95%)
rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.connector_secret.get.go => api.connector.secret_get.go} (95%)
rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.connector_secret.post.go => api.connector.secret_post.go} (93%)
rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.connector_secret.put.go => api.connector.secret_put.go} (94%)
rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.connector_sync_job.cancel.go => api.connector.sync_job_cancel.go} (95%)
rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.connector_sync_job.check_in.go => api.connector.sync_job_check_in.go} (95%)
rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.connector_sync_job.delete.go => api.connector.sync_job_delete.go} (95%)
rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.connector_sync_job.error.go => api.connector.sync_job_error.go} (94%)
rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.connector_sync_job.get.go => api.connector.sync_job_get.go} (95%)
rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.connector_sync_job.list.go => api.connector.sync_job_list.go} (96%)
rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.connector_sync_job.post.go => api.connector.sync_job_post.go} (93%)
rename vendor/github.com/elastic/go-elasticsearch/v8/esapi/{api.connector_sync_job.update_stats.go => api.connector.sync_job_update_stats.go} (94%)
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_active_filtering.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_filtering_validation.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.profiling.topn_functions.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.find_field_structure.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.find_message_structure.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/helpers.go
delete mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulateindextemplate/request.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment/request.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment/response.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment/update_trained_model_deployment.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commoncatqueryparameters.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commonqueryparameters.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionresult.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icucollationproperty.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnretriever.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnsearch.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/learningtorank.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nullvalue.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankeddocument.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retrievercontainer.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rrfretriever.go
create mode 100644 vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardretriever.go
create mode 100644 vendor/golang.org/x/sys/unix/bpxsvc_zos.go
create mode 100644 vendor/golang.org/x/sys/unix/bpxsvc_zos.s
delete mode 100644 vendor/golang.org/x/sys/unix/epoll_zos.go
delete mode 100644 vendor/golang.org/x/sys/unix/fstatfs_zos.go
create mode 100644 vendor/golang.org/x/sys/unix/sockcmsg_zos.go
create mode 100644 vendor/golang.org/x/sys/unix/symaddr_zos_s390x.s
create mode 100644 vendor/golang.org/x/sys/unix/zsymaddr_zos_s390x.s
delete mode 100644 vendor/golang.org/x/sys/windows/empty.s
diff --git a/go.mod b/go.mod
index 11bb9ceea7..e9412d8abb 100644
--- a/go.mod
+++ b/go.mod
@@ -10,8 +10,8 @@ require (
github.com/aws/aws-sdk-go-v2/service/sns v1.29.4
github.com/aws/aws-sdk-go-v2/service/sqs v1.31.4
github.com/eclipse/paho.golang v0.21.0
- github.com/elastic/elastic-transport-go/v8 v8.5.0
- github.com/elastic/go-elasticsearch/v8 v8.13.1
+ github.com/elastic/elastic-transport-go/v8 v8.6.0
+ github.com/elastic/go-elasticsearch/v8 v8.14.0
github.com/go-redis/redis/extra/rediscmd v0.2.0
github.com/go-redis/redis/v8 v8.11.5
github.com/go-sql-driver/mysql v1.8.1
@@ -82,7 +82,7 @@ require (
golang.org/x/crypto v0.22.0 // indirect
golang.org/x/net v0.24.0 // indirect
golang.org/x/sync v0.7.0 // indirect
- golang.org/x/sys v0.19.0 // indirect
+ golang.org/x/sys v0.20.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240415180920-8c6c420018be // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
diff --git a/go.sum b/go.sum
index 48cdff2f3a..bbc1ce17a1 100644
--- a/go.sum
+++ b/go.sum
@@ -53,10 +53,10 @@ github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc=
github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I=
github.com/eclipse/paho.golang v0.21.0 h1:cxxEReu+iFbA5RrHfRGxJOh8tXZKDywuehneoeBeyn8=
github.com/eclipse/paho.golang v0.21.0/go.mod h1:GHF6vy7SvDbDHBguaUpfuBkEB5G6j0zKxMG4gbh6QRQ=
-github.com/elastic/elastic-transport-go/v8 v8.5.0 h1:v5membAl7lvQgBTexPRDBO/RdnlQX+FM9fUVDyXxvH0=
-github.com/elastic/elastic-transport-go/v8 v8.5.0/go.mod h1:YLHer5cj0csTzNFXoNQ8qhtGY1GTvSqPnKWKaqQE3Hk=
-github.com/elastic/go-elasticsearch/v8 v8.13.1 h1:du5F8IzUUyCkzxyHdrO9AtopcG95I/qwi2WK8Kf1xlg=
-github.com/elastic/go-elasticsearch/v8 v8.13.1/go.mod h1:DIn7HopJs4oZC/w0WoJR13uMUxtHeq92eI5bqv5CRfI=
+github.com/elastic/elastic-transport-go/v8 v8.6.0 h1:Y2S/FBjx1LlCv5m6pWAF2kDJAHoSjSRSJCApolgfthA=
+github.com/elastic/elastic-transport-go/v8 v8.6.0/go.mod h1:YLHer5cj0csTzNFXoNQ8qhtGY1GTvSqPnKWKaqQE3Hk=
+github.com/elastic/go-elasticsearch/v8 v8.14.0 h1:1ywU8WFReLLcxE1WJqii3hTtbPUE2hc38ZK/j4mMFow=
+github.com/elastic/go-elasticsearch/v8 v8.14.0/go.mod h1:WRvnlGkSuZyp83M2U8El/LGXpCjYLrvlkSgkAH4O5I4=
github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=
github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
@@ -248,8 +248,8 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o=
-golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y=
+golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
diff --git a/vendor/github.com/elastic/elastic-transport-go/v8/elastictransport/connection.go b/vendor/github.com/elastic/elastic-transport-go/v8/elastictransport/connection.go
index 47b62d4547..9050c2d20f 100644
--- a/vendor/github.com/elastic/elastic-transport-go/v8/elastictransport/connection.go
+++ b/vendor/github.com/elastic/elastic-transport-go/v8/elastictransport/connection.go
@@ -45,6 +45,10 @@ type ConnectionPool interface {
URLs() []*url.URL // URLs returns the list of URLs of available connections.
}
+type UpdatableConnectionPool interface {
+ Update([]*Connection) error // Update injects newly found nodes in the cluster.
+}
+
// Connection represents a connection to a node.
type Connection struct {
sync.Mutex
@@ -60,6 +64,15 @@ type Connection struct {
Attributes map[string]interface{}
}
+func (c *Connection) Cmp(connection *Connection) bool {
+ if c.URL.Hostname() == connection.URL.Hostname() {
+ if c.URL.Port() == connection.URL.Port() {
+ return c.URL.Path == connection.URL.Path
+ }
+ }
+ return false
+}
+
type singleConnectionPool struct {
connection *Connection
@@ -175,20 +188,6 @@ func (cp *statusConnectionPool) OnFailure(c *Connection) error {
cp.scheduleResurrect(c)
c.Unlock()
- // Push item to dead list and sort slice by number of failures
- cp.dead = append(cp.dead, c)
- sort.Slice(cp.dead, func(i, j int) bool {
- c1 := cp.dead[i]
- c2 := cp.dead[j]
- c1.Lock()
- c2.Lock()
- defer c1.Unlock()
- defer c2.Unlock()
-
- res := c1.Failures > c2.Failures
- return res
- })
-
// Check if connection exists in the list, return error if not.
index := -1
for i, conn := range cp.live {
@@ -200,6 +199,16 @@ func (cp *statusConnectionPool) OnFailure(c *Connection) error {
return errors.New("connection not in live list")
}
+ // Push item to dead list and sort slice by number of failures
+ cp.dead = append(cp.dead, c)
+ sort.Slice(cp.dead, func(i, j int) bool {
+ c1 := cp.dead[i]
+ c2 := cp.dead[j]
+
+ res := c1.Failures > c2.Failures
+ return res
+ })
+
// Remove item; https://github.com/golang/go/wiki/SliceTricks
copy(cp.live[index:], cp.live[index+1:])
cp.live = cp.live[:len(cp.live)-1]
@@ -207,6 +216,71 @@ func (cp *statusConnectionPool) OnFailure(c *Connection) error {
return nil
}
+// Update merges the existing live and dead connections with the latest nodes discovered from the cluster.
+// ConnectionPool must be locked before calling.
+func (cp *statusConnectionPool) Update(connections []*Connection) error {
+ if len(connections) == 0 {
+ return errors.New("no connections provided, connection pool left untouched")
+ }
+
+ // Remove hosts that are no longer in the new list of connections
+ for i := 0; i < len(cp.live); i++ {
+ found := false
+ for _, c := range connections {
+ if cp.live[i].Cmp(c) {
+ found = true
+ break
+ }
+ }
+
+ if !found {
+ // Remove item; https://github.com/golang/go/wiki/SliceTricks
+ copy(cp.live[i:], cp.live[i+1:])
+ cp.live = cp.live[:len(cp.live)-1]
+ i--
+ }
+ }
+
+ // Remove hosts that are no longer in the dead list of connections
+ for i := 0; i < len(cp.dead); i++ {
+ found := false
+ for _, c := range connections {
+ if cp.dead[i].Cmp(c) {
+ found = true
+ break
+ }
+ }
+
+ if !found {
+ copy(cp.dead[i:], cp.dead[i+1:])
+ cp.dead = cp.dead[:len(cp.dead)-1]
+ i--
+ }
+ }
+
+ // Add new connections that are not already in the live or dead list
+ for _, c := range connections {
+ found := false
+ for _, conn := range cp.live {
+ if conn.Cmp(c) {
+ found = true
+ break
+ }
+ }
+ for _, conn := range cp.dead {
+ if conn.Cmp(c) {
+ found = true
+ break
+ }
+ }
+ if !found {
+ cp.live = append(cp.live, c)
+ }
+ }
+
+ return nil
+}
+
// URLs returns the list of URLs of available connections.
func (cp *statusConnectionPool) URLs() []*url.URL {
var urls []*url.URL
diff --git a/vendor/github.com/elastic/elastic-transport-go/v8/elastictransport/discovery.go b/vendor/github.com/elastic/elastic-transport-go/v8/elastictransport/discovery.go
index c4f857a37b..62d2218bd6 100644
--- a/vendor/github.com/elastic/elastic-transport-go/v8/elastictransport/discovery.go
+++ b/vendor/github.com/elastic/elastic-transport-go/v8/elastictransport/discovery.go
@@ -30,7 +30,6 @@ import (
)
// Discoverable defines the interface for transports supporting node discovery.
-//
type Discoverable interface {
DiscoverNodes() error
}
@@ -38,7 +37,6 @@ type Discoverable interface {
// nodeInfo represents the information about node in a cluster.
//
// See: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-info.html
-//
type nodeInfo struct {
ID string
Name string
@@ -51,7 +49,6 @@ type nodeInfo struct {
}
// DiscoverNodes reloads the client connections by fetching information from the cluster.
-//
func (c *Client) DiscoverNodes() error {
var conns []*Connection
@@ -109,10 +106,18 @@ func (c *Client) DiscoverNodes() error {
if c.poolFunc != nil {
c.pool = c.poolFunc(conns, c.selector)
} else {
- // TODO(karmi): Replace only live connections, leave dead scheduled for resurrect?
- c.pool, err = NewConnectionPool(conns, c.selector)
- if err != nil {
- return err
+ if p, ok := c.pool.(UpdatableConnectionPool); ok {
+ err = p.Update(conns)
+ if err != nil {
+ if debugLogger != nil {
+ debugLogger.Logf("Error updating pool: %s\n", err)
+ }
+ }
+ } else {
+ c.pool, err = NewConnectionPool(conns, c.selector)
+ if err != nil {
+ return err
+ }
}
}
diff --git a/vendor/github.com/elastic/elastic-transport-go/v8/elastictransport/version/version.go b/vendor/github.com/elastic/elastic-transport-go/v8/elastictransport/version/version.go
index e440c42a13..531a1c5b71 100644
--- a/vendor/github.com/elastic/elastic-transport-go/v8/elastictransport/version/version.go
+++ b/vendor/github.com/elastic/elastic-transport-go/v8/elastictransport/version/version.go
@@ -17,4 +17,4 @@
package version
-const Transport = "8.5.0"
+const Transport = "8.6.0"
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/CHANGELOG.md b/vendor/github.com/elastic/go-elasticsearch/v8/CHANGELOG.md
index dd9ea63ed4..6659ccf453 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/CHANGELOG.md
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/CHANGELOG.md
@@ -1,3 +1,23 @@
+# 8.14.0
+
+# API
+
+New APIs:
+
+ * ConnectorUpdateActiveFiltering [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/master/update-connector-filtering-api.html)
+ * ConnectorUpdateFilteringValidation [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/master/update-connector-filtering-api.html)
+ * TextStructureFindFieldStructure [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/find-field-structure.html)
+ * TextStructureFindMessageStructure [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/find-message-structure.html)
+
+# Typed API
+
+New APIs:
+
+ * UpdateTrainedModelDeployment [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/update-trained-model-deployment.html)
+
+# Transport
+ * Fixed a deadlock in the connection pool https://github.com/elastic/elastic-transport-go/issues/20
+
# 8.13.1
# Typed API
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/Makefile b/vendor/github.com/elastic/go-elasticsearch/v8/Makefile
index f8fc99039a..bbcadb2254 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/Makefile
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/Makefile
@@ -1,6 +1,6 @@
SHELL := /bin/bash
-ELASTICSEARCH_DEFAULT_BUILD_VERSION = "8.13.2-SNAPSHOT"
+ELASTICSEARCH_DEFAULT_BUILD_VERSION = "8.14.0-SNAPSHOT"
##@ Test
test-unit: ## Run unit tests
@@ -24,6 +24,7 @@ endif
test: test-unit
test-integ: ## Run integration tests
+ @mkdir -p tmp
@printf "\033[2m→ Running integration tests...\033[0m\n"
$(eval testintegtags += "integration")
ifdef multinode
@@ -32,17 +33,15 @@ endif
ifdef race
$(eval testintegargs += "-race")
endif
- $(eval testintegargs += "-cover" "-coverprofile=tmp/integration-client.cov" "-tags='$(testintegtags)'" "-timeout=1h")
- @mkdir -p tmp
+ $(eval testintegargs += "-cover" "-coverpkg=github.com/elastic/go-elasticsearch/v8,github.com/elastic/go-elasticsearch/v8/esutil,github.com/elastic/go-elasticsearch/v8/typedapi" "-coverprofile=$(PWD)/tmp/integration-client.cov" "-tags='$(testintegtags)'" "-timeout=1h")
@if which gotestsum > /dev/null 2>&1 ; then \
- export ELASTICSEARCH_URL='http://elastic:elastic@localhost:9200'; \
- echo "gotestsum --format=short-verbose --junitfile=tmp/integration-report.xml --" $(testintegargs); \
- gotestsum --format=short-verbose --junitfile=tmp/integration-report.xml -- $(testintegargs) "."; \
- gotestsum --format=short-verbose --junitfile=tmp/integration-report.xml -- $(testintegargs) "./esapi" "./esutil"; \
+ cd internal/testing/e2e; \
+ echo "gotestsum --format=short-verbose --junitfile=$(PWD)/tmp/integration-report.xml --" $(testintegargs); \
+ gotestsum --format=short-verbose --junitfile=$(PWD)/tmp/integration-report.xml -- $(testintegargs); \
else \
- export ELASTICSEARCH_URL='http://elastic:elastic@localhost:9200'; \
- echo "go test -v" $(testintegargs) "."; \
- go test -v $(testintegargs) "./esapi" "./esutil"; \
+ cd internal/testing/e2e; \
+ echo "go test -v -count=1" $(testintegargs); \
+ go test -v -count=1 $(testintegargs); \
fi;
test-api: ## Run generated API integration tests
@@ -156,7 +155,6 @@ test-coverage: ## Generate test coverage report
lint: ## Run lint on the package
@printf "\033[2m→ Running lint...\033[0m\n"
go vet github.com/elastic/go-elasticsearch/...
- go list github.com/elastic/go-elasticsearch/... | 'grep' -v internal | xargs golint -set_exit_status
@{ \
set -e ; \
trap "test -d ../../../.git && git checkout --quiet go.mod" INT TERM EXIT; \
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/elasticsearch.go b/vendor/github.com/elastic/go-elasticsearch/v8/elasticsearch.go
index dcfc98cd02..c736ded991 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/elasticsearch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/elasticsearch.go
@@ -91,6 +91,7 @@ type Config struct {
CompressRequestBody bool // Default: false.
CompressRequestBodyLevel int // Default: gzip.DefaultCompression.
+ PoolCompressor bool // If true, a sync.Pool based gzip writer is used. Default: false.
DiscoverNodesOnStart bool // Discover nodes when initializing the client. Default: false.
DiscoverNodesInterval time.Duration // Discover nodes periodically. Default: disabled.
@@ -294,6 +295,7 @@ func newTransport(cfg Config) (*elastictransport.Client, error) {
CompressRequestBody: cfg.CompressRequestBody,
CompressRequestBodyLevel: cfg.CompressRequestBodyLevel,
+ PoolCompressor: cfg.PoolCompressor,
EnableMetrics: cfg.EnableMetrics,
EnableDebugLogger: cfg.EnableDebugLogger,
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api._.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api._.go
index 092a641b8a..36f5b53b72 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api._.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api._.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2 (b427b3f): DO NOT EDIT
+// Code generated from specification version 8.14.0 (b0ca71d): DO NOT EDIT
package esapi
@@ -70,9 +70,11 @@ type API struct {
ConnectorSyncJobPost ConnectorSyncJobPost
ConnectorSyncJobUpdateStats ConnectorSyncJobUpdateStats
ConnectorUpdateAPIKeyDocumentID ConnectorUpdateAPIKeyDocumentID
+ ConnectorUpdateActiveFiltering ConnectorUpdateActiveFiltering
ConnectorUpdateConfiguration ConnectorUpdateConfiguration
ConnectorUpdateError ConnectorUpdateError
ConnectorUpdateFiltering ConnectorUpdateFiltering
+ ConnectorUpdateFilteringValidation ConnectorUpdateFilteringValidation
ConnectorUpdateIndexName ConnectorUpdateIndexName
ConnectorUpdateName ConnectorUpdateName
ConnectorUpdateNative ConnectorUpdateNative
@@ -139,6 +141,7 @@ type API struct {
ProfilingFlamegraph ProfilingFlamegraph
ProfilingStacktraces ProfilingStacktraces
ProfilingStatus ProfilingStatus
+ ProfilingTopnFunctions ProfilingTopnFunctions
PutScript PutScript
QueryRulesetDelete QueryRulesetDelete
QueryRulesetGet QueryRulesetGet
@@ -190,6 +193,8 @@ type API struct {
SynonymsPutSynonymRule SynonymsPutSynonymRule
TermsEnum TermsEnum
Termvectors Termvectors
+ TextStructureFindFieldStructure TextStructureFindFieldStructure
+ TextStructureFindMessageStructure TextStructureFindMessageStructure
TextStructureFindStructure TextStructureFindStructure
TextStructureTestGrokPattern TextStructureTestGrokPattern
TransformDeleteTransform TransformDeleteTransform
@@ -653,9 +658,11 @@ func New(t Transport) *API {
ConnectorSyncJobPost: newConnectorSyncJobPostFunc(t),
ConnectorSyncJobUpdateStats: newConnectorSyncJobUpdateStatsFunc(t),
ConnectorUpdateAPIKeyDocumentID: newConnectorUpdateAPIKeyDocumentIDFunc(t),
+ ConnectorUpdateActiveFiltering: newConnectorUpdateActiveFilteringFunc(t),
ConnectorUpdateConfiguration: newConnectorUpdateConfigurationFunc(t),
ConnectorUpdateError: newConnectorUpdateErrorFunc(t),
ConnectorUpdateFiltering: newConnectorUpdateFilteringFunc(t),
+ ConnectorUpdateFilteringValidation: newConnectorUpdateFilteringValidationFunc(t),
ConnectorUpdateIndexName: newConnectorUpdateIndexNameFunc(t),
ConnectorUpdateName: newConnectorUpdateNameFunc(t),
ConnectorUpdateNative: newConnectorUpdateNativeFunc(t),
@@ -722,6 +729,7 @@ func New(t Transport) *API {
ProfilingFlamegraph: newProfilingFlamegraphFunc(t),
ProfilingStacktraces: newProfilingStacktracesFunc(t),
ProfilingStatus: newProfilingStatusFunc(t),
+ ProfilingTopnFunctions: newProfilingTopnFunctionsFunc(t),
PutScript: newPutScriptFunc(t),
QueryRulesetDelete: newQueryRulesetDeleteFunc(t),
QueryRulesetGet: newQueryRulesetGetFunc(t),
@@ -773,6 +781,8 @@ func New(t Transport) *API {
SynonymsPutSynonymRule: newSynonymsPutSynonymRuleFunc(t),
TermsEnum: newTermsEnumFunc(t),
Termvectors: newTermvectorsFunc(t),
+ TextStructureFindFieldStructure: newTextStructureFindFieldStructureFunc(t),
+ TextStructureFindMessageStructure: newTextStructureFindMessageStructureFunc(t),
TextStructureFindStructure: newTextStructureFindStructureFunc(t),
TextStructureTestGrokPattern: newTextStructureTestGrokPatternFunc(t),
TransformDeleteTransform: newTransformDeleteTransformFunc(t),
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.bulk.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.bulk.go
index 3e5c5500b2..8952d23a64 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.bulk.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.bulk.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.aliases.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.aliases.go
index c6d652136a..28f7993052 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.aliases.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.aliases.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.allocation.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.allocation.go
index 312cf49248..1e7221ab3a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.allocation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.allocation.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.component_templates.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.component_templates.go
index 2beca1a2c9..9cdbbed830 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.component_templates.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.component_templates.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.count.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.count.go
index d378e2c6f4..f96d47edb3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.count.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.count.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.fielddata.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.fielddata.go
index 94f712411e..3dc35dcecb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.fielddata.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.fielddata.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.health.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.health.go
index 62ce92c188..79ade9baac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.health.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.health.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.help.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.help.go
index f1219061a3..e825ddbc02 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.help.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.help.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.indices.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.indices.go
index 82cb7813fb..e8afd12a73 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.indices.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.indices.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.master.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.master.go
index 64df166919..5fffb05799 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.master.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.master.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.nodeattrs.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.nodeattrs.go
index e65c33fa40..87b4f484fa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.nodeattrs.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.nodeattrs.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.nodes.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.nodes.go
index 020b7f45eb..6754491e78 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.nodes.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.nodes.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.pending_tasks.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.pending_tasks.go
index cfbbafd334..4f971bc65f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.pending_tasks.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.pending_tasks.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.plugins.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.plugins.go
index da7419796d..65db3f794b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.plugins.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.plugins.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.recovery.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.recovery.go
index e209a38215..d1b75a53bd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.recovery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.recovery.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.repositories.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.repositories.go
index 876fdc41d4..b9234bb53b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.repositories.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.repositories.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.segments.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.segments.go
index 1939165284..892d38cbc1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.segments.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.segments.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.shards.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.shards.go
index 4f4a384014..bcb270828f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.shards.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.shards.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.snapshots.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.snapshots.go
index 44d7a8e843..c572a982b1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.snapshots.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.snapshots.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.tasks.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.tasks.go
index 6d5da7a4a9..8676cf9078 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.tasks.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.tasks.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.templates.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.templates.go
index 44592a88d6..e967175a15 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.templates.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.templates.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.thread_pool.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.thread_pool.go
index 413626e334..816f6c5a0c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.thread_pool.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cat.thread_pool.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.clear_scroll.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.clear_scroll.go
index fe6819dc77..e4331102bc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.clear_scroll.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.clear_scroll.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.allocation_explain.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.allocation_explain.go
index 43286d125a..49dcd6d60f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.allocation_explain.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.allocation_explain.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.delete_component_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.delete_component_template.go
index 64faf3e098..3f58f06d8d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.delete_component_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.delete_component_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.delete_voting_config_exclusions.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.delete_voting_config_exclusions.go
index 9368c6844d..a8357ac7f7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.delete_voting_config_exclusions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.delete_voting_config_exclusions.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.exists_component_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.exists_component_template.go
index 4b02b6185f..4089fde39d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.exists_component_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.exists_component_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.get_component_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.get_component_template.go
index c18beadbfa..77071d58ed 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.get_component_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.get_component_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.get_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.get_settings.go
index 5cb8ef207b..fd6278d54b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.get_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.get_settings.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.health.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.health.go
index 516781b4ef..744348326c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.health.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.health.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.info.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.info.go
index 84fd1bb2f6..6ada054f37 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.info.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.pending_tasks.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.pending_tasks.go
index 57104af3e0..58d9db2a39 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.pending_tasks.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.pending_tasks.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.post_voting_config_exclusions.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.post_voting_config_exclusions.go
index 0a28ce3004..6bed21496c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.post_voting_config_exclusions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.post_voting_config_exclusions.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.put_component_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.put_component_template.go
index f81165d84f..6a2f38114a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.put_component_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.put_component_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.put_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.put_settings.go
index f38b0ad90b..f70f2a7b92 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.put_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.put_settings.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.remote_info.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.remote_info.go
index 8a01cc852f..9c30bd4ab4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.remote_info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.remote_info.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.reroute.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.reroute.go
index 5590a76155..c8510e7719 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.reroute.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.reroute.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.state.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.state.go
index 522974a367..1926dd30d5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.state.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.state.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.stats.go
index 113200af3b..335cb77003 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.cluster.stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.check_in.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.check_in.go
index cf29071fd5..7d0f66a11a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.check_in.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.check_in.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.delete.go
index ca23ffb318..f85f0851ab 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.delete.go
@@ -15,13 +15,14 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
import (
"context"
"net/http"
+ "strconv"
"strings"
)
@@ -53,6 +54,8 @@ type ConnectorDelete func(connector_id string, o ...func(*ConnectorDeleteRequest
type ConnectorDeleteRequest struct {
ConnectorID string
+ DeleteSyncJobs *bool
+
Pretty bool
Human bool
ErrorTrace bool
@@ -96,6 +99,10 @@ func (r ConnectorDeleteRequest) Do(providedCtx context.Context, transport Transp
params = make(map[string]string)
+ if r.DeleteSyncJobs != nil {
+ params["delete_sync_jobs"] = strconv.FormatBool(*r.DeleteSyncJobs)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -174,6 +181,13 @@ func (f ConnectorDelete) WithContext(v context.Context) func(*ConnectorDeleteReq
}
}
+// WithDeleteSyncJobs - determines whether associated sync jobs are also deleted..
+func (f ConnectorDelete) WithDeleteSyncJobs(v bool) func(*ConnectorDeleteRequest) {
+ return func(r *ConnectorDeleteRequest) {
+ r.DeleteSyncJobs = &v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f ConnectorDelete) WithPretty() func(*ConnectorDeleteRequest) {
return func(r *ConnectorDeleteRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.get.go
index e5162d666f..6e27967228 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.get.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.last_sync.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.last_sync.go
index 0e1e96050d..9b39d5b153 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.last_sync.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.last_sync.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.list.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.list.go
index 96090ce011..19cc2c8ca9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.list.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.list.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.post.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.post.go
index e799b5b743..e7db223c61 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.post.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.post.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.put.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.put.go
index 4992e4fae1..3951115c42 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.put.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.put.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_secret.delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.secret_delete.go
similarity index 95%
rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_secret.delete.go
rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.secret_delete.go
index f5cd6aa4b4..68537ef7f0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_secret.delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.secret_delete.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -73,7 +73,7 @@ func (r ConnectorSecretDeleteRequest) Do(providedCtx context.Context, transport
)
if instrument, ok := r.instrument.(Instrumentation); ok {
- ctx = instrument.Start(providedCtx, "connector_secret.delete")
+ ctx = instrument.Start(providedCtx, "connector.secret_delete")
defer instrument.Close(ctx)
}
if ctx == nil {
@@ -145,11 +145,11 @@ func (r ConnectorSecretDeleteRequest) Do(providedCtx context.Context, transport
}
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.BeforeRequest(req, "connector_secret.delete")
+ instrument.BeforeRequest(req, "connector.secret_delete")
}
res, err := transport.Perform(req)
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.AfterRequest(req, "elasticsearch", "connector_secret.delete")
+ instrument.AfterRequest(req, "elasticsearch", "connector.secret_delete")
}
if err != nil {
if instrument, ok := r.instrument.(Instrumentation); ok {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_secret.get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.secret_get.go
similarity index 95%
rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_secret.get.go
rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.secret_get.go
index c940161af7..952f391a16 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_secret.get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.secret_get.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -73,7 +73,7 @@ func (r ConnectorSecretGetRequest) Do(providedCtx context.Context, transport Tra
)
if instrument, ok := r.instrument.(Instrumentation); ok {
- ctx = instrument.Start(providedCtx, "connector_secret.get")
+ ctx = instrument.Start(providedCtx, "connector.secret_get")
defer instrument.Close(ctx)
}
if ctx == nil {
@@ -145,11 +145,11 @@ func (r ConnectorSecretGetRequest) Do(providedCtx context.Context, transport Tra
}
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.BeforeRequest(req, "connector_secret.get")
+ instrument.BeforeRequest(req, "connector.secret_get")
}
res, err := transport.Perform(req)
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.AfterRequest(req, "elasticsearch", "connector_secret.get")
+ instrument.AfterRequest(req, "elasticsearch", "connector.secret_get")
}
if err != nil {
if instrument, ok := r.instrument.(Instrumentation); ok {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_secret.post.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.secret_post.go
similarity index 93%
rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_secret.post.go
rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.secret_post.go
index 6896d37f0c..56072b47fe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_secret.post.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.secret_post.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -74,7 +74,7 @@ func (r ConnectorSecretPostRequest) Do(providedCtx context.Context, transport Tr
)
if instrument, ok := r.instrument.(Instrumentation); ok {
- ctx = instrument.Start(providedCtx, "connector_secret.post")
+ ctx = instrument.Start(providedCtx, "connector.secret_post")
defer instrument.Close(ctx)
}
if ctx == nil {
@@ -142,14 +142,14 @@ func (r ConnectorSecretPostRequest) Do(providedCtx context.Context, transport Tr
}
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.BeforeRequest(req, "connector_secret.post")
- if reader := instrument.RecordRequestBody(ctx, "connector_secret.post", r.Body); reader != nil {
+ instrument.BeforeRequest(req, "connector.secret_post")
+ if reader := instrument.RecordRequestBody(ctx, "connector.secret_post", r.Body); reader != nil {
req.Body = reader
}
}
res, err := transport.Perform(req)
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.AfterRequest(req, "elasticsearch", "connector_secret.post")
+ instrument.AfterRequest(req, "elasticsearch", "connector.secret_post")
}
if err != nil {
if instrument, ok := r.instrument.(Instrumentation); ok {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_secret.put.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.secret_put.go
similarity index 94%
rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_secret.put.go
rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.secret_put.go
index 86ab62612b..c2e8e78a95 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_secret.put.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.secret_put.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -76,7 +76,7 @@ func (r ConnectorSecretPutRequest) Do(providedCtx context.Context, transport Tra
)
if instrument, ok := r.instrument.(Instrumentation); ok {
- ctx = instrument.Start(providedCtx, "connector_secret.put")
+ ctx = instrument.Start(providedCtx, "connector.secret_put")
defer instrument.Close(ctx)
}
if ctx == nil {
@@ -152,14 +152,14 @@ func (r ConnectorSecretPutRequest) Do(providedCtx context.Context, transport Tra
}
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.BeforeRequest(req, "connector_secret.put")
- if reader := instrument.RecordRequestBody(ctx, "connector_secret.put", r.Body); reader != nil {
+ instrument.BeforeRequest(req, "connector.secret_put")
+ if reader := instrument.RecordRequestBody(ctx, "connector.secret_put", r.Body); reader != nil {
req.Body = reader
}
}
res, err := transport.Perform(req)
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.AfterRequest(req, "elasticsearch", "connector_secret.put")
+ instrument.AfterRequest(req, "elasticsearch", "connector.secret_put")
}
if err != nil {
if instrument, ok := r.instrument.(Instrumentation); ok {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.cancel.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_cancel.go
similarity index 95%
rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.cancel.go
rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_cancel.go
index 8d27ad3dee..592270c430 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.cancel.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_cancel.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -75,7 +75,7 @@ func (r ConnectorSyncJobCancelRequest) Do(providedCtx context.Context, transport
)
if instrument, ok := r.instrument.(Instrumentation); ok {
- ctx = instrument.Start(providedCtx, "connector_sync_job.cancel")
+ ctx = instrument.Start(providedCtx, "connector.sync_job_cancel")
defer instrument.Close(ctx)
}
if ctx == nil {
@@ -149,11 +149,11 @@ func (r ConnectorSyncJobCancelRequest) Do(providedCtx context.Context, transport
}
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.BeforeRequest(req, "connector_sync_job.cancel")
+ instrument.BeforeRequest(req, "connector.sync_job_cancel")
}
res, err := transport.Perform(req)
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.AfterRequest(req, "elasticsearch", "connector_sync_job.cancel")
+ instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_cancel")
}
if err != nil {
if instrument, ok := r.instrument.(Instrumentation); ok {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.check_in.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_check_in.go
similarity index 95%
rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.check_in.go
rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_check_in.go
index 490287d6a7..3b80b6dcd5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.check_in.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_check_in.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -75,7 +75,7 @@ func (r ConnectorSyncJobCheckInRequest) Do(providedCtx context.Context, transpor
)
if instrument, ok := r.instrument.(Instrumentation); ok {
- ctx = instrument.Start(providedCtx, "connector_sync_job.check_in")
+ ctx = instrument.Start(providedCtx, "connector.sync_job_check_in")
defer instrument.Close(ctx)
}
if ctx == nil {
@@ -149,11 +149,11 @@ func (r ConnectorSyncJobCheckInRequest) Do(providedCtx context.Context, transpor
}
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.BeforeRequest(req, "connector_sync_job.check_in")
+ instrument.BeforeRequest(req, "connector.sync_job_check_in")
}
res, err := transport.Perform(req)
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.AfterRequest(req, "elasticsearch", "connector_sync_job.check_in")
+ instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_check_in")
}
if err != nil {
if instrument, ok := r.instrument.(Instrumentation); ok {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_delete.go
similarity index 95%
rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.delete.go
rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_delete.go
index ff69ebc8ef..2782f7d002 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_delete.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -75,7 +75,7 @@ func (r ConnectorSyncJobDeleteRequest) Do(providedCtx context.Context, transport
)
if instrument, ok := r.instrument.(Instrumentation); ok {
- ctx = instrument.Start(providedCtx, "connector_sync_job.delete")
+ ctx = instrument.Start(providedCtx, "connector.sync_job_delete")
defer instrument.Close(ctx)
}
if ctx == nil {
@@ -147,11 +147,11 @@ func (r ConnectorSyncJobDeleteRequest) Do(providedCtx context.Context, transport
}
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.BeforeRequest(req, "connector_sync_job.delete")
+ instrument.BeforeRequest(req, "connector.sync_job_delete")
}
res, err := transport.Perform(req)
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.AfterRequest(req, "elasticsearch", "connector_sync_job.delete")
+ instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_delete")
}
if err != nil {
if instrument, ok := r.instrument.(Instrumentation); ok {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.error.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_error.go
similarity index 94%
rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.error.go
rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_error.go
index 495038ed56..baab56f5b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.error.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_error.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -78,7 +78,7 @@ func (r ConnectorSyncJobErrorRequest) Do(providedCtx context.Context, transport
)
if instrument, ok := r.instrument.(Instrumentation); ok {
- ctx = instrument.Start(providedCtx, "connector_sync_job.error")
+ ctx = instrument.Start(providedCtx, "connector.sync_job_error")
defer instrument.Close(ctx)
}
if ctx == nil {
@@ -156,14 +156,14 @@ func (r ConnectorSyncJobErrorRequest) Do(providedCtx context.Context, transport
}
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.BeforeRequest(req, "connector_sync_job.error")
- if reader := instrument.RecordRequestBody(ctx, "connector_sync_job.error", r.Body); reader != nil {
+ instrument.BeforeRequest(req, "connector.sync_job_error")
+ if reader := instrument.RecordRequestBody(ctx, "connector.sync_job_error", r.Body); reader != nil {
req.Body = reader
}
}
res, err := transport.Perform(req)
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.AfterRequest(req, "elasticsearch", "connector_sync_job.error")
+ instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_error")
}
if err != nil {
if instrument, ok := r.instrument.(Instrumentation); ok {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_get.go
similarity index 95%
rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.get.go
rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_get.go
index 88cea85578..17f69db128 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_get.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -75,7 +75,7 @@ func (r ConnectorSyncJobGetRequest) Do(providedCtx context.Context, transport Tr
)
if instrument, ok := r.instrument.(Instrumentation); ok {
- ctx = instrument.Start(providedCtx, "connector_sync_job.get")
+ ctx = instrument.Start(providedCtx, "connector.sync_job_get")
defer instrument.Close(ctx)
}
if ctx == nil {
@@ -147,11 +147,11 @@ func (r ConnectorSyncJobGetRequest) Do(providedCtx context.Context, transport Tr
}
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.BeforeRequest(req, "connector_sync_job.get")
+ instrument.BeforeRequest(req, "connector.sync_job_get")
}
res, err := transport.Perform(req)
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.AfterRequest(req, "elasticsearch", "connector_sync_job.get")
+ instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_get")
}
if err != nil {
if instrument, ok := r.instrument.(Instrumentation); ok {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.list.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_list.go
similarity index 96%
rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.list.go
rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_list.go
index e36942924b..0b65a2f242 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.list.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_list.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -80,7 +80,7 @@ func (r ConnectorSyncJobListRequest) Do(providedCtx context.Context, transport T
)
if instrument, ok := r.instrument.(Instrumentation); ok {
- ctx = instrument.Start(providedCtx, "connector_sync_job.list")
+ ctx = instrument.Start(providedCtx, "connector.sync_job_list")
defer instrument.Close(ctx)
}
if ctx == nil {
@@ -164,11 +164,11 @@ func (r ConnectorSyncJobListRequest) Do(providedCtx context.Context, transport T
}
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.BeforeRequest(req, "connector_sync_job.list")
+ instrument.BeforeRequest(req, "connector.sync_job_list")
}
res, err := transport.Perform(req)
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.AfterRequest(req, "elasticsearch", "connector_sync_job.list")
+ instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_list")
}
if err != nil {
if instrument, ok := r.instrument.(Instrumentation); ok {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.post.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_post.go
similarity index 93%
rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.post.go
rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_post.go
index fd8bdeaccf..4b0d133b52 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.post.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_post.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -76,7 +76,7 @@ func (r ConnectorSyncJobPostRequest) Do(providedCtx context.Context, transport T
)
if instrument, ok := r.instrument.(Instrumentation); ok {
- ctx = instrument.Start(providedCtx, "connector_sync_job.post")
+ ctx = instrument.Start(providedCtx, "connector.sync_job_post")
defer instrument.Close(ctx)
}
if ctx == nil {
@@ -144,14 +144,14 @@ func (r ConnectorSyncJobPostRequest) Do(providedCtx context.Context, transport T
}
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.BeforeRequest(req, "connector_sync_job.post")
- if reader := instrument.RecordRequestBody(ctx, "connector_sync_job.post", r.Body); reader != nil {
+ instrument.BeforeRequest(req, "connector.sync_job_post")
+ if reader := instrument.RecordRequestBody(ctx, "connector.sync_job_post", r.Body); reader != nil {
req.Body = reader
}
}
res, err := transport.Perform(req)
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.AfterRequest(req, "elasticsearch", "connector_sync_job.post")
+ instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_post")
}
if err != nil {
if instrument, ok := r.instrument.(Instrumentation); ok {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.update_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_update_stats.go
similarity index 94%
rename from vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.update_stats.go
rename to vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_update_stats.go
index 6bf8d9b5e3..7a9ff81f34 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector_sync_job.update_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.sync_job_update_stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -78,7 +78,7 @@ func (r ConnectorSyncJobUpdateStatsRequest) Do(providedCtx context.Context, tran
)
if instrument, ok := r.instrument.(Instrumentation); ok {
- ctx = instrument.Start(providedCtx, "connector_sync_job.update_stats")
+ ctx = instrument.Start(providedCtx, "connector.sync_job_update_stats")
defer instrument.Close(ctx)
}
if ctx == nil {
@@ -156,14 +156,14 @@ func (r ConnectorSyncJobUpdateStatsRequest) Do(providedCtx context.Context, tran
}
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.BeforeRequest(req, "connector_sync_job.update_stats")
- if reader := instrument.RecordRequestBody(ctx, "connector_sync_job.update_stats", r.Body); reader != nil {
+ instrument.BeforeRequest(req, "connector.sync_job_update_stats")
+ if reader := instrument.RecordRequestBody(ctx, "connector.sync_job_update_stats", r.Body); reader != nil {
req.Body = reader
}
}
res, err := transport.Perform(req)
if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.AfterRequest(req, "elasticsearch", "connector_sync_job.update_stats")
+ instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_update_stats")
}
if err != nil {
if instrument, ok := r.instrument.(Instrumentation); ok {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_active_filtering.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_active_filtering.go
new file mode 100644
index 0000000000..0d2464eb5e
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_active_filtering.go
@@ -0,0 +1,229 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+//
+// Code generated from specification version 8.14.0: DO NOT EDIT
+
+package esapi
+
+import (
+ "context"
+ "net/http"
+ "strings"
+)
+
+func newConnectorUpdateActiveFilteringFunc(t Transport) ConnectorUpdateActiveFiltering {
+ return func(connector_id string, o ...func(*ConnectorUpdateActiveFilteringRequest)) (*Response, error) {
+ var r = ConnectorUpdateActiveFilteringRequest{ConnectorID: connector_id}
+ for _, f := range o {
+ f(&r)
+ }
+
+ if transport, ok := t.(Instrumented); ok {
+ r.instrument = transport.InstrumentationEnabled()
+ }
+
+ return r.Do(r.ctx, t)
+ }
+}
+
+// ----- API Definition -------------------------------------------------------
+
+// ConnectorUpdateActiveFiltering activates the draft filtering rules if they are in a validated state.
+//
+// This API is experimental.
+//
+// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/update-connector-filtering-api.html.
+type ConnectorUpdateActiveFiltering func(connector_id string, o ...func(*ConnectorUpdateActiveFilteringRequest)) (*Response, error)
+
+// ConnectorUpdateActiveFilteringRequest configures the Connector Update Active Filtering API request.
+type ConnectorUpdateActiveFilteringRequest struct {
+ ConnectorID string
+
+ Pretty bool
+ Human bool
+ ErrorTrace bool
+ FilterPath []string
+
+ Header http.Header
+
+ ctx context.Context
+
+ instrument Instrumentation
+}
+
+// Do executes the request and returns response or error.
+func (r ConnectorUpdateActiveFilteringRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) {
+ var (
+ method string
+ path strings.Builder
+ params map[string]string
+ ctx context.Context
+ )
+
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ ctx = instrument.Start(providedCtx, "connector.update_active_filtering")
+ defer instrument.Close(ctx)
+ }
+ if ctx == nil {
+ ctx = providedCtx
+ }
+
+ method = "PUT"
+
+ path.Grow(7 + 1 + len("_connector") + 1 + len(r.ConnectorID) + 1 + len("_filtering") + 1 + len("_activate"))
+ path.WriteString("http://")
+ path.WriteString("/")
+ path.WriteString("_connector")
+ path.WriteString("/")
+ path.WriteString(r.ConnectorID)
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID)
+ }
+ path.WriteString("/")
+ path.WriteString("_filtering")
+ path.WriteString("/")
+ path.WriteString("_activate")
+
+ params = make(map[string]string)
+
+ if r.Pretty {
+ params["pretty"] = "true"
+ }
+
+ if r.Human {
+ params["human"] = "true"
+ }
+
+ if r.ErrorTrace {
+ params["error_trace"] = "true"
+ }
+
+ if len(r.FilterPath) > 0 {
+ params["filter_path"] = strings.Join(r.FilterPath, ",")
+ }
+
+ req, err := newRequest(method, path.String(), nil)
+ if err != nil {
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return nil, err
+ }
+
+ if len(params) > 0 {
+ q := req.URL.Query()
+ for k, v := range params {
+ q.Set(k, v)
+ }
+ req.URL.RawQuery = q.Encode()
+ }
+
+ if len(r.Header) > 0 {
+ if len(req.Header) == 0 {
+ req.Header = r.Header
+ } else {
+ for k, vv := range r.Header {
+ for _, v := range vv {
+ req.Header.Add(k, v)
+ }
+ }
+ }
+ }
+
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.BeforeRequest(req, "connector.update_active_filtering")
+ }
+ res, err := transport.Perform(req)
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.AfterRequest(req, "elasticsearch", "connector.update_active_filtering")
+ }
+ if err != nil {
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return nil, err
+ }
+
+ response := Response{
+ StatusCode: res.StatusCode,
+ Body: res.Body,
+ Header: res.Header,
+ }
+
+ return &response, nil
+}
+
+// WithContext sets the request context.
+func (f ConnectorUpdateActiveFiltering) WithContext(v context.Context) func(*ConnectorUpdateActiveFilteringRequest) {
+ return func(r *ConnectorUpdateActiveFilteringRequest) {
+ r.ctx = v
+ }
+}
+
+// WithPretty makes the response body pretty-printed.
+func (f ConnectorUpdateActiveFiltering) WithPretty() func(*ConnectorUpdateActiveFilteringRequest) {
+ return func(r *ConnectorUpdateActiveFilteringRequest) {
+ r.Pretty = true
+ }
+}
+
+// WithHuman makes statistical values human-readable.
+func (f ConnectorUpdateActiveFiltering) WithHuman() func(*ConnectorUpdateActiveFilteringRequest) {
+ return func(r *ConnectorUpdateActiveFilteringRequest) {
+ r.Human = true
+ }
+}
+
+// WithErrorTrace includes the stack trace for errors in the response body.
+func (f ConnectorUpdateActiveFiltering) WithErrorTrace() func(*ConnectorUpdateActiveFilteringRequest) {
+ return func(r *ConnectorUpdateActiveFilteringRequest) {
+ r.ErrorTrace = true
+ }
+}
+
+// WithFilterPath filters the properties of the response body.
+func (f ConnectorUpdateActiveFiltering) WithFilterPath(v ...string) func(*ConnectorUpdateActiveFilteringRequest) {
+ return func(r *ConnectorUpdateActiveFilteringRequest) {
+ r.FilterPath = v
+ }
+}
+
+// WithHeader adds the headers to the HTTP request.
+func (f ConnectorUpdateActiveFiltering) WithHeader(h map[string]string) func(*ConnectorUpdateActiveFilteringRequest) {
+ return func(r *ConnectorUpdateActiveFilteringRequest) {
+ if r.Header == nil {
+ r.Header = make(http.Header)
+ }
+ for k, v := range h {
+ r.Header.Add(k, v)
+ }
+ }
+}
+
+// WithOpaqueID adds the X-Opaque-Id header to the HTTP request.
+func (f ConnectorUpdateActiveFiltering) WithOpaqueID(s string) func(*ConnectorUpdateActiveFilteringRequest) {
+ return func(r *ConnectorUpdateActiveFilteringRequest) {
+ if r.Header == nil {
+ r.Header = make(http.Header)
+ }
+ r.Header.Set("X-Opaque-Id", s)
+ }
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_api_key_id.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_api_key_id.go
index 376394a6a1..eb9418703e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_api_key_id.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_api_key_id.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_configuration.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_configuration.go
index 3abee34f34..a3ee023fbf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_configuration.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_configuration.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_error.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_error.go
index d3b1ed131a..a37abbdaa8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_error.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_error.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_filtering.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_filtering.go
index 1b722b0392..e8074202d9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_filtering.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_filtering.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_filtering_validation.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_filtering_validation.go
new file mode 100644
index 0000000000..73dd11f59a
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_filtering_validation.go
@@ -0,0 +1,239 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+//
+// Code generated from specification version 8.14.0: DO NOT EDIT
+
+package esapi
+
+import (
+ "context"
+ "io"
+ "net/http"
+ "strings"
+)
+
+func newConnectorUpdateFilteringValidationFunc(t Transport) ConnectorUpdateFilteringValidation {
+ return func(body io.Reader, connector_id string, o ...func(*ConnectorUpdateFilteringValidationRequest)) (*Response, error) {
+ var r = ConnectorUpdateFilteringValidationRequest{Body: body, ConnectorID: connector_id}
+ for _, f := range o {
+ f(&r)
+ }
+
+ if transport, ok := t.(Instrumented); ok {
+ r.instrument = transport.InstrumentationEnabled()
+ }
+
+ return r.Do(r.ctx, t)
+ }
+}
+
+// ----- API Definition -------------------------------------------------------
+
+// ConnectorUpdateFilteringValidation updates the validation info of the draft filtering rules.
+//
+// This API is experimental.
+//
+// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/update-connector-filtering-api.html.
+type ConnectorUpdateFilteringValidation func(body io.Reader, connector_id string, o ...func(*ConnectorUpdateFilteringValidationRequest)) (*Response, error)
+
+// ConnectorUpdateFilteringValidationRequest configures the Connector Update Filtering Validation API request.
+type ConnectorUpdateFilteringValidationRequest struct {
+ Body io.Reader
+
+ ConnectorID string
+
+ Pretty bool
+ Human bool
+ ErrorTrace bool
+ FilterPath []string
+
+ Header http.Header
+
+ ctx context.Context
+
+ instrument Instrumentation
+}
+
+// Do executes the request and returns response or error.
+func (r ConnectorUpdateFilteringValidationRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) {
+ var (
+ method string
+ path strings.Builder
+ params map[string]string
+ ctx context.Context
+ )
+
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ ctx = instrument.Start(providedCtx, "connector.update_filtering_validation")
+ defer instrument.Close(ctx)
+ }
+ if ctx == nil {
+ ctx = providedCtx
+ }
+
+ method = "PUT"
+
+ path.Grow(7 + 1 + len("_connector") + 1 + len(r.ConnectorID) + 1 + len("_filtering") + 1 + len("_validation"))
+ path.WriteString("http://")
+ path.WriteString("/")
+ path.WriteString("_connector")
+ path.WriteString("/")
+ path.WriteString(r.ConnectorID)
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID)
+ }
+ path.WriteString("/")
+ path.WriteString("_filtering")
+ path.WriteString("/")
+ path.WriteString("_validation")
+
+ params = make(map[string]string)
+
+ if r.Pretty {
+ params["pretty"] = "true"
+ }
+
+ if r.Human {
+ params["human"] = "true"
+ }
+
+ if r.ErrorTrace {
+ params["error_trace"] = "true"
+ }
+
+ if len(r.FilterPath) > 0 {
+ params["filter_path"] = strings.Join(r.FilterPath, ",")
+ }
+
+ req, err := newRequest(method, path.String(), r.Body)
+ if err != nil {
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return nil, err
+ }
+
+ if len(params) > 0 {
+ q := req.URL.Query()
+ for k, v := range params {
+ q.Set(k, v)
+ }
+ req.URL.RawQuery = q.Encode()
+ }
+
+ if len(r.Header) > 0 {
+ if len(req.Header) == 0 {
+ req.Header = r.Header
+ } else {
+ for k, vv := range r.Header {
+ for _, v := range vv {
+ req.Header.Add(k, v)
+ }
+ }
+ }
+ }
+
+ if r.Body != nil && req.Header.Get(headerContentType) == "" {
+ req.Header[headerContentType] = headerContentTypeJSON
+ }
+
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.BeforeRequest(req, "connector.update_filtering_validation")
+ if reader := instrument.RecordRequestBody(ctx, "connector.update_filtering_validation", r.Body); reader != nil {
+ req.Body = reader
+ }
+ }
+ res, err := transport.Perform(req)
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.AfterRequest(req, "elasticsearch", "connector.update_filtering_validation")
+ }
+ if err != nil {
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return nil, err
+ }
+
+ response := Response{
+ StatusCode: res.StatusCode,
+ Body: res.Body,
+ Header: res.Header,
+ }
+
+ return &response, nil
+}
+
+// WithContext sets the request context.
+func (f ConnectorUpdateFilteringValidation) WithContext(v context.Context) func(*ConnectorUpdateFilteringValidationRequest) {
+ return func(r *ConnectorUpdateFilteringValidationRequest) {
+ r.ctx = v
+ }
+}
+
+// WithPretty makes the response body pretty-printed.
+func (f ConnectorUpdateFilteringValidation) WithPretty() func(*ConnectorUpdateFilteringValidationRequest) {
+ return func(r *ConnectorUpdateFilteringValidationRequest) {
+ r.Pretty = true
+ }
+}
+
+// WithHuman makes statistical values human-readable.
+func (f ConnectorUpdateFilteringValidation) WithHuman() func(*ConnectorUpdateFilteringValidationRequest) {
+ return func(r *ConnectorUpdateFilteringValidationRequest) {
+ r.Human = true
+ }
+}
+
+// WithErrorTrace includes the stack trace for errors in the response body.
+func (f ConnectorUpdateFilteringValidation) WithErrorTrace() func(*ConnectorUpdateFilteringValidationRequest) {
+ return func(r *ConnectorUpdateFilteringValidationRequest) {
+ r.ErrorTrace = true
+ }
+}
+
+// WithFilterPath filters the properties of the response body.
+func (f ConnectorUpdateFilteringValidation) WithFilterPath(v ...string) func(*ConnectorUpdateFilteringValidationRequest) {
+ return func(r *ConnectorUpdateFilteringValidationRequest) {
+ r.FilterPath = v
+ }
+}
+
+// WithHeader adds the headers to the HTTP request.
+func (f ConnectorUpdateFilteringValidation) WithHeader(h map[string]string) func(*ConnectorUpdateFilteringValidationRequest) {
+ return func(r *ConnectorUpdateFilteringValidationRequest) {
+ if r.Header == nil {
+ r.Header = make(http.Header)
+ }
+ for k, v := range h {
+ r.Header.Add(k, v)
+ }
+ }
+}
+
+// WithOpaqueID adds the X-Opaque-Id header to the HTTP request.
+func (f ConnectorUpdateFilteringValidation) WithOpaqueID(s string) func(*ConnectorUpdateFilteringValidationRequest) {
+ return func(r *ConnectorUpdateFilteringValidationRequest) {
+ if r.Header == nil {
+ r.Header = make(http.Header)
+ }
+ r.Header.Set("X-Opaque-Id", s)
+ }
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_index_name.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_index_name.go
index 29ea105d8c..7855c3eb78 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_index_name.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_index_name.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_name.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_name.go
index 4c12f86a70..01c770ff03 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_name.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_name.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_native.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_native.go
index e332a44201..914024c950 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_native.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_native.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_pipeline.go
index 64e9e5290d..8c565a8a14 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_pipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_pipeline.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_scheduling.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_scheduling.go
index 6fe4de8351..dba1f573f1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_scheduling.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_scheduling.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_service_type.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_service_type.go
index 9b6e637b09..d0d0abc2d1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_service_type.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_service_type.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_status.go
index ecb6118bd2..deb3fe0837 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.connector.update_status.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.count.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.count.go
index 9e567284af..c4fbbd349c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.count.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.count.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.create.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.create.go
index ca1f7e8254..8520c24906 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.create.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.create.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.dangling_indices.delete_dangling_index.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.dangling_indices.delete_dangling_index.go
index 2c1acdd8e3..73ae365a64 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.dangling_indices.delete_dangling_index.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.dangling_indices.delete_dangling_index.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.dangling_indices.import_dangling_index.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.dangling_indices.import_dangling_index.go
index 31072bbe79..b3281b924f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.dangling_indices.import_dangling_index.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.dangling_indices.import_dangling_index.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.dangling_indices.list_dangling_indices.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.dangling_indices.list_dangling_indices.go
index 8cc059216c..381f183118 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.dangling_indices.list_dangling_indices.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.dangling_indices.list_dangling_indices.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete.go
index 1a11349fd6..afe2be5b9c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete_by_query.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete_by_query.go
index 0aa684ce90..7119786507 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete_by_query.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete_by_query.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete_by_query_rethrottle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete_by_query_rethrottle.go
index 758f1f9840..4e769033dc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete_by_query_rethrottle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete_by_query_rethrottle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete_script.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete_script.go
index 1dfe683fb8..5959779247 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete_script.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.delete_script.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.exists.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.exists.go
index 775db288ea..1473fba103 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.exists.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.exists.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.exists_source.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.exists_source.go
index 6199e0a2c4..04486c912a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.exists_source.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.exists_source.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.explain.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.explain.go
index f8c12dc003..ebec6fce29 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.explain.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.explain.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.features.get_features.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.features.get_features.go
index de383b75d8..955901cbd5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.features.get_features.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.features.get_features.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.features.reset_features.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.features.reset_features.go
index 6d782731cb..2f59a56acc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.features.reset_features.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.features.reset_features.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.field_caps.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.field_caps.go
index bd419ce45b..8844d94f80 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.field_caps.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.field_caps.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.delete_secret.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.delete_secret.go
index 1782261903..ea600c05a2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.delete_secret.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.delete_secret.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.get_secret.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.get_secret.go
index 2fec1b0aa9..9dd92c0bfe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.get_secret.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.get_secret.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.global_checkpoints.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.global_checkpoints.go
index ef97032249..5def5ced62 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.global_checkpoints.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.global_checkpoints.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.msearch.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.msearch.go
index 5be66a9185..8b6e0af20d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.msearch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.msearch.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.post_secret.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.post_secret.go
index b6bd1fee71..318ec212cb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.post_secret.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.post_secret.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.search.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.search.go
index c19c00db50..d562518cd2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.search.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.fleet.search.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get.go
index 58bf5a4e8c..639a90796b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_script.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_script.go
index 86e107ade9..73c867e7ae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_script.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_script.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_script_context.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_script_context.go
index 6d188e3b86..d684c48ec0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_script_context.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_script_context.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_script_languages.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_script_languages.go
index 5cd15422af..1ee8de6b2d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_script_languages.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_script_languages.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_source.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_source.go
index 097e2f0684..819e1bf4ce 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_source.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.get_source.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.health_report.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.health_report.go
index 44a642fb44..ecf7962a89 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.health_report.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.health_report.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.index.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.index.go
index 6e55da77a4..346b77bf70 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.index.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.index.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.add_block.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.add_block.go
index 49cb4c8d3e..784364cbff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.add_block.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.add_block.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.analyze.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.analyze.go
index 878938ce37..19076d3115 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.analyze.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.analyze.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.clear_cache.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.clear_cache.go
index 8ddb0d0340..f16d9baa25 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.clear_cache.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.clear_cache.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.clone.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.clone.go
index 9a08bcf61e..7e8e39cad4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.clone.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.clone.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.close.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.close.go
index 26ca200fde..80c483f390 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.close.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.close.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.create.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.create.go
index 36d2f6c7bb..abc47fec55 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.create.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.create.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete.go
index be07756c84..f7a6e28153 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_alias.go
index 0e2b9c8e3f..5261165c38 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_alias.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_alias.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_data_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_data_lifecycle.go
index 65c48baea0..03056e3d8d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_data_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_data_lifecycle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_index_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_index_template.go
index 74beee5aa2..66f7eaebcf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_index_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_index_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_template.go
index a2cc8a01f9..8ce98d4f4d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.delete_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.disk_usage.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.disk_usage.go
index 4cd91543ae..5797aefa64 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.disk_usage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.disk_usage.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.downsample.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.downsample.go
index b84491f438..ab4027e7a2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.downsample.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.downsample.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists.go
index 62b8c6b371..1b4a9aefad 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists_alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists_alias.go
index a28c13089f..4687d76b1b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists_alias.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists_alias.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists_index_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists_index_template.go
index 7c88cbbabf..9648c333dd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists_index_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists_index_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists_template.go
index 8e91db8dac..bfb1b66ced 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.exists_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.explain_data_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.explain_data_lifecycle.go
index 3cc537019c..3db5673812 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.explain_data_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.explain_data_lifecycle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.field_usage_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.field_usage_stats.go
index cbc0eea69c..ebd34f8707 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.field_usage_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.field_usage_stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.flush.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.flush.go
index 850708275a..7035a694c3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.flush.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.flush.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.forcemerge.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.forcemerge.go
index 389c729a32..33a931ff87 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.forcemerge.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.forcemerge.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get.go
index afb725ca01..d3c18ccde2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_alias.go
index 9864a6838b..b5814c9fb5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_alias.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_alias.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_data_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_data_lifecycle.go
index 607dcdb322..8210a8a697 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_data_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_data_lifecycle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_field_mapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_field_mapping.go
index e8e518adb5..140a89be9e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_field_mapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_field_mapping.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_index_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_index_template.go
index ba976d18fd..57af125158 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_index_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_index_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_mapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_mapping.go
index 0c6e7e043b..9de47c3f1f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_mapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_mapping.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_settings.go
index acd61fc83e..7ee9135489 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_settings.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_template.go
index 06815d31a0..f3642e04e8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.get_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.modify_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.modify_data_stream.go
index a8eb9afe81..8e3a5bdeb9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.modify_data_stream.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.modify_data_stream.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.open.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.open.go
index 95e3dca674..58880388f5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.open.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.open.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_alias.go
index a927c1977f..461d19f5c8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_alias.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_alias.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_data_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_data_lifecycle.go
index 636835bf90..efbe8b33c5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_data_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_data_lifecycle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_index_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_index_template.go
index b16f0612ff..2095f86639 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_index_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_index_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_mapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_mapping.go
index e92e48e39b..3caa804b0b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_mapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_mapping.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_settings.go
index a609942d64..2f709fa3ac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_settings.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_template.go
index 9448bfa51d..7fe664efc1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.put_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.recovery.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.recovery.go
index 38c76a9669..47c98c089f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.recovery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.recovery.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.refresh.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.refresh.go
index ec44149f05..c4d0b52001 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.refresh.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.refresh.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.resolve_cluster.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.resolve_cluster.go
index 3eedaab685..865f508d50 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.resolve_cluster.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.resolve_cluster.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.resolve_index.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.resolve_index.go
index da9e7dee26..b7b7cee33c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.resolve_index.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.resolve_index.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.rollover.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.rollover.go
index b62128f84b..f07a017a3a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.rollover.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.rollover.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -61,6 +61,7 @@ type IndicesRolloverRequest struct {
DryRun *bool
Lazy *bool
MasterTimeout time.Duration
+ TargetFailureStore *bool
Timeout time.Duration
WaitForActiveShards string
@@ -126,6 +127,10 @@ func (r IndicesRolloverRequest) Do(providedCtx context.Context, transport Transp
params["master_timeout"] = formatDuration(r.MasterTimeout)
}
+ if r.TargetFailureStore != nil {
+ params["target_failure_store"] = strconv.FormatBool(*r.TargetFailureStore)
+ }
+
if r.Timeout != 0 {
params["timeout"] = formatDuration(r.Timeout)
}
@@ -254,6 +259,13 @@ func (f IndicesRollover) WithMasterTimeout(v time.Duration) func(*IndicesRollove
}
}
+// WithTargetFailureStore - if set to true, the rollover action will be applied on the failure store of the data stream..
+func (f IndicesRollover) WithTargetFailureStore(v bool) func(*IndicesRolloverRequest) {
+ return func(r *IndicesRolloverRequest) {
+ r.TargetFailureStore = &v
+ }
+}
+
// WithTimeout - explicit operation timeout.
func (f IndicesRollover) WithTimeout(v time.Duration) func(*IndicesRolloverRequest) {
return func(r *IndicesRolloverRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.segments.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.segments.go
index ab3b2d9509..7a4c641dc0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.segments.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.segments.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.shard_stores.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.shard_stores.go
index 214c86da7d..adf62b94c3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.shard_stores.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.shard_stores.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.shrink.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.shrink.go
index 92ac74e2ad..58140aaf18 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.shrink.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.shrink.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.simulate_index_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.simulate_index_template.go
index fbd21d787b..ed040b8fbf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.simulate_index_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.simulate_index_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.simulate_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.simulate_template.go
index 6691bddcf6..243eb758ac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.simulate_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.simulate_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.split.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.split.go
index 70f5fb2e01..a64e10c286 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.split.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.split.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.stats.go
index ef46f06ee5..14db7ae4ff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.update_aliases.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.update_aliases.go
index cbcd4e5c25..962b263b95 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.update_aliases.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.update_aliases.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.validate_query.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.validate_query.go
index 96733bb1f6..4515a90713 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.validate_query.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.indices.validate_query.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.delete_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.delete_model.go
index 0ebca98823..297d45d4e2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.delete_model.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.delete_model.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.get_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.get_model.go
index 3439210391..653c50f916 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.get_model.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.get_model.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -26,8 +26,8 @@ import (
)
func newInferenceGetModelFunc(t Transport) InferenceGetModel {
- return func(inference_id string, o ...func(*InferenceGetModelRequest)) (*Response, error) {
- var r = InferenceGetModelRequest{InferenceID: inference_id}
+ return func(o ...func(*InferenceGetModelRequest)) (*Response, error) {
+ var r = InferenceGetModelRequest{}
for _, f := range o {
f(&r)
}
@@ -47,7 +47,7 @@ func newInferenceGetModelFunc(t Transport) InferenceGetModel {
// This API is experimental.
//
// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/get-inference-api.html.
-type InferenceGetModel func(inference_id string, o ...func(*InferenceGetModelRequest)) (*Response, error)
+type InferenceGetModel func(o ...func(*InferenceGetModelRequest)) (*Response, error)
// InferenceGetModelRequest configures the Inference Get Model API request.
type InferenceGetModelRequest struct {
@@ -96,10 +96,12 @@ func (r InferenceGetModelRequest) Do(providedCtx context.Context, transport Tran
instrument.RecordPathPart(ctx, "task_type", r.TaskType)
}
}
- path.WriteString("/")
- path.WriteString(r.InferenceID)
- if instrument, ok := r.instrument.(Instrumentation); ok {
- instrument.RecordPathPart(ctx, "inference_id", r.InferenceID)
+ if r.InferenceID != "" {
+ path.WriteString("/")
+ path.WriteString(r.InferenceID)
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.RecordPathPart(ctx, "inference_id", r.InferenceID)
+ }
}
params = make(map[string]string)
@@ -182,6 +184,13 @@ func (f InferenceGetModel) WithContext(v context.Context) func(*InferenceGetMode
}
}
+// WithInferenceID - the inference ID.
+func (f InferenceGetModel) WithInferenceID(v string) func(*InferenceGetModelRequest) {
+ return func(r *InferenceGetModelRequest) {
+ r.InferenceID = v
+ }
+}
+
// WithTaskType - the task type.
func (f InferenceGetModel) WithTaskType(v string) func(*InferenceGetModelRequest) {
return func(r *InferenceGetModelRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.inference.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.inference.go
index bdfc1f7627..6ab5f93139 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.inference.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.inference.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.put_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.put_model.go
index c8740a9a90..81de3264df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.put_model.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.inference.put_model.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.info.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.info.go
index 7fb5be81b6..fe78275a6d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.info.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_pipeline.go
index 0fa500bda9..e280a020ee 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_pipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.delete_pipeline.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.geo_ip_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.geo_ip_stats.go
index 5e205f8ae1..db2943056a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.geo_ip_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.geo_ip_stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_pipeline.go
index 0586b89276..9bc9ab42d5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_pipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.get_pipeline.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.processor_grok.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.processor_grok.go
index 4128be7b2c..87e72b6b9e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.processor_grok.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.processor_grok.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_pipeline.go
index 0c3152de90..e5ebe9791b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_pipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.put_pipeline.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.simulate.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.simulate.go
index b60791583e..f5c393aa49 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.simulate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ingest.simulate.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.knn_search.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.knn_search.go
index 296519a8ef..8dce408276 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.knn_search.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.knn_search.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.mget.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.mget.go
index 83785dcba8..acd493cd52 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.mget.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.mget.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.msearch.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.msearch.go
index 142b2c4a67..9a6292a020 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.msearch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.msearch.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.msearch_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.msearch_template.go
index 9f7597448b..ebc6118fcf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.msearch_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.msearch_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.mtermvectors.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.mtermvectors.go
index 6db6e4bc57..e7f97eaefc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.mtermvectors.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.mtermvectors.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.clear_repositories_metering_archive.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.clear_repositories_metering_archive.go
index 74c31f43d1..76c90ee7a4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.clear_repositories_metering_archive.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.clear_repositories_metering_archive.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.get_repositories_metering_info.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.get_repositories_metering_info.go
index bc3a607def..1f5c8241a8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.get_repositories_metering_info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.get_repositories_metering_info.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.hot_threads.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.hot_threads.go
index d6377f480c..2c9e25730e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.hot_threads.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.hot_threads.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.info.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.info.go
index c670a4fe56..6c8df20983 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.info.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.reload_secure_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.reload_secure_settings.go
index 219f9f1d93..903e2118f3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.reload_secure_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.reload_secure_settings.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.stats.go
index 6e41342047..ca8de33b73 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.usage.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.usage.go
index 145fe6dfbe..fb8a922cca 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.usage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.nodes.usage.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ping.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ping.go
index 41c0202d45..5dbb0be23e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.ping.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.profiling.stacktraces.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.profiling.stacktraces.go
index 357b4113c4..73cce2bbd5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.profiling.stacktraces.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.profiling.stacktraces.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.profiling.status.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.profiling.status.go
index d3f31f246e..fdb2c60002 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.profiling.status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.profiling.status.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.profiling.topn_functions.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.profiling.topn_functions.go
new file mode 100644
index 0000000000..62d80db917
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.profiling.topn_functions.go
@@ -0,0 +1,225 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+//
+// Code generated from specification version 8.14.0: DO NOT EDIT
+
+package esapi
+
+import (
+ "context"
+ "io"
+ "net/http"
+ "strings"
+)
+
+func newProfilingTopnFunctionsFunc(t Transport) ProfilingTopnFunctions {
+ return func(body io.Reader, o ...func(*ProfilingTopnFunctionsRequest)) (*Response, error) {
+ var r = ProfilingTopnFunctionsRequest{Body: body}
+ for _, f := range o {
+ f(&r)
+ }
+
+ if transport, ok := t.(Instrumented); ok {
+ r.instrument = transport.InstrumentationEnabled()
+ }
+
+ return r.Do(r.ctx, t)
+ }
+}
+
+// ----- API Definition -------------------------------------------------------
+
+// ProfilingTopnFunctions extracts a list of topN functions from Universal Profiling.
+//
+// See full documentation at https://www.elastic.co/guide/en/observability/current/universal-profiling.html.
+type ProfilingTopnFunctions func(body io.Reader, o ...func(*ProfilingTopnFunctionsRequest)) (*Response, error)
+
+// ProfilingTopnFunctionsRequest configures the Profiling Topn Functions API request.
+type ProfilingTopnFunctionsRequest struct {
+ Body io.Reader
+
+ Pretty bool
+ Human bool
+ ErrorTrace bool
+ FilterPath []string
+
+ Header http.Header
+
+ ctx context.Context
+
+ instrument Instrumentation
+}
+
+// Do executes the request and returns response or error.
+func (r ProfilingTopnFunctionsRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) {
+ var (
+ method string
+ path strings.Builder
+ params map[string]string
+ ctx context.Context
+ )
+
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ ctx = instrument.Start(providedCtx, "profiling.topn_functions")
+ defer instrument.Close(ctx)
+ }
+ if ctx == nil {
+ ctx = providedCtx
+ }
+
+ method = "POST"
+
+ path.Grow(7 + len("/_profiling/topn/functions"))
+ path.WriteString("http://")
+ path.WriteString("/_profiling/topn/functions")
+
+ params = make(map[string]string)
+
+ if r.Pretty {
+ params["pretty"] = "true"
+ }
+
+ if r.Human {
+ params["human"] = "true"
+ }
+
+ if r.ErrorTrace {
+ params["error_trace"] = "true"
+ }
+
+ if len(r.FilterPath) > 0 {
+ params["filter_path"] = strings.Join(r.FilterPath, ",")
+ }
+
+ req, err := newRequest(method, path.String(), r.Body)
+ if err != nil {
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return nil, err
+ }
+
+ if len(params) > 0 {
+ q := req.URL.Query()
+ for k, v := range params {
+ q.Set(k, v)
+ }
+ req.URL.RawQuery = q.Encode()
+ }
+
+ if len(r.Header) > 0 {
+ if len(req.Header) == 0 {
+ req.Header = r.Header
+ } else {
+ for k, vv := range r.Header {
+ for _, v := range vv {
+ req.Header.Add(k, v)
+ }
+ }
+ }
+ }
+
+ if r.Body != nil && req.Header.Get(headerContentType) == "" {
+ req.Header[headerContentType] = headerContentTypeJSON
+ }
+
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.BeforeRequest(req, "profiling.topn_functions")
+ if reader := instrument.RecordRequestBody(ctx, "profiling.topn_functions", r.Body); reader != nil {
+ req.Body = reader
+ }
+ }
+ res, err := transport.Perform(req)
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.AfterRequest(req, "elasticsearch", "profiling.topn_functions")
+ }
+ if err != nil {
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return nil, err
+ }
+
+ response := Response{
+ StatusCode: res.StatusCode,
+ Body: res.Body,
+ Header: res.Header,
+ }
+
+ return &response, nil
+}
+
+// WithContext sets the request context.
+func (f ProfilingTopnFunctions) WithContext(v context.Context) func(*ProfilingTopnFunctionsRequest) {
+ return func(r *ProfilingTopnFunctionsRequest) {
+ r.ctx = v
+ }
+}
+
+// WithPretty makes the response body pretty-printed.
+func (f ProfilingTopnFunctions) WithPretty() func(*ProfilingTopnFunctionsRequest) {
+ return func(r *ProfilingTopnFunctionsRequest) {
+ r.Pretty = true
+ }
+}
+
+// WithHuman makes statistical values human-readable.
+func (f ProfilingTopnFunctions) WithHuman() func(*ProfilingTopnFunctionsRequest) {
+ return func(r *ProfilingTopnFunctionsRequest) {
+ r.Human = true
+ }
+}
+
+// WithErrorTrace includes the stack trace for errors in the response body.
+func (f ProfilingTopnFunctions) WithErrorTrace() func(*ProfilingTopnFunctionsRequest) {
+ return func(r *ProfilingTopnFunctionsRequest) {
+ r.ErrorTrace = true
+ }
+}
+
+// WithFilterPath filters the properties of the response body.
+func (f ProfilingTopnFunctions) WithFilterPath(v ...string) func(*ProfilingTopnFunctionsRequest) {
+ return func(r *ProfilingTopnFunctionsRequest) {
+ r.FilterPath = v
+ }
+}
+
+// WithHeader adds the headers to the HTTP request.
+func (f ProfilingTopnFunctions) WithHeader(h map[string]string) func(*ProfilingTopnFunctionsRequest) {
+ return func(r *ProfilingTopnFunctionsRequest) {
+ if r.Header == nil {
+ r.Header = make(http.Header)
+ }
+ for k, v := range h {
+ r.Header.Add(k, v)
+ }
+ }
+}
+
+// WithOpaqueID adds the X-Opaque-Id header to the HTTP request.
+func (f ProfilingTopnFunctions) WithOpaqueID(s string) func(*ProfilingTopnFunctionsRequest) {
+ return func(r *ProfilingTopnFunctionsRequest) {
+ if r.Header == nil {
+ r.Header = make(http.Header)
+ }
+ r.Header.Set("X-Opaque-Id", s)
+ }
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.put_script.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.put_script.go
index e175ca903e..e986601720 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.put_script.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.put_script.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.delete.go
index 7c78dc0d58..cd0b8315b2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.delete.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.get.go
index 8a52e2af2e..c14464d2f8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.get.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.list.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.list.go
index be149465de..b59e1a7b7a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.list.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.list.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.put.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.put.go
index a317a7647a..2c010ec77e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.put.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.query_ruleset.put.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.rank_eval.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.rank_eval.go
index 05c36c1fe6..aa71fdd0bd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.rank_eval.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.rank_eval.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.reindex.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.reindex.go
index 00d5e19823..ca485df69d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.reindex.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.reindex.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.reindex_rethrottle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.reindex_rethrottle.go
index f5831acfc9..bedc4e7fd7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.reindex_rethrottle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.reindex_rethrottle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.render_search_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.render_search_template.go
index 4534aabed3..5265423ed3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.render_search_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.render_search_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.scripts_painless_execute.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.scripts_painless_execute.go
index dd23831564..0002f43381 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.scripts_painless_execute.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.scripts_painless_execute.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.scroll.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.scroll.go
index 0b0e388abb..fcf998a2d8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.scroll.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.scroll.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search.go
index a82236e6ae..cd4ba2d7a2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.delete.go
index 53ef1367d7..b0c35dd4eb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.delete.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.delete_behavioral_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.delete_behavioral_analytics.go
index 97089ba805..6a4ade475c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.delete_behavioral_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.delete_behavioral_analytics.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.get.go
index c9c0f6b48b..85a7ebf7d4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.get.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.get_behavioral_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.get_behavioral_analytics.go
index 231a7bd02e..1d2e41fac1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.get_behavioral_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.get_behavioral_analytics.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.list.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.list.go
index 3bcb84b8ea..0ce836b58c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.list.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.list.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.post_behavioral_analytics_event.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.post_behavioral_analytics_event.go
index df676eae69..04fc1a7f9b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.post_behavioral_analytics_event.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.post_behavioral_analytics_event.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.put.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.put.go
index 1ec97af5a7..10e3bced48 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.put.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.put.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.put_behavioral_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.put_behavioral_analytics.go
index 62e2a25642..f2eb52558d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.put_behavioral_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.put_behavioral_analytics.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.render_query.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.render_query.go
index f24af12cf3..617090526e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.render_query.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.render_query.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.search.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.search.go
index c681126489..d6c532001f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.search.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_application.search.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -23,6 +23,7 @@ import (
"context"
"io"
"net/http"
+ "strconv"
"strings"
)
@@ -56,6 +57,8 @@ type SearchApplicationSearchRequest struct {
Name string
+ TypedKeys *bool
+
Pretty bool
Human bool
ErrorTrace bool
@@ -103,6 +106,10 @@ func (r SearchApplicationSearchRequest) Do(providedCtx context.Context, transpor
params = make(map[string]string)
+ if r.TypedKeys != nil {
+ params["typed_keys"] = strconv.FormatBool(*r.TypedKeys)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -195,6 +202,13 @@ func (f SearchApplicationSearch) WithBody(v io.Reader) func(*SearchApplicationSe
}
}
+// WithTypedKeys - specify whether aggregation and suggester names should be prefixed by their respective types in the response.
+func (f SearchApplicationSearch) WithTypedKeys(v bool) func(*SearchApplicationSearchRequest) {
+ return func(r *SearchApplicationSearchRequest) {
+ r.TypedKeys = &v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f SearchApplicationSearch) WithPretty() func(*SearchApplicationSearchRequest) {
return func(r *SearchApplicationSearchRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_mvt.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_mvt.go
index 39cf757213..b29275d930 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_mvt.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_mvt.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_shards.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_shards.go
index e2b6e248b7..7dd05d79bf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_shards.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_shards.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_template.go
index cae6817acd..269583b84b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.search_template.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.shutdown.delete_node.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.shutdown.delete_node.go
index db008e38dd..94db148f13 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.shutdown.delete_node.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.shutdown.delete_node.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.shutdown.get_node.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.shutdown.get_node.go
index 5115407c14..a8ea5cd4ec 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.shutdown.get_node.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.shutdown.get_node.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.shutdown.put_node.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.shutdown.put_node.go
index fbb3663a05..87f6296588 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.shutdown.put_node.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.shutdown.put_node.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.simulate.ingest.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.simulate.ingest.go
index 32035e477b..f0a3c8d417 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.simulate.ingest.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.simulate.ingest.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.cleanup_repository.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.cleanup_repository.go
index fdfe669153..6e99023b90 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.cleanup_repository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.cleanup_repository.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.clone.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.clone.go
index dfd66815fb..cf21219af1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.clone.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.clone.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.create.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.create.go
index b7f530da78..3082947b38 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.create.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.create.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.create_repository.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.create_repository.go
index d8e41a8697..295bc6b545 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.create_repository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.create_repository.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.delete.go
index d6d14f15e2..58f4b2735c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.delete.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.delete_repository.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.delete_repository.go
index 83922f67ba..1c932ec1eb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.delete_repository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.delete_repository.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.get.go
index 51aa40f40e..23db446462 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.get.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.get_repository.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.get_repository.go
index b678f2469e..82c4ed6372 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.get_repository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.get_repository.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.repository_analyze.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.repository_analyze.go
index abe9c63e39..79d876095c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.repository_analyze.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.repository_analyze.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.restore.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.restore.go
index ef0133282e..c402746ed7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.restore.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.restore.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.status.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.status.go
index bf8850a3e1..0844416758 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.status.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.verify_repository.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.verify_repository.go
index 11caf65be9..595ba27141 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.verify_repository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.snapshot.verify_repository.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.delete_synonym.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.delete_synonym.go
index d2e711c00b..828aeb1392 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.delete_synonym.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.delete_synonym.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.delete_synonym_rule.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.delete_synonym_rule.go
index 70723a740b..0eff28028c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.delete_synonym_rule.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.delete_synonym_rule.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.get_synonym.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.get_synonym.go
index bc98003578..2bb42923f3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.get_synonym.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.get_synonym.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.get_synonym_rule.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.get_synonym_rule.go
index 46087374cd..2fce0e4716 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.get_synonym_rule.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.get_synonym_rule.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.get_synonyms_sets.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.get_synonyms_sets.go
index 5c219323ee..eba33df1ee 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.get_synonyms_sets.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.get_synonyms_sets.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.put_synonym.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.put_synonym.go
index 2677d571c3..837b988544 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.put_synonym.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.put_synonym.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.put_synonym_rule.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.put_synonym_rule.go
index 9a99b2f220..bdea3bf69b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.put_synonym_rule.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.synonyms.put_synonym_rule.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.tasks.cancel.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.tasks.cancel.go
index fe79a84c09..002c42f3db 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.tasks.cancel.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.tasks.cancel.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.tasks.get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.tasks.get.go
index eff8174fb4..9e2a12f406 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.tasks.get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.tasks.get.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.tasks.list.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.tasks.list.go
index 3ef1210ba0..6a2da2bfe4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.tasks.list.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.tasks.list.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.terms_enum.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.terms_enum.go
index 5af59d9a75..3d24f409fd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.terms_enum.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.terms_enum.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.termvectors.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.termvectors.go
index 609176750f..221c085706 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.termvectors.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.termvectors.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.update.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.update.go
index 81ef64884d..f1a52fa368 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.update.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.update.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.update_by_query.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.update_by_query.go
index 323211d65c..5eab11fc10 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.update_by_query.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.update_by_query.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.update_by_query_rethrottle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.update_by_query_rethrottle.go
index 9461903db3..b252953860 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.update_by_query_rethrottle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.update_by_query_rethrottle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.delete.go
index a7d648e534..61727ee0e0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.delete.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.get.go
index 81ab979f56..40db490bd7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.get.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.status.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.status.go
index 3fb96ba218..2c3c03229a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.status.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.submit.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.submit.go
index 35a8c6228d..a97f56e5be 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.submit.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.async_search.submit.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.delete_autoscaling_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.delete_autoscaling_policy.go
index 10fcbf63b6..80e1a9da1b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.delete_autoscaling_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.delete_autoscaling_policy.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.get_autoscaling_capacity.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.get_autoscaling_capacity.go
index 1f2c5c20f3..55af74010d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.get_autoscaling_capacity.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.get_autoscaling_capacity.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.get_autoscaling_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.get_autoscaling_policy.go
index a21faed791..b287d76cd5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.get_autoscaling_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.get_autoscaling_policy.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.put_autoscaling_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.put_autoscaling_policy.go
index 403d98dec2..cd8cb4159b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.put_autoscaling_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.autoscaling.put_autoscaling_policy.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_data_frame_analytics.go
index a76464f7fc..752e0bac6b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_data_frame_analytics.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_datafeeds.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_datafeeds.go
index 4fce51a2db..de8dae78a3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_datafeeds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_datafeeds.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_jobs.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_jobs.go
index d9dcdca148..b6703af90b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_jobs.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_jobs.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_trained_models.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_trained_models.go
index 03a70351e8..411ca5bd7d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_trained_models.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.ml_trained_models.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.transforms.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.transforms.go
index 46607bd6d3..1d43f6ad18 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.transforms.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.cat.transforms.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.delete_auto_follow_pattern.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.delete_auto_follow_pattern.go
index f44c1e7139..e2129b8d8a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.delete_auto_follow_pattern.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.delete_auto_follow_pattern.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -23,6 +23,7 @@ import (
"context"
"net/http"
"strings"
+ "time"
)
func newCCRDeleteAutoFollowPatternFunc(t Transport) CCRDeleteAutoFollowPattern {
@@ -51,6 +52,8 @@ type CCRDeleteAutoFollowPattern func(name string, o ...func(*CCRDeleteAutoFollow
type CCRDeleteAutoFollowPatternRequest struct {
Name string
+ MasterTimeout time.Duration
+
Pretty bool
Human bool
ErrorTrace bool
@@ -96,6 +99,10 @@ func (r CCRDeleteAutoFollowPatternRequest) Do(providedCtx context.Context, trans
params = make(map[string]string)
+ if r.MasterTimeout != 0 {
+ params["master_timeout"] = formatDuration(r.MasterTimeout)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -174,6 +181,13 @@ func (f CCRDeleteAutoFollowPattern) WithContext(v context.Context) func(*CCRDele
}
}
+// WithMasterTimeout - explicit operation timeout for connection to master node.
+func (f CCRDeleteAutoFollowPattern) WithMasterTimeout(v time.Duration) func(*CCRDeleteAutoFollowPatternRequest) {
+ return func(r *CCRDeleteAutoFollowPatternRequest) {
+ r.MasterTimeout = v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f CCRDeleteAutoFollowPattern) WithPretty() func(*CCRDeleteAutoFollowPatternRequest) {
return func(r *CCRDeleteAutoFollowPatternRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.follow.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.follow.go
index 2f6eca7381..921d528ba6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.follow.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.follow.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -24,6 +24,7 @@ import (
"io"
"net/http"
"strings"
+ "time"
)
func newCCRFollowFunc(t Transport) CCRFollow {
@@ -54,6 +55,7 @@ type CCRFollowRequest struct {
Body io.Reader
+ MasterTimeout time.Duration
WaitForActiveShards string
Pretty bool
@@ -101,6 +103,10 @@ func (r CCRFollowRequest) Do(providedCtx context.Context, transport Transport) (
params = make(map[string]string)
+ if r.MasterTimeout != 0 {
+ params["master_timeout"] = formatDuration(r.MasterTimeout)
+ }
+
if r.WaitForActiveShards != "" {
params["wait_for_active_shards"] = r.WaitForActiveShards
}
@@ -190,6 +196,13 @@ func (f CCRFollow) WithContext(v context.Context) func(*CCRFollowRequest) {
}
}
+// WithMasterTimeout - explicit operation timeout for connection to master node.
+func (f CCRFollow) WithMasterTimeout(v time.Duration) func(*CCRFollowRequest) {
+ return func(r *CCRFollowRequest) {
+ r.MasterTimeout = v
+ }
+}
+
// WithWaitForActiveShards - sets the number of shard copies that must be active before returning. defaults to 0. set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1).
func (f CCRFollow) WithWaitForActiveShards(v string) func(*CCRFollowRequest) {
return func(r *CCRFollowRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.follow_info.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.follow_info.go
index 4701fd6ab9..241a999afc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.follow_info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.follow_info.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -24,6 +24,7 @@ import (
"errors"
"net/http"
"strings"
+ "time"
)
func newCCRFollowInfoFunc(t Transport) CCRFollowInfo {
@@ -52,6 +53,8 @@ type CCRFollowInfo func(index []string, o ...func(*CCRFollowInfoRequest)) (*Resp
type CCRFollowInfoRequest struct {
Index []string
+ MasterTimeout time.Duration
+
Pretty bool
Human bool
ErrorTrace bool
@@ -101,6 +104,10 @@ func (r CCRFollowInfoRequest) Do(providedCtx context.Context, transport Transpor
params = make(map[string]string)
+ if r.MasterTimeout != 0 {
+ params["master_timeout"] = formatDuration(r.MasterTimeout)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -179,6 +186,13 @@ func (f CCRFollowInfo) WithContext(v context.Context) func(*CCRFollowInfoRequest
}
}
+// WithMasterTimeout - explicit operation timeout for connection to master node.
+func (f CCRFollowInfo) WithMasterTimeout(v time.Duration) func(*CCRFollowInfoRequest) {
+ return func(r *CCRFollowInfoRequest) {
+ r.MasterTimeout = v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f CCRFollowInfo) WithPretty() func(*CCRFollowInfoRequest) {
return func(r *CCRFollowInfoRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.follow_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.follow_stats.go
index 67a08ef07d..448d371f1d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.follow_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.follow_stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -24,6 +24,7 @@ import (
"errors"
"net/http"
"strings"
+ "time"
)
func newCCRFollowStatsFunc(t Transport) CCRFollowStats {
@@ -52,6 +53,8 @@ type CCRFollowStats func(index []string, o ...func(*CCRFollowStatsRequest)) (*Re
type CCRFollowStatsRequest struct {
Index []string
+ Timeout time.Duration
+
Pretty bool
Human bool
ErrorTrace bool
@@ -101,6 +104,10 @@ func (r CCRFollowStatsRequest) Do(providedCtx context.Context, transport Transpo
params = make(map[string]string)
+ if r.Timeout != 0 {
+ params["timeout"] = formatDuration(r.Timeout)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -179,6 +186,13 @@ func (f CCRFollowStats) WithContext(v context.Context) func(*CCRFollowStatsReque
}
}
+// WithTimeout - explicit operation timeout.
+func (f CCRFollowStats) WithTimeout(v time.Duration) func(*CCRFollowStatsRequest) {
+ return func(r *CCRFollowStatsRequest) {
+ r.Timeout = v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f CCRFollowStats) WithPretty() func(*CCRFollowStatsRequest) {
return func(r *CCRFollowStatsRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.forget_follower.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.forget_follower.go
index 7315fb4557..07686b0edf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.forget_follower.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.forget_follower.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -24,6 +24,7 @@ import (
"io"
"net/http"
"strings"
+ "time"
)
func newCCRForgetFollowerFunc(t Transport) CCRForgetFollower {
@@ -54,6 +55,8 @@ type CCRForgetFollowerRequest struct {
Body io.Reader
+ Timeout time.Duration
+
Pretty bool
Human bool
ErrorTrace bool
@@ -99,6 +102,10 @@ func (r CCRForgetFollowerRequest) Do(providedCtx context.Context, transport Tran
params = make(map[string]string)
+ if r.Timeout != 0 {
+ params["timeout"] = formatDuration(r.Timeout)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -184,6 +191,13 @@ func (f CCRForgetFollower) WithContext(v context.Context) func(*CCRForgetFollowe
}
}
+// WithTimeout - explicit operation timeout.
+func (f CCRForgetFollower) WithTimeout(v time.Duration) func(*CCRForgetFollowerRequest) {
+ return func(r *CCRForgetFollowerRequest) {
+ r.Timeout = v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f CCRForgetFollower) WithPretty() func(*CCRForgetFollowerRequest) {
return func(r *CCRForgetFollowerRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.get_auto_follow_pattern.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.get_auto_follow_pattern.go
index a9e71ae8cf..5b3aea6090 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.get_auto_follow_pattern.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.get_auto_follow_pattern.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -23,6 +23,7 @@ import (
"context"
"net/http"
"strings"
+ "time"
)
func newCCRGetAutoFollowPatternFunc(t Transport) CCRGetAutoFollowPattern {
@@ -51,6 +52,8 @@ type CCRGetAutoFollowPattern func(o ...func(*CCRGetAutoFollowPatternRequest)) (*
type CCRGetAutoFollowPatternRequest struct {
Name string
+ MasterTimeout time.Duration
+
Pretty bool
Human bool
ErrorTrace bool
@@ -98,6 +101,10 @@ func (r CCRGetAutoFollowPatternRequest) Do(providedCtx context.Context, transpor
params = make(map[string]string)
+ if r.MasterTimeout != 0 {
+ params["master_timeout"] = formatDuration(r.MasterTimeout)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -183,6 +190,13 @@ func (f CCRGetAutoFollowPattern) WithName(v string) func(*CCRGetAutoFollowPatter
}
}
+// WithMasterTimeout - explicit operation timeout for connection to master node.
+func (f CCRGetAutoFollowPattern) WithMasterTimeout(v time.Duration) func(*CCRGetAutoFollowPatternRequest) {
+ return func(r *CCRGetAutoFollowPatternRequest) {
+ r.MasterTimeout = v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f CCRGetAutoFollowPattern) WithPretty() func(*CCRGetAutoFollowPatternRequest) {
return func(r *CCRGetAutoFollowPatternRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.pause_auto_follow_pattern.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.pause_auto_follow_pattern.go
index 7201434f21..a890699ac3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.pause_auto_follow_pattern.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.pause_auto_follow_pattern.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -23,6 +23,7 @@ import (
"context"
"net/http"
"strings"
+ "time"
)
func newCCRPauseAutoFollowPatternFunc(t Transport) CCRPauseAutoFollowPattern {
@@ -51,6 +52,8 @@ type CCRPauseAutoFollowPattern func(name string, o ...func(*CCRPauseAutoFollowPa
type CCRPauseAutoFollowPatternRequest struct {
Name string
+ MasterTimeout time.Duration
+
Pretty bool
Human bool
ErrorTrace bool
@@ -98,6 +101,10 @@ func (r CCRPauseAutoFollowPatternRequest) Do(providedCtx context.Context, transp
params = make(map[string]string)
+ if r.MasterTimeout != 0 {
+ params["master_timeout"] = formatDuration(r.MasterTimeout)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -176,6 +183,13 @@ func (f CCRPauseAutoFollowPattern) WithContext(v context.Context) func(*CCRPause
}
}
+// WithMasterTimeout - explicit operation timeout for connection to master node.
+func (f CCRPauseAutoFollowPattern) WithMasterTimeout(v time.Duration) func(*CCRPauseAutoFollowPatternRequest) {
+ return func(r *CCRPauseAutoFollowPatternRequest) {
+ r.MasterTimeout = v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f CCRPauseAutoFollowPattern) WithPretty() func(*CCRPauseAutoFollowPatternRequest) {
return func(r *CCRPauseAutoFollowPatternRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.pause_follow.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.pause_follow.go
index 8081d486aa..4fdc72b039 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.pause_follow.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.pause_follow.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -23,6 +23,7 @@ import (
"context"
"net/http"
"strings"
+ "time"
)
func newCCRPauseFollowFunc(t Transport) CCRPauseFollow {
@@ -51,6 +52,8 @@ type CCRPauseFollow func(index string, o ...func(*CCRPauseFollowRequest)) (*Resp
type CCRPauseFollowRequest struct {
Index string
+ MasterTimeout time.Duration
+
Pretty bool
Human bool
ErrorTrace bool
@@ -96,6 +99,10 @@ func (r CCRPauseFollowRequest) Do(providedCtx context.Context, transport Transpo
params = make(map[string]string)
+ if r.MasterTimeout != 0 {
+ params["master_timeout"] = formatDuration(r.MasterTimeout)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -174,6 +181,13 @@ func (f CCRPauseFollow) WithContext(v context.Context) func(*CCRPauseFollowReque
}
}
+// WithMasterTimeout - explicit operation timeout for connection to master node.
+func (f CCRPauseFollow) WithMasterTimeout(v time.Duration) func(*CCRPauseFollowRequest) {
+ return func(r *CCRPauseFollowRequest) {
+ r.MasterTimeout = v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f CCRPauseFollow) WithPretty() func(*CCRPauseFollowRequest) {
return func(r *CCRPauseFollowRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.put_auto_follow_pattern.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.put_auto_follow_pattern.go
index 2f0346c72b..cfffc10a51 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.put_auto_follow_pattern.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.put_auto_follow_pattern.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -24,6 +24,7 @@ import (
"io"
"net/http"
"strings"
+ "time"
)
func newCCRPutAutoFollowPatternFunc(t Transport) CCRPutAutoFollowPattern {
@@ -54,6 +55,8 @@ type CCRPutAutoFollowPatternRequest struct {
Name string
+ MasterTimeout time.Duration
+
Pretty bool
Human bool
ErrorTrace bool
@@ -99,6 +102,10 @@ func (r CCRPutAutoFollowPatternRequest) Do(providedCtx context.Context, transpor
params = make(map[string]string)
+ if r.MasterTimeout != 0 {
+ params["master_timeout"] = formatDuration(r.MasterTimeout)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -184,6 +191,13 @@ func (f CCRPutAutoFollowPattern) WithContext(v context.Context) func(*CCRPutAuto
}
}
+// WithMasterTimeout - explicit operation timeout for connection to master node.
+func (f CCRPutAutoFollowPattern) WithMasterTimeout(v time.Duration) func(*CCRPutAutoFollowPatternRequest) {
+ return func(r *CCRPutAutoFollowPatternRequest) {
+ r.MasterTimeout = v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f CCRPutAutoFollowPattern) WithPretty() func(*CCRPutAutoFollowPatternRequest) {
return func(r *CCRPutAutoFollowPatternRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.resume_auto_follow_pattern.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.resume_auto_follow_pattern.go
index b490bbb59c..575e82b2f1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.resume_auto_follow_pattern.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.resume_auto_follow_pattern.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -23,6 +23,7 @@ import (
"context"
"net/http"
"strings"
+ "time"
)
func newCCRResumeAutoFollowPatternFunc(t Transport) CCRResumeAutoFollowPattern {
@@ -51,6 +52,8 @@ type CCRResumeAutoFollowPattern func(name string, o ...func(*CCRResumeAutoFollow
type CCRResumeAutoFollowPatternRequest struct {
Name string
+ MasterTimeout time.Duration
+
Pretty bool
Human bool
ErrorTrace bool
@@ -98,6 +101,10 @@ func (r CCRResumeAutoFollowPatternRequest) Do(providedCtx context.Context, trans
params = make(map[string]string)
+ if r.MasterTimeout != 0 {
+ params["master_timeout"] = formatDuration(r.MasterTimeout)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -176,6 +183,13 @@ func (f CCRResumeAutoFollowPattern) WithContext(v context.Context) func(*CCRResu
}
}
+// WithMasterTimeout - explicit operation timeout for connection to master node.
+func (f CCRResumeAutoFollowPattern) WithMasterTimeout(v time.Duration) func(*CCRResumeAutoFollowPatternRequest) {
+ return func(r *CCRResumeAutoFollowPatternRequest) {
+ r.MasterTimeout = v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f CCRResumeAutoFollowPattern) WithPretty() func(*CCRResumeAutoFollowPatternRequest) {
return func(r *CCRResumeAutoFollowPatternRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.resume_follow.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.resume_follow.go
index d54a31c170..32ba5ad1db 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.resume_follow.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.resume_follow.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -24,6 +24,7 @@ import (
"io"
"net/http"
"strings"
+ "time"
)
func newCCRResumeFollowFunc(t Transport) CCRResumeFollow {
@@ -54,6 +55,8 @@ type CCRResumeFollowRequest struct {
Body io.Reader
+ MasterTimeout time.Duration
+
Pretty bool
Human bool
ErrorTrace bool
@@ -99,6 +102,10 @@ func (r CCRResumeFollowRequest) Do(providedCtx context.Context, transport Transp
params = make(map[string]string)
+ if r.MasterTimeout != 0 {
+ params["master_timeout"] = formatDuration(r.MasterTimeout)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -191,6 +198,13 @@ func (f CCRResumeFollow) WithBody(v io.Reader) func(*CCRResumeFollowRequest) {
}
}
+// WithMasterTimeout - explicit operation timeout for connection to master node.
+func (f CCRResumeFollow) WithMasterTimeout(v time.Duration) func(*CCRResumeFollowRequest) {
+ return func(r *CCRResumeFollowRequest) {
+ r.MasterTimeout = v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f CCRResumeFollow) WithPretty() func(*CCRResumeFollowRequest) {
return func(r *CCRResumeFollowRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.stats.go
index fbc0317442..5b0e66a78c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -23,6 +23,7 @@ import (
"context"
"net/http"
"strings"
+ "time"
)
func newCCRStatsFunc(t Transport) CCRStats {
@@ -49,6 +50,9 @@ type CCRStats func(o ...func(*CCRStatsRequest)) (*Response, error)
// CCRStatsRequest configures the CCR Stats API request.
type CCRStatsRequest struct {
+ MasterTimeout time.Duration
+ Timeout time.Duration
+
Pretty bool
Human bool
ErrorTrace bool
@@ -86,6 +90,14 @@ func (r CCRStatsRequest) Do(providedCtx context.Context, transport Transport) (*
params = make(map[string]string)
+ if r.MasterTimeout != 0 {
+ params["master_timeout"] = formatDuration(r.MasterTimeout)
+ }
+
+ if r.Timeout != 0 {
+ params["timeout"] = formatDuration(r.Timeout)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -164,6 +176,20 @@ func (f CCRStats) WithContext(v context.Context) func(*CCRStatsRequest) {
}
}
+// WithMasterTimeout - explicit operation timeout for connection to master node.
+func (f CCRStats) WithMasterTimeout(v time.Duration) func(*CCRStatsRequest) {
+ return func(r *CCRStatsRequest) {
+ r.MasterTimeout = v
+ }
+}
+
+// WithTimeout - explicit operation timeout.
+func (f CCRStats) WithTimeout(v time.Duration) func(*CCRStatsRequest) {
+ return func(r *CCRStatsRequest) {
+ r.Timeout = v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f CCRStats) WithPretty() func(*CCRStatsRequest) {
return func(r *CCRStatsRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.unfollow.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.unfollow.go
index 601ec8d5db..6cf64cf703 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.unfollow.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ccr.unfollow.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -23,6 +23,7 @@ import (
"context"
"net/http"
"strings"
+ "time"
)
func newCCRUnfollowFunc(t Transport) CCRUnfollow {
@@ -51,6 +52,8 @@ type CCRUnfollow func(index string, o ...func(*CCRUnfollowRequest)) (*Response,
type CCRUnfollowRequest struct {
Index string
+ MasterTimeout time.Duration
+
Pretty bool
Human bool
ErrorTrace bool
@@ -96,6 +99,10 @@ func (r CCRUnfollowRequest) Do(providedCtx context.Context, transport Transport)
params = make(map[string]string)
+ if r.MasterTimeout != 0 {
+ params["master_timeout"] = formatDuration(r.MasterTimeout)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -174,6 +181,13 @@ func (f CCRUnfollow) WithContext(v context.Context) func(*CCRUnfollowRequest) {
}
}
+// WithMasterTimeout - explicit operation timeout for connection to master node.
+func (f CCRUnfollow) WithMasterTimeout(v time.Duration) func(*CCRUnfollowRequest) {
+ return func(r *CCRUnfollowRequest) {
+ r.MasterTimeout = v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f CCRUnfollow) WithPretty() func(*CCRUnfollowRequest) {
return func(r *CCRUnfollowRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.close_point_in_time.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.close_point_in_time.go
index a388735490..d875fca385 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.close_point_in_time.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.close_point_in_time.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.delete_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.delete_policy.go
index 333e906b8c..ab842a6755 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.delete_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.delete_policy.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.execute_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.execute_policy.go
index e4c538f68c..49bce41da1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.execute_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.execute_policy.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.get_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.get_policy.go
index c37967e123..1401c2f25e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.get_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.get_policy.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.put_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.put_policy.go
index 96e2560cc5..8b1b8b9b3e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.put_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.put_policy.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.stats.go
index 7309d9841e..6283c9afb4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.enrich.stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.delete.go
index 08ff362409..5964d6d21f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.delete.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.get.go
index 5ab8fd3828..b6e2dcd954 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.get.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.get_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.get_status.go
index 0f6996344a..94da2eb425 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.get_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.get_status.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.search.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.search.go
index 0a4a187659..3c2fcc2e7a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.search.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.eql.search.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.esql.async_query.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.esql.async_query.go
index 428b80f0c8..249b65de41 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.esql.async_query.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.esql.async_query.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -46,8 +46,6 @@ func newEsqlAsyncQueryFunc(t Transport) EsqlAsyncQuery {
// EsqlAsyncQuery - Executes an ESQL request asynchronously
//
-// This API is experimental.
-//
// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/esql-async-query-api.html.
type EsqlAsyncQuery func(body io.Reader, o ...func(*EsqlAsyncQueryRequest)) (*Response, error)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.esql.async_query_get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.esql.async_query_get.go
index 4f66683780..e665359cb4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.esql.async_query_get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.esql.async_query_get.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.esql.query.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.esql.query.go
index faba6435ba..9405e20625 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.esql.query.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.esql.query.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -46,8 +46,6 @@ func newEsqlQueryFunc(t Transport) EsqlQuery {
// EsqlQuery - Executes an ESQL request
//
-// This API is experimental.
-//
// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-query-api.html.
type EsqlQuery func(body io.Reader, o ...func(*EsqlQueryRequest)) (*Response, error)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.graph.explore.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.graph.explore.go
index 03c0246953..5596006ec1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.graph.explore.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.graph.explore.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.delete_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.delete_lifecycle.go
index 72f8356c91..85a096dfdc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.delete_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.delete_lifecycle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.explain_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.explain_lifecycle.go
index 10e5020795..057139de7f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.explain_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.explain_lifecycle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.get_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.get_lifecycle.go
index b0990d66e7..7d418e6e42 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.get_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.get_lifecycle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.get_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.get_status.go
index 69358cf8dc..05fb3acf39 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.get_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.get_status.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.migrate_to_data_tiers.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.migrate_to_data_tiers.go
index ba1156effd..a6c8cb684a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.migrate_to_data_tiers.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.migrate_to_data_tiers.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.move_to_step.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.move_to_step.go
index dfb47e6b47..00396f352c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.move_to_step.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.move_to_step.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.put_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.put_lifecycle.go
index 87d3347d8b..4ebe7d3a28 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.put_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.put_lifecycle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.remove_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.remove_policy.go
index 7e9c2b3906..a684146824 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.remove_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.remove_policy.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.retry.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.retry.go
index 2706cc85dc..bb8db09f78 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.retry.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.retry.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.start.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.start.go
index bb853d50f6..7972e2d811 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.start.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.start.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.stop.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.stop.go
index cdbd46e699..83cf478b94 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.stop.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ilm.stop.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.create_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.create_data_stream.go
index 788aafee3a..b45cb5536d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.create_data_stream.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.create_data_stream.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.data_streams_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.data_streams_stats.go
index 9588d920e7..2bc2b029e2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.data_streams_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.data_streams_stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.delete_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.delete_data_stream.go
index 27a631f9cf..e6f88cce4a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.delete_data_stream.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.delete_data_stream.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.get_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.get_data_stream.go
index 6061413898..8a2b70f5c3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.get_data_stream.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.get_data_stream.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.migrate_to_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.migrate_to_data_stream.go
index c67a355e22..306df6f90d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.migrate_to_data_stream.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.migrate_to_data_stream.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.promote_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.promote_data_stream.go
index 55cefca2ec..fc51510728 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.promote_data_stream.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.promote_data_stream.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.reload_search_analyzers.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.reload_search_analyzers.go
index 69dbcf87a6..d471cdd9a3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.reload_search_analyzers.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.reload_search_analyzers.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.unfreeze.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.unfreeze.go
index a6a107fa5e..e50d6d0e19 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.unfreeze.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.indices.unfreeze.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.delete.go
index 43863eee6d..abbb52902c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.delete.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.get.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.get.go
index 45bb79f01e..b13c842000 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.get.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.get_basic_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.get_basic_status.go
index d8aa6f0184..f51563a73a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.get_basic_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.get_basic_status.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.get_trial_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.get_trial_status.go
index 688d3e9def..328cf1bf88 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.get_trial_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.get_trial_status.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.post.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.post.go
index 454b3c84e3..e30f2b2ebf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.post.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.post.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.post_start_basic.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.post_start_basic.go
index cc833ec346..dc2aff5a71 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.post_start_basic.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.post_start_basic.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.post_start_trial.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.post_start_trial.go
index f8795205ca..6bd1eb97fb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.post_start_trial.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.license.post_start_trial.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.logstash.delete_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.logstash.delete_pipeline.go
index fbc421a59d..c7eb3e4849 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.logstash.delete_pipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.logstash.delete_pipeline.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.logstash.get_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.logstash.get_pipeline.go
index f5ea0968b4..eba3e555b9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.logstash.get_pipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.logstash.get_pipeline.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.logstash.put_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.logstash.put_pipeline.go
index 28f3611683..849cfb6490 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.logstash.put_pipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.logstash.put_pipeline.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.migration.deprecations.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.migration.deprecations.go
index d8e62138d7..372967f688 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.migration.deprecations.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.migration.deprecations.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.migration.get_feature_upgrade_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.migration.get_feature_upgrade_status.go
index 363ec6e57b..4b76a1bcbd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.migration.get_feature_upgrade_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.migration.get_feature_upgrade_status.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.migration.post_feature_upgrade.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.migration.post_feature_upgrade.go
index 36d814f424..df06c2cc8f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.migration.post_feature_upgrade.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.migration.post_feature_upgrade.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.clear_trained_model_deployment_cache.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.clear_trained_model_deployment_cache.go
index 8f38440d28..c2ffde1af3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.clear_trained_model_deployment_cache.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.clear_trained_model_deployment_cache.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.close_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.close_job.go
index bb06126916..65537098b1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.close_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.close_job.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_calendar.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_calendar.go
index b8fd8af346..bd090d9c9b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_calendar.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_calendar.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_calendar_event.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_calendar_event.go
index 1a7eae8262..4562aab922 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_calendar_event.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_calendar_event.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_calendar_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_calendar_job.go
index 9430222fc5..63a71a5c7d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_calendar_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_calendar_job.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_data_frame_analytics.go
index a694ce2c11..2723219297 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_data_frame_analytics.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_datafeed.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_datafeed.go
index c11385ec3c..1f2307c4fc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_datafeed.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_datafeed.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_expired_data.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_expired_data.go
index 502ea99a27..ccd4b6dd72 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_expired_data.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_expired_data.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_filter.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_filter.go
index 8565afc4f8..ddfb85c5f3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_filter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_filter.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_forecast.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_forecast.go
index a7288a6568..d7132ad170 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_forecast.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_forecast.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_job.go
index 7e86b299e6..6632c8de52 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_job.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_model_snapshot.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_model_snapshot.go
index 126c245a66..d489e8db05 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_model_snapshot.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_model_snapshot.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_trained_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_trained_model.go
index 20a1d1ae26..1abe93a31b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_trained_model.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_trained_model.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_trained_model_alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_trained_model_alias.go
index d4319d3a0c..3229ae90a8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_trained_model_alias.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.delete_trained_model_alias.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.estimate_model_memory.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.estimate_model_memory.go
index 0a334bf073..7b76bd03ca 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.estimate_model_memory.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.estimate_model_memory.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.evaluate_data_frame.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.evaluate_data_frame.go
index 1c6c8d1420..a08de4b6db 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.evaluate_data_frame.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.evaluate_data_frame.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.explain_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.explain_data_frame_analytics.go
index df2ad8fd36..860eab832c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.explain_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.explain_data_frame_analytics.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.flush_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.flush_job.go
index e27a6add21..a76d497ff7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.flush_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.flush_job.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.forecast.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.forecast.go
index ee483bd244..737b5f0733 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.forecast.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.forecast.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_buckets.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_buckets.go
index 3d0e401f23..d671264466 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_buckets.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_buckets.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_calendar_events.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_calendar_events.go
index 01b9aed715..87de19fd1e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_calendar_events.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_calendar_events.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_calendars.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_calendars.go
index 05b23ac55a..2207bd8c51 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_calendars.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_calendars.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_categories.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_categories.go
index 44da272eb6..9ac0cbb79e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_categories.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_categories.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_data_frame_analytics.go
index 2ecc508fa4..ef68e97116 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_data_frame_analytics.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_data_frame_analytics_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_data_frame_analytics_stats.go
index 159422830e..5c937156bb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_data_frame_analytics_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_data_frame_analytics_stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_datafeed_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_datafeed_stats.go
index 7889cd52bb..bee19c5c53 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_datafeed_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_datafeed_stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_datafeeds.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_datafeeds.go
index c752f0a152..b16e787ee3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_datafeeds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_datafeeds.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_filters.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_filters.go
index b02c648bb5..c673814aa3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_filters.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_filters.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_influencers.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_influencers.go
index 2ab687c8b4..877f5b0c14 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_influencers.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_influencers.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_job_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_job_stats.go
index dc37fccbce..c596a2bde1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_job_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_job_stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_jobs.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_jobs.go
index 600fbcf3df..ba0a801ba8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_jobs.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_jobs.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_memory_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_memory_stats.go
index 94559bd15a..6646333883 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_memory_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_memory_stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_model_snapshot_upgrade_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_model_snapshot_upgrade_stats.go
index 78ddf6acab..f71ad28324 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_model_snapshot_upgrade_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_model_snapshot_upgrade_stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_model_snapshots.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_model_snapshots.go
index 7124b50d9f..b49e1d5090 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_model_snapshots.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_model_snapshots.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_overall_buckets.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_overall_buckets.go
index af39b0825d..2c3f394b1b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_overall_buckets.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_overall_buckets.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_records.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_records.go
index f465423cac..57093fe798 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_records.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_records.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_trained_models.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_trained_models.go
index c5e66472b7..a73262bfdc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_trained_models.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_trained_models.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_trained_models_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_trained_models_stats.go
index 91eb81e677..d506053ce6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_trained_models_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.get_trained_models_stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.infer_trained_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.infer_trained_model.go
index cdec42d4b6..b9b94dd1bc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.infer_trained_model.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.infer_trained_model.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.info.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.info.go
index 1cc7547842..ea32e94f78 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.info.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.open_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.open_job.go
index bfa20b5df9..35b6d75e7f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.open_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.open_job.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.post_calendar_events.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.post_calendar_events.go
index e4f7d177b4..725e8906b1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.post_calendar_events.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.post_calendar_events.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.post_data.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.post_data.go
index 0404b17d84..840c15dd0e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.post_data.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.post_data.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.preview_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.preview_data_frame_analytics.go
index 64f30e2600..475cb00feb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.preview_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.preview_data_frame_analytics.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.preview_datafeed.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.preview_datafeed.go
index 0c249ae231..925f2d133e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.preview_datafeed.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.preview_datafeed.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_calendar.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_calendar.go
index e71662f72f..0aae0d4289 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_calendar.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_calendar.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_calendar_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_calendar_job.go
index cb4962c653..a396c30b03 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_calendar_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_calendar_job.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_data_frame_analytics.go
index e2a57bf768..1d837e154f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_data_frame_analytics.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_datafeed.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_datafeed.go
index b416e33f68..4b5a8d1e65 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_datafeed.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_datafeed.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_filter.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_filter.go
index e7010d2736..9209a584f9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_filter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_filter.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_job.go
index b2e2d08dec..944d7d310f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_job.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model.go
index bdc4ed3cae..8cb4e5fdfd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model_alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model_alias.go
index 35f3d3dc77..e1a1f7a00a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model_alias.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model_alias.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model_definition_part.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model_definition_part.go
index 8c08341394..608870098d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model_definition_part.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model_definition_part.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model_vocabulary.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model_vocabulary.go
index 67c0721715..aadde2c5c2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model_vocabulary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.put_trained_model_vocabulary.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.reset_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.reset_job.go
index 20f2633dbb..4458e35cf6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.reset_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.reset_job.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.revert_model_snapshot.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.revert_model_snapshot.go
index a5a4797495..343944f0ed 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.revert_model_snapshot.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.revert_model_snapshot.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.set_upgrade_mode.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.set_upgrade_mode.go
index a516aff508..3cfb610e91 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.set_upgrade_mode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.set_upgrade_mode.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.start_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.start_data_frame_analytics.go
index 8330b924ed..1e6b6eac4f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.start_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.start_data_frame_analytics.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.start_datafeed.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.start_datafeed.go
index 41d25525cb..1da322db37 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.start_datafeed.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.start_datafeed.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.start_trained_model_deployment.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.start_trained_model_deployment.go
index 3cddf9d4f6..d395539eba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.start_trained_model_deployment.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.start_trained_model_deployment.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.stop_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.stop_data_frame_analytics.go
index b4734d9913..40815ffa67 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.stop_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.stop_data_frame_analytics.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.stop_datafeed.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.stop_datafeed.go
index 13dba42d00..63de96e2a6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.stop_datafeed.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.stop_datafeed.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.stop_trained_model_deployment.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.stop_trained_model_deployment.go
index a7b223980b..1bb2278581 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.stop_trained_model_deployment.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.stop_trained_model_deployment.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_data_frame_analytics.go
index 166468a1d6..228239352e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_data_frame_analytics.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_datafeed.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_datafeed.go
index 0a1e898c8d..fa847fb4d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_datafeed.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_datafeed.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_filter.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_filter.go
index cea5e03e1e..54e5440487 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_filter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_filter.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_job.go
index 585db768a1..6dad1669f0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_job.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_model_snapshot.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_model_snapshot.go
index c7323dced0..f53560c0d5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_model_snapshot.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_model_snapshot.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_trained_model_deployment.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_trained_model_deployment.go
index c282069496..fc51ea4340 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_trained_model_deployment.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.update_trained_model_deployment.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.upgrade_job_snapshot.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.upgrade_job_snapshot.go
index 61e1e60ca7..d143298b22 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.upgrade_job_snapshot.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.upgrade_job_snapshot.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.validate.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.validate.go
index 5e86448ac9..7ecf3581f3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.validate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.validate.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.validate_detector.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.validate_detector.go
index 961813e8e5..e00686a755 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.validate_detector.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ml.validate_detector.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.monitoring.bulk.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.monitoring.bulk.go
index b26aa7a123..1b8a7a9161 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.monitoring.bulk.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.monitoring.bulk.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.open_point_in_time.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.open_point_in_time.go
index d88a018fb7..4686175d83 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.open_point_in_time.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.open_point_in_time.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.profiling.flamegraph.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.profiling.flamegraph.go
index ba41f2e069..65192cd823 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.profiling.flamegraph.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.profiling.flamegraph.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.delete_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.delete_job.go
index f8dc9c80ba..3cbda6e7b7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.delete_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.delete_job.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.get_jobs.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.get_jobs.go
index a76c1a8346..58948907ad 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.get_jobs.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.get_jobs.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.get_rollup_caps.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.get_rollup_caps.go
index 381ee39711..47764467d3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.get_rollup_caps.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.get_rollup_caps.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.get_rollup_index_caps.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.get_rollup_index_caps.go
index f01ff7c156..c20ec1276b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.get_rollup_index_caps.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.get_rollup_index_caps.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.put_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.put_job.go
index 8ecb0604dd..8e0bd10943 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.put_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.put_job.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.rollup_search.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.rollup_search.go
index 2ef96832c0..b8503737c2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.rollup_search.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.rollup_search.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.start_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.start_job.go
index b5c3daa1f0..794764e4ba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.start_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.start_job.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.stop_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.stop_job.go
index f7abf52007..46bbbe00b2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.stop_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.rollup.stop_job.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.cache_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.cache_stats.go
index 85ba490627..3c2b550564 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.cache_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.cache_stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.clear_cache.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.clear_cache.go
index e7adf7a279..51d7a8f5b9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.clear_cache.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.clear_cache.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.mount.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.mount.go
index dac9601af7..20fc6cffaf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.mount.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.mount.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.stats.go
index 7b31201a9c..5a664764eb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.searchable_snapshots.stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.activate_user_profile.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.activate_user_profile.go
index 42d63ab66e..e7f8976d8b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.activate_user_profile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.activate_user_profile.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.authenticate.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.authenticate.go
index c73de20e9b..08b89392f5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.authenticate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.authenticate.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_update_api_keys.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_update_api_keys.go
index 0c9cee0543..16248fbd81 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_update_api_keys.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.bulk_update_api_keys.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.change_password.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.change_password.go
index 00df2580d0..a8595f4615 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.change_password.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.change_password.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_api_key_cache.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_api_key_cache.go
index a33e431f17..62e0c7eaef 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_api_key_cache.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_api_key_cache.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_privileges.go
index 435bbc0dda..9e167dc9d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_privileges.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_realms.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_realms.go
index 7a0a63c508..c23acb9456 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_realms.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_realms.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_roles.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_roles.go
index 2da608d30a..415ff4b535 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_roles.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_roles.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_service_tokens.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_service_tokens.go
index aeed8ad751..aedf4049e0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_service_tokens.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.clear_cached_service_tokens.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.create_api_key.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.create_api_key.go
index b2509d8997..6fce608d95 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.create_api_key.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.create_api_key.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.create_cross_cluster_api_key.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.create_cross_cluster_api_key.go
index 9475219cf1..c01210e2f2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.create_cross_cluster_api_key.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.create_cross_cluster_api_key.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.create_service_token.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.create_service_token.go
index 28d108a6be..d64c63ee65 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.create_service_token.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.create_service_token.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -84,7 +84,11 @@ func (r SecurityCreateServiceTokenRequest) Do(providedCtx context.Context, trans
ctx = providedCtx
}
- method = "PUT"
+ if r.Name != "" {
+ method = "POST"
+ } else {
+ method = "PUT"
+ }
path.Grow(7 + 1 + len("_security") + 1 + len("service") + 1 + len(r.Namespace) + 1 + len(r.Service) + 1 + len("credential") + 1 + len("token") + 1 + len(r.Name))
path.WriteString("http://")
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_privileges.go
index 7b32546073..40d73f0a64 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_privileges.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_role.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_role.go
index 1317e1c7cb..951d68c534 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_role.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_role.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_role_mapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_role_mapping.go
index 9c70d06045..5461df38da 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_role_mapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_role_mapping.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_service_token.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_service_token.go
index bab149fcf4..9b7ee6e079 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_service_token.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_service_token.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_user.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_user.go
index 50b8b5b457..dd2478a6d0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_user.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.delete_user.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.disable_user.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.disable_user.go
index 417fe69509..93a443e592 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.disable_user.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.disable_user.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.disable_user_profile.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.disable_user_profile.go
index 0bb4afa24b..3689b7316c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.disable_user_profile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.disable_user_profile.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enable_user.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enable_user.go
index 4568c4eb9b..cfd28d8af0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enable_user.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enable_user.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enable_user_profile.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enable_user_profile.go
index 5658aff2f7..4f183a812e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enable_user_profile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enable_user_profile.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enroll_kibana.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enroll_kibana.go
index 82e8016222..9a9559eef1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enroll_kibana.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enroll_kibana.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enroll_node.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enroll_node.go
index 23117b2310..b3ccaa7833 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enroll_node.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.enroll_node.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_api_key.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_api_key.go
index e1979f98e9..82095354ce 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_api_key.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_api_key.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -50,13 +50,14 @@ type SecurityGetAPIKey func(o ...func(*SecurityGetAPIKeyRequest)) (*Response, er
// SecurityGetAPIKeyRequest configures the Security GetAPI Key API request.
type SecurityGetAPIKeyRequest struct {
- ActiveOnly *bool
- ID string
- Name string
- Owner *bool
- RealmName string
- Username string
- WithLimitedBy *bool
+ ActiveOnly *bool
+ ID string
+ Name string
+ Owner *bool
+ RealmName string
+ Username string
+ WithLimitedBy *bool
+ WithProfileUID *bool
Pretty bool
Human bool
@@ -123,6 +124,10 @@ func (r SecurityGetAPIKeyRequest) Do(providedCtx context.Context, transport Tran
params["with_limited_by"] = strconv.FormatBool(*r.WithLimitedBy)
}
+ if r.WithProfileUID != nil {
+ params["with_profile_uid"] = strconv.FormatBool(*r.WithProfileUID)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -250,6 +255,13 @@ func (f SecurityGetAPIKey) WithWithLimitedBy(v bool) func(*SecurityGetAPIKeyRequ
}
}
+// WithWithProfileUID - flag to also retrieve the api key's owner profile uid, if it exists.
+func (f SecurityGetAPIKey) WithWithProfileUID(v bool) func(*SecurityGetAPIKeyRequest) {
+ return func(r *SecurityGetAPIKeyRequest) {
+ r.WithProfileUID = &v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f SecurityGetAPIKey) WithPretty() func(*SecurityGetAPIKeyRequest) {
return func(r *SecurityGetAPIKeyRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_builtin_privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_builtin_privileges.go
index b12fca0f00..150e358a2a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_builtin_privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_builtin_privileges.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_privileges.go
index 94d7bc40bb..2166306581 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_privileges.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_role.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_role.go
index 9f993c7fc1..a99ab5d669 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_role.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_role.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_role_mapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_role_mapping.go
index e62bb3fccb..c0299e0e70 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_role_mapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_role_mapping.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_service_accounts.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_service_accounts.go
index 30927889d5..f8d6dd6b1e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_service_accounts.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_service_accounts.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_service_credentials.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_service_credentials.go
index 4b7eef2554..e44d76cef2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_service_credentials.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_service_credentials.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_settings.go
index b7b04d97cb..305762deec 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_settings.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_token.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_token.go
index 1891b7a805..d04994024a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_token.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_token.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_user.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_user.go
index acb49288bb..cad6440667 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_user.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_user.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_user_privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_user_privileges.go
index 475c0dd673..424eba52c3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_user_privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_user_privileges.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_user_profile.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_user_profile.go
index fbac8f61ea..9fdede7bb2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_user_profile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.get_user_profile.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.grant_api_key.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.grant_api_key.go
index be904efee7..6e9994a760 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.grant_api_key.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.grant_api_key.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.has_privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.has_privileges.go
index c5995ce95c..2d619da2be 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.has_privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.has_privileges.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.has_privileges_user_profile.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.has_privileges_user_profile.go
index 8c98823e48..dee1e51d0a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.has_privileges_user_profile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.has_privileges_user_profile.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.invalidate_api_key.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.invalidate_api_key.go
index 95bb4aa5f2..b04072abe7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.invalidate_api_key.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.invalidate_api_key.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.invalidate_token.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.invalidate_token.go
index b7be4a6433..5616273564 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.invalidate_token.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.invalidate_token.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.oidc_authenticate.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.oidc_authenticate.go
index cb0fc1aa03..1c740bdb5b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.oidc_authenticate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.oidc_authenticate.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.oidc_logout.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.oidc_logout.go
index f752cb9a85..81fa6e28a1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.oidc_logout.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.oidc_logout.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.oidc_prepare_authentication.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.oidc_prepare_authentication.go
index c81ef4fba9..ddec3997bc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.oidc_prepare_authentication.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.oidc_prepare_authentication.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_privileges.go
index 3a21f8c906..2d955484c0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_privileges.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_role.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_role.go
index cd878555c0..87ca84e05e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_role.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_role.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_role_mapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_role_mapping.go
index 077f7dcdea..f9313cee47 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_role_mapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_role_mapping.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_user.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_user.go
index 0684b5a037..90ae9013c9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_user.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.put_user.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_api_keys.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_api_keys.go
index 3c08b5f29a..cee3da6d0b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_api_keys.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_api_keys.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
@@ -53,7 +53,9 @@ type SecurityQueryAPIKeys func(o ...func(*SecurityQueryAPIKeysRequest)) (*Respon
type SecurityQueryAPIKeysRequest struct {
Body io.Reader
- WithLimitedBy *bool
+ TypedKeys *bool
+ WithLimitedBy *bool
+ WithProfileUID *bool
Pretty bool
Human bool
@@ -92,10 +94,18 @@ func (r SecurityQueryAPIKeysRequest) Do(providedCtx context.Context, transport T
params = make(map[string]string)
+ if r.TypedKeys != nil {
+ params["typed_keys"] = strconv.FormatBool(*r.TypedKeys)
+ }
+
if r.WithLimitedBy != nil {
params["with_limited_by"] = strconv.FormatBool(*r.WithLimitedBy)
}
+ if r.WithProfileUID != nil {
+ params["with_profile_uid"] = strconv.FormatBool(*r.WithProfileUID)
+ }
+
if r.Pretty {
params["pretty"] = "true"
}
@@ -188,6 +198,13 @@ func (f SecurityQueryAPIKeys) WithBody(v io.Reader) func(*SecurityQueryAPIKeysRe
}
}
+// WithTypedKeys - flag to prefix aggregation names by their respective types in the response.
+func (f SecurityQueryAPIKeys) WithTypedKeys(v bool) func(*SecurityQueryAPIKeysRequest) {
+ return func(r *SecurityQueryAPIKeysRequest) {
+ r.TypedKeys = &v
+ }
+}
+
// WithWithLimitedBy - flag to show the limited-by role descriptors of api keys.
func (f SecurityQueryAPIKeys) WithWithLimitedBy(v bool) func(*SecurityQueryAPIKeysRequest) {
return func(r *SecurityQueryAPIKeysRequest) {
@@ -195,6 +212,13 @@ func (f SecurityQueryAPIKeys) WithWithLimitedBy(v bool) func(*SecurityQueryAPIKe
}
}
+// WithWithProfileUID - flag to also retrieve the api key's owner profile uid, if it exists.
+func (f SecurityQueryAPIKeys) WithWithProfileUID(v bool) func(*SecurityQueryAPIKeysRequest) {
+ return func(r *SecurityQueryAPIKeysRequest) {
+ r.WithProfileUID = &v
+ }
+}
+
// WithPretty makes the response body pretty-printed.
func (f SecurityQueryAPIKeys) WithPretty() func(*SecurityQueryAPIKeysRequest) {
return func(r *SecurityQueryAPIKeysRequest) {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_user.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_user.go
index 7288dd055e..99746bf7c1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_user.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.query_user.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_authenticate.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_authenticate.go
index 19f0bf2c29..ba4d41fba5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_authenticate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_authenticate.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_complete_logout.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_complete_logout.go
index 51847a9a05..4c62869ffa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_complete_logout.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_complete_logout.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_invalidate.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_invalidate.go
index 4168b673f9..7941e86e8b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_invalidate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_invalidate.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_logout.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_logout.go
index 61d555fe28..5f7b6e934d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_logout.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_logout.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_prepare_authentication.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_prepare_authentication.go
index 50a5f26621..3cb5e33751 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_prepare_authentication.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_prepare_authentication.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_service_provider_metadata.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_service_provider_metadata.go
index ebd7ac1953..434b73ca79 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_service_provider_metadata.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.saml_service_provider_metadata.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.suggest_user_profiles.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.suggest_user_profiles.go
index 46bbd7ddf5..59e065d557 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.suggest_user_profiles.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.suggest_user_profiles.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_api_key.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_api_key.go
index c952a1b8a7..175fb4b9d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_api_key.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_api_key.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_cross_cluster_api_key.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_cross_cluster_api_key.go
index bc1abca094..46f405f692 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_cross_cluster_api_key.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_cross_cluster_api_key.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_settings.go
index e2dbf4090d..380fe76f2c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_settings.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_user_profile_data.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_user_profile_data.go
index cd3e08abc6..4b387d5a11 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_user_profile_data.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.security.update_user_profile_data.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.delete_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.delete_lifecycle.go
index 7383fbd8d6..4065375fa6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.delete_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.delete_lifecycle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.execute_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.execute_lifecycle.go
index fb81ea59cf..8075665e5c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.execute_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.execute_lifecycle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.execute_retention.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.execute_retention.go
index 623be27b51..f3c3cc3c43 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.execute_retention.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.execute_retention.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.get_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.get_lifecycle.go
index 6243d94e1c..c5352af2d1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.get_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.get_lifecycle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.get_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.get_stats.go
index 9afd92d27c..266b886170 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.get_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.get_stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.get_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.get_status.go
index c45da8ebbb..2bb8dab6fe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.get_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.get_status.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.put_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.put_lifecycle.go
index bf4bbf1121..d0af4bec3a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.put_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.put_lifecycle.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.start.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.start.go
index fd5a193298..0a96dcfa03 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.start.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.start.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.stop.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.stop.go
index eb9faca795..512e139da2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.stop.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.slm.stop.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.clear_cursor.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.clear_cursor.go
index 9b220469af..647d8d47fd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.clear_cursor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.clear_cursor.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.delete_async.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.delete_async.go
index 11f243467b..81596101b7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.delete_async.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.delete_async.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.get_async.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.get_async.go
index 09b1016c43..7e8e14a7e8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.get_async.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.get_async.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.get_async_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.get_async_status.go
index 8de5569fbf..dc77e73f65 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.get_async_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.get_async_status.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.query.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.query.go
index 39428b1f2a..f80ab0d02d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.query.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.query.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.translate.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.translate.go
index 469bfb17de..72bd212ced 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.translate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.sql.translate.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ssl.certificates.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ssl.certificates.go
index 35c0005418..852121348d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ssl.certificates.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.ssl.certificates.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.find_field_structure.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.find_field_structure.go
new file mode 100644
index 0000000000..277e58a985
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.find_field_structure.go
@@ -0,0 +1,386 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+//
+// Code generated from specification version 8.14.0: DO NOT EDIT
+
+package esapi
+
+import (
+ "context"
+ "net/http"
+ "strconv"
+ "strings"
+ "time"
+)
+
+func newTextStructureFindFieldStructureFunc(t Transport) TextStructureFindFieldStructure {
+ return func(field string, index string, o ...func(*TextStructureFindFieldStructureRequest)) (*Response, error) {
+ var r = TextStructureFindFieldStructureRequest{Field: field, Index: index}
+ for _, f := range o {
+ f(&r)
+ }
+
+ if transport, ok := t.(Instrumented); ok {
+ r.instrument = transport.InstrumentationEnabled()
+ }
+
+ return r.Do(r.ctx, t)
+ }
+}
+
+// ----- API Definition -------------------------------------------------------
+
+// TextStructureFindFieldStructure - Finds the structure of a text field in an index.
+//
+// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/find-field-structure.html.
+type TextStructureFindFieldStructure func(field string, index string, o ...func(*TextStructureFindFieldStructureRequest)) (*Response, error)
+
+// TextStructureFindFieldStructureRequest configures the Text Structure Find Field Structure API request.
+type TextStructureFindFieldStructureRequest struct {
+ ColumnNames []string
+ Delimiter string
+ DocumentsToSample *int
+ EcsCompatibility string
+ Explain *bool
+ Field string
+ Format string
+ GrokPattern string
+ Index string
+ Quote string
+ ShouldTrimFields *bool
+ Timeout time.Duration
+ TimestampField string
+ TimestampFormat string
+
+ Pretty bool
+ Human bool
+ ErrorTrace bool
+ FilterPath []string
+
+ Header http.Header
+
+ ctx context.Context
+
+ instrument Instrumentation
+}
+
+// Do executes the request and returns response or error.
+func (r TextStructureFindFieldStructureRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) {
+ var (
+ method string
+ path strings.Builder
+ params map[string]string
+ ctx context.Context
+ )
+
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ ctx = instrument.Start(providedCtx, "text_structure.find_field_structure")
+ defer instrument.Close(ctx)
+ }
+ if ctx == nil {
+ ctx = providedCtx
+ }
+
+ method = "GET"
+
+ path.Grow(7 + len("/_text_structure/find_field_structure"))
+ path.WriteString("http://")
+ path.WriteString("/_text_structure/find_field_structure")
+
+ params = make(map[string]string)
+
+ if len(r.ColumnNames) > 0 {
+ params["column_names"] = strings.Join(r.ColumnNames, ",")
+ }
+
+ if r.Delimiter != "" {
+ params["delimiter"] = r.Delimiter
+ }
+
+ if r.DocumentsToSample != nil {
+ params["documents_to_sample"] = strconv.FormatInt(int64(*r.DocumentsToSample), 10)
+ }
+
+ if r.EcsCompatibility != "" {
+ params["ecs_compatibility"] = r.EcsCompatibility
+ }
+
+ if r.Explain != nil {
+ params["explain"] = strconv.FormatBool(*r.Explain)
+ }
+
+ if r.Field != "" {
+ params["field"] = r.Field
+ }
+
+ if r.Format != "" {
+ params["format"] = r.Format
+ }
+
+ if r.GrokPattern != "" {
+ params["grok_pattern"] = r.GrokPattern
+ }
+
+ if r.Index != "" {
+ params["index"] = r.Index
+ }
+
+ if r.Quote != "" {
+ params["quote"] = r.Quote
+ }
+
+ if r.ShouldTrimFields != nil {
+ params["should_trim_fields"] = strconv.FormatBool(*r.ShouldTrimFields)
+ }
+
+ if r.Timeout != 0 {
+ params["timeout"] = formatDuration(r.Timeout)
+ }
+
+ if r.TimestampField != "" {
+ params["timestamp_field"] = r.TimestampField
+ }
+
+ if r.TimestampFormat != "" {
+ params["timestamp_format"] = r.TimestampFormat
+ }
+
+ if r.Pretty {
+ params["pretty"] = "true"
+ }
+
+ if r.Human {
+ params["human"] = "true"
+ }
+
+ if r.ErrorTrace {
+ params["error_trace"] = "true"
+ }
+
+ if len(r.FilterPath) > 0 {
+ params["filter_path"] = strings.Join(r.FilterPath, ",")
+ }
+
+ req, err := newRequest(method, path.String(), nil)
+ if err != nil {
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return nil, err
+ }
+
+ if len(params) > 0 {
+ q := req.URL.Query()
+ for k, v := range params {
+ q.Set(k, v)
+ }
+ req.URL.RawQuery = q.Encode()
+ }
+
+ if len(r.Header) > 0 {
+ if len(req.Header) == 0 {
+ req.Header = r.Header
+ } else {
+ for k, vv := range r.Header {
+ for _, v := range vv {
+ req.Header.Add(k, v)
+ }
+ }
+ }
+ }
+
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.BeforeRequest(req, "text_structure.find_field_structure")
+ }
+ res, err := transport.Perform(req)
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.AfterRequest(req, "elasticsearch", "text_structure.find_field_structure")
+ }
+ if err != nil {
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return nil, err
+ }
+
+ response := Response{
+ StatusCode: res.StatusCode,
+ Body: res.Body,
+ Header: res.Header,
+ }
+
+ return &response, nil
+}
+
+// WithContext sets the request context.
+func (f TextStructureFindFieldStructure) WithContext(v context.Context) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.ctx = v
+ }
+}
+
+// WithColumnNames - optional parameter containing a comma separated list of the column names for a delimited file.
+func (f TextStructureFindFieldStructure) WithColumnNames(v ...string) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.ColumnNames = v
+ }
+}
+
+// WithDelimiter - optional parameter to specify the delimiter character for a delimited file - must be a single character.
+func (f TextStructureFindFieldStructure) WithDelimiter(v string) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.Delimiter = v
+ }
+}
+
+// WithDocumentsToSample - how many documents should be included in the analysis.
+func (f TextStructureFindFieldStructure) WithDocumentsToSample(v int) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.DocumentsToSample = &v
+ }
+}
+
+// WithEcsCompatibility - optional parameter to specify the compatibility mode with ecs grok patterns - may be either 'v1' or 'disabled'.
+func (f TextStructureFindFieldStructure) WithEcsCompatibility(v string) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.EcsCompatibility = v
+ }
+}
+
+// WithExplain - whether to include a commentary on how the structure was derived.
+func (f TextStructureFindFieldStructure) WithExplain(v bool) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.Explain = &v
+ }
+}
+
+// WithField - the field that should be analyzed.
+func (f TextStructureFindFieldStructure) WithField(v string) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.Field = v
+ }
+}
+
+// WithFormat - optional parameter to specify the high level file format.
+func (f TextStructureFindFieldStructure) WithFormat(v string) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.Format = v
+ }
+}
+
+// WithGrokPattern - optional parameter to specify the grok pattern that should be used to extract fields from messages in a semi-structured text file.
+func (f TextStructureFindFieldStructure) WithGrokPattern(v string) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.GrokPattern = v
+ }
+}
+
+// WithIndex - the index containing the analyzed field.
+func (f TextStructureFindFieldStructure) WithIndex(v string) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.Index = v
+ }
+}
+
+// WithQuote - optional parameter to specify the quote character for a delimited file - must be a single character.
+func (f TextStructureFindFieldStructure) WithQuote(v string) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.Quote = v
+ }
+}
+
+// WithShouldTrimFields - optional parameter to specify whether the values between delimiters in a delimited file should have whitespace trimmed from them.
+func (f TextStructureFindFieldStructure) WithShouldTrimFields(v bool) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.ShouldTrimFields = &v
+ }
+}
+
+// WithTimeout - timeout after which the analysis will be aborted.
+func (f TextStructureFindFieldStructure) WithTimeout(v time.Duration) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.Timeout = v
+ }
+}
+
+// WithTimestampField - optional parameter to specify the timestamp field in the file.
+func (f TextStructureFindFieldStructure) WithTimestampField(v string) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.TimestampField = v
+ }
+}
+
+// WithTimestampFormat - optional parameter to specify the timestamp format in the file - may be either a joda or java time format.
+func (f TextStructureFindFieldStructure) WithTimestampFormat(v string) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.TimestampFormat = v
+ }
+}
+
+// WithPretty makes the response body pretty-printed.
+func (f TextStructureFindFieldStructure) WithPretty() func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.Pretty = true
+ }
+}
+
+// WithHuman makes statistical values human-readable.
+func (f TextStructureFindFieldStructure) WithHuman() func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.Human = true
+ }
+}
+
+// WithErrorTrace includes the stack trace for errors in the response body.
+func (f TextStructureFindFieldStructure) WithErrorTrace() func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.ErrorTrace = true
+ }
+}
+
+// WithFilterPath filters the properties of the response body.
+func (f TextStructureFindFieldStructure) WithFilterPath(v ...string) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ r.FilterPath = v
+ }
+}
+
+// WithHeader adds the headers to the HTTP request.
+func (f TextStructureFindFieldStructure) WithHeader(h map[string]string) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ if r.Header == nil {
+ r.Header = make(http.Header)
+ }
+ for k, v := range h {
+ r.Header.Add(k, v)
+ }
+ }
+}
+
+// WithOpaqueID adds the X-Opaque-Id header to the HTTP request.
+func (f TextStructureFindFieldStructure) WithOpaqueID(s string) func(*TextStructureFindFieldStructureRequest) {
+ return func(r *TextStructureFindFieldStructureRequest) {
+ if r.Header == nil {
+ r.Header = make(http.Header)
+ }
+ r.Header.Set("X-Opaque-Id", s)
+ }
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.find_message_structure.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.find_message_structure.go
new file mode 100644
index 0000000000..397c29aad4
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.find_message_structure.go
@@ -0,0 +1,360 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+//
+// Code generated from specification version 8.14.0: DO NOT EDIT
+
+package esapi
+
+import (
+ "context"
+ "io"
+ "net/http"
+ "strconv"
+ "strings"
+ "time"
+)
+
+func newTextStructureFindMessageStructureFunc(t Transport) TextStructureFindMessageStructure {
+ return func(body io.Reader, o ...func(*TextStructureFindMessageStructureRequest)) (*Response, error) {
+ var r = TextStructureFindMessageStructureRequest{Body: body}
+ for _, f := range o {
+ f(&r)
+ }
+
+ if transport, ok := t.(Instrumented); ok {
+ r.instrument = transport.InstrumentationEnabled()
+ }
+
+ return r.Do(r.ctx, t)
+ }
+}
+
+// ----- API Definition -------------------------------------------------------
+
+// TextStructureFindMessageStructure - Finds the structure of a list of messages. The messages must contain data that is suitable to be ingested into Elasticsearch.
+//
+// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/find-message-structure.html.
+type TextStructureFindMessageStructure func(body io.Reader, o ...func(*TextStructureFindMessageStructureRequest)) (*Response, error)
+
+// TextStructureFindMessageStructureRequest configures the Text Structure Find Message Structure API request.
+type TextStructureFindMessageStructureRequest struct {
+ Body io.Reader
+
+ ColumnNames []string
+ Delimiter string
+ EcsCompatibility string
+ Explain *bool
+ Format string
+ GrokPattern string
+ Quote string
+ ShouldTrimFields *bool
+ Timeout time.Duration
+ TimestampField string
+ TimestampFormat string
+
+ Pretty bool
+ Human bool
+ ErrorTrace bool
+ FilterPath []string
+
+ Header http.Header
+
+ ctx context.Context
+
+ instrument Instrumentation
+}
+
+// Do executes the request and returns response or error.
+func (r TextStructureFindMessageStructureRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) {
+ var (
+ method string
+ path strings.Builder
+ params map[string]string
+ ctx context.Context
+ )
+
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ ctx = instrument.Start(providedCtx, "text_structure.find_message_structure")
+ defer instrument.Close(ctx)
+ }
+ if ctx == nil {
+ ctx = providedCtx
+ }
+
+ method = "POST"
+
+ path.Grow(7 + len("/_text_structure/find_message_structure"))
+ path.WriteString("http://")
+ path.WriteString("/_text_structure/find_message_structure")
+
+ params = make(map[string]string)
+
+ if len(r.ColumnNames) > 0 {
+ params["column_names"] = strings.Join(r.ColumnNames, ",")
+ }
+
+ if r.Delimiter != "" {
+ params["delimiter"] = r.Delimiter
+ }
+
+ if r.EcsCompatibility != "" {
+ params["ecs_compatibility"] = r.EcsCompatibility
+ }
+
+ if r.Explain != nil {
+ params["explain"] = strconv.FormatBool(*r.Explain)
+ }
+
+ if r.Format != "" {
+ params["format"] = r.Format
+ }
+
+ if r.GrokPattern != "" {
+ params["grok_pattern"] = r.GrokPattern
+ }
+
+ if r.Quote != "" {
+ params["quote"] = r.Quote
+ }
+
+ if r.ShouldTrimFields != nil {
+ params["should_trim_fields"] = strconv.FormatBool(*r.ShouldTrimFields)
+ }
+
+ if r.Timeout != 0 {
+ params["timeout"] = formatDuration(r.Timeout)
+ }
+
+ if r.TimestampField != "" {
+ params["timestamp_field"] = r.TimestampField
+ }
+
+ if r.TimestampFormat != "" {
+ params["timestamp_format"] = r.TimestampFormat
+ }
+
+ if r.Pretty {
+ params["pretty"] = "true"
+ }
+
+ if r.Human {
+ params["human"] = "true"
+ }
+
+ if r.ErrorTrace {
+ params["error_trace"] = "true"
+ }
+
+ if len(r.FilterPath) > 0 {
+ params["filter_path"] = strings.Join(r.FilterPath, ",")
+ }
+
+ req, err := newRequest(method, path.String(), r.Body)
+ if err != nil {
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return nil, err
+ }
+
+ if len(params) > 0 {
+ q := req.URL.Query()
+ for k, v := range params {
+ q.Set(k, v)
+ }
+ req.URL.RawQuery = q.Encode()
+ }
+
+ if len(r.Header) > 0 {
+ if len(req.Header) == 0 {
+ req.Header = r.Header
+ } else {
+ for k, vv := range r.Header {
+ for _, v := range vv {
+ req.Header.Add(k, v)
+ }
+ }
+ }
+ }
+
+ if r.Body != nil && req.Header.Get(headerContentType) == "" {
+ req.Header[headerContentType] = headerContentTypeJSON
+ }
+
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.BeforeRequest(req, "text_structure.find_message_structure")
+ if reader := instrument.RecordRequestBody(ctx, "text_structure.find_message_structure", r.Body); reader != nil {
+ req.Body = reader
+ }
+ }
+ res, err := transport.Perform(req)
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.AfterRequest(req, "elasticsearch", "text_structure.find_message_structure")
+ }
+ if err != nil {
+ if instrument, ok := r.instrument.(Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return nil, err
+ }
+
+ response := Response{
+ StatusCode: res.StatusCode,
+ Body: res.Body,
+ Header: res.Header,
+ }
+
+ return &response, nil
+}
+
+// WithContext sets the request context.
+func (f TextStructureFindMessageStructure) WithContext(v context.Context) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.ctx = v
+ }
+}
+
+// WithColumnNames - optional parameter containing a comma separated list of the column names for a delimited file.
+func (f TextStructureFindMessageStructure) WithColumnNames(v ...string) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.ColumnNames = v
+ }
+}
+
+// WithDelimiter - optional parameter to specify the delimiter character for a delimited file - must be a single character.
+func (f TextStructureFindMessageStructure) WithDelimiter(v string) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.Delimiter = v
+ }
+}
+
+// WithEcsCompatibility - optional parameter to specify the compatibility mode with ecs grok patterns - may be either 'v1' or 'disabled'.
+func (f TextStructureFindMessageStructure) WithEcsCompatibility(v string) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.EcsCompatibility = v
+ }
+}
+
+// WithExplain - whether to include a commentary on how the structure was derived.
+func (f TextStructureFindMessageStructure) WithExplain(v bool) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.Explain = &v
+ }
+}
+
+// WithFormat - optional parameter to specify the high level file format.
+func (f TextStructureFindMessageStructure) WithFormat(v string) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.Format = v
+ }
+}
+
+// WithGrokPattern - optional parameter to specify the grok pattern that should be used to extract fields from messages in a semi-structured text file.
+func (f TextStructureFindMessageStructure) WithGrokPattern(v string) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.GrokPattern = v
+ }
+}
+
+// WithQuote - optional parameter to specify the quote character for a delimited file - must be a single character.
+func (f TextStructureFindMessageStructure) WithQuote(v string) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.Quote = v
+ }
+}
+
+// WithShouldTrimFields - optional parameter to specify whether the values between delimiters in a delimited file should have whitespace trimmed from them.
+func (f TextStructureFindMessageStructure) WithShouldTrimFields(v bool) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.ShouldTrimFields = &v
+ }
+}
+
+// WithTimeout - timeout after which the analysis will be aborted.
+func (f TextStructureFindMessageStructure) WithTimeout(v time.Duration) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.Timeout = v
+ }
+}
+
+// WithTimestampField - optional parameter to specify the timestamp field in the file.
+func (f TextStructureFindMessageStructure) WithTimestampField(v string) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.TimestampField = v
+ }
+}
+
+// WithTimestampFormat - optional parameter to specify the timestamp format in the file - may be either a joda or java time format.
+func (f TextStructureFindMessageStructure) WithTimestampFormat(v string) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.TimestampFormat = v
+ }
+}
+
+// WithPretty makes the response body pretty-printed.
+func (f TextStructureFindMessageStructure) WithPretty() func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.Pretty = true
+ }
+}
+
+// WithHuman makes statistical values human-readable.
+func (f TextStructureFindMessageStructure) WithHuman() func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.Human = true
+ }
+}
+
+// WithErrorTrace includes the stack trace for errors in the response body.
+func (f TextStructureFindMessageStructure) WithErrorTrace() func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.ErrorTrace = true
+ }
+}
+
+// WithFilterPath filters the properties of the response body.
+func (f TextStructureFindMessageStructure) WithFilterPath(v ...string) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ r.FilterPath = v
+ }
+}
+
+// WithHeader adds the headers to the HTTP request.
+func (f TextStructureFindMessageStructure) WithHeader(h map[string]string) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ if r.Header == nil {
+ r.Header = make(http.Header)
+ }
+ for k, v := range h {
+ r.Header.Add(k, v)
+ }
+ }
+}
+
+// WithOpaqueID adds the X-Opaque-Id header to the HTTP request.
+func (f TextStructureFindMessageStructure) WithOpaqueID(s string) func(*TextStructureFindMessageStructureRequest) {
+ return func(r *TextStructureFindMessageStructureRequest) {
+ if r.Header == nil {
+ r.Header = make(http.Header)
+ }
+ r.Header.Set("X-Opaque-Id", s)
+ }
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.find_structure.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.find_structure.go
index 3018dccb06..9862bb680f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.find_structure.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.find_structure.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.test_grok_pattern.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.test_grok_pattern.go
index 3638a40e69..93b2ce78db 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.test_grok_pattern.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.text_structure.test_grok_pattern.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.delete_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.delete_transform.go
index 7f4f3146c4..8e6d94a484 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.delete_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.delete_transform.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_transform.go
index d33bac4e41..58c370390f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_transform.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_transform_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_transform_stats.go
index 0522968987..179d59180e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_transform_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.get_transform_stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.preview_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.preview_transform.go
index 6896dff308..5e48c742cb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.preview_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.preview_transform.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.put_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.put_transform.go
index ca57811f1c..cff70888b8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.put_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.put_transform.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.reset_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.reset_transform.go
index c2114816ce..43278dc9bc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.reset_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.reset_transform.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.schedule_now_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.schedule_now_transform.go
index b2e2fd13c4..4031fc5c5e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.schedule_now_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.schedule_now_transform.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.start_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.start_transform.go
index 3d136ef3b3..6419026f6c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.start_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.start_transform.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.stop_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.stop_transform.go
index dc13a65a6a..24c4097914 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.stop_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.stop_transform.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.update_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.update_transform.go
index 2049f15134..9e40e9f5c7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.update_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.update_transform.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.upgrade_transforms.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.upgrade_transforms.go
index 9b67cc741e..0e89ce10a5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.upgrade_transforms.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.transform.upgrade_transforms.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.ack_watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.ack_watch.go
index f7b1b09dd1..94b723f4c6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.ack_watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.ack_watch.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.activate_watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.activate_watch.go
index 2839a04c0b..e6cfa58c65 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.activate_watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.activate_watch.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.deactivate_watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.deactivate_watch.go
index c5a8546e5f..217992055d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.deactivate_watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.deactivate_watch.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.delete_watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.delete_watch.go
index a01e96a35e..9194f80d80 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.delete_watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.delete_watch.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.execute_watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.execute_watch.go
index be1b053679..afddb02848 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.execute_watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.execute_watch.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.get_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.get_settings.go
index 23cb0a5786..3a55b46d1e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.get_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.get_settings.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.get_watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.get_watch.go
index 3d59a27a45..b831ac6d2d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.get_watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.get_watch.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.put_watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.put_watch.go
index 69176b40b9..b5af1bebae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.put_watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.put_watch.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.query_watches.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.query_watches.go
index 73b00e97c5..18d069d092 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.query_watches.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.query_watches.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.start.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.start.go
index 3b9b6be841..8bc9025e6c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.start.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.start.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.stats.go
index e22b91cf38..86d60e2b83 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.stats.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.stop.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.stop.go
index b6437dcd40..8db72d3e27 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.stop.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.stop.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.update_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.update_settings.go
index 52f3dc82ad..824473b910 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.update_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.watcher.update_settings.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.xpack.info.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.xpack.info.go
index e536286aa5..cdabb4b93a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.xpack.info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.xpack.info.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.xpack.usage.go b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.xpack.usage.go
index 325104782e..5f39648cb8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.xpack.usage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/esapi/api.xpack.xpack.usage.go
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
//
-// Code generated from specification version 8.13.2: DO NOT EDIT
+// Code generated from specification version 8.14.0: DO NOT EDIT
package esapi
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/internal/version/version.go b/vendor/github.com/elastic/go-elasticsearch/v8/internal/version/version.go
index 41370fa4ed..b038c2a2cc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/internal/version/version.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/internal/version/version.go
@@ -18,4 +18,4 @@
package version
// Client returns the client version as a string.
-const Client = "8.13.1"
+const Client = "8.14.0"
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/api._.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/api._.go
index 9cef50e6f1..87292a6790 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/api._.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/api._.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package typedapi
@@ -311,6 +311,7 @@ import (
ml_update_filter "github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter"
ml_update_job "github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob"
ml_update_model_snapshot "github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot"
+ ml_update_trained_model_deployment "github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment"
ml_upgrade_job_snapshot "github.com/elastic/go-elasticsearch/v8/typedapi/ml/upgradejobsnapshot"
ml_validate "github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate"
ml_validate_detector "github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector"
@@ -1481,6 +1482,9 @@ type Ml struct {
// Updates certain properties of a snapshot.
// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html
UpdateModelSnapshot ml_update_model_snapshot.NewUpdateModelSnapshot
+ // Updates certain properties of trained model deployment.
+ // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-trained-model-deployment.html
+ UpdateTrainedModelDeployment ml_update_trained_model_deployment.NewUpdateTrainedModelDeployment
// Upgrades a given job snapshot to the current major version.
// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-upgrade-job-model-snapshot.html
UpgradeJobSnapshot ml_upgrade_job_snapshot.NewUpgradeJobSnapshot
@@ -2617,6 +2621,7 @@ func New(tp elastictransport.Interface) *API {
UpdateFilter: ml_update_filter.NewUpdateFilterFunc(tp),
UpdateJob: ml_update_job.NewUpdateJobFunc(tp),
UpdateModelSnapshot: ml_update_model_snapshot.NewUpdateModelSnapshotFunc(tp),
+ UpdateTrainedModelDeployment: ml_update_trained_model_deployment.NewUpdateTrainedModelDeploymentFunc(tp),
UpgradeJobSnapshot: ml_upgrade_job_snapshot.NewUpgradeJobSnapshotFunc(tp),
Validate: ml_validate.NewValidateFunc(tp),
ValidateDetector: ml_validate_detector.NewValidateDetectorFunc(tp),
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/delete/delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/delete/delete.go
index 578e0e425a..a2f7ab9252 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/delete/delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/delete/delete.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an async search by ID. If the search is still running, the search
// request will be cancelled. Otherwise, the saved search results are deleted.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r Delete) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *Delete) _id(id string) *Delete {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Delete) ErrorTrace(errortrace bool) *Delete {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Delete) FilterPath(filterpaths ...string) *Delete {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Delete) Human(human bool) *Delete {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Delete) Pretty(pretty bool) *Delete {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/delete/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/delete/response.go
index 55f62b91b3..c763781a91 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/delete/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/delete/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package delete
// Response holds the response body struct for the package delete
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/async_search/delete/AsyncSearchDeleteResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/async_search/delete/AsyncSearchDeleteResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/get/get.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/get/get.go
index 31972a3377..187aae2075 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/get/get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/get/get.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves the results of a previously submitted async search request given
// its ID.
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r Get) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -338,3 +337,47 @@ func (r *Get) WaitForCompletionTimeout(duration string) *Get {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Get) ErrorTrace(errortrace bool) *Get {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Get) FilterPath(filterpaths ...string) *Get {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Get) Human(human bool) *Get {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Get) Pretty(pretty bool) *Get {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/get/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/get/response.go
index ea2929c0d6..de62377048 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/get/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/get/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package get
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package get
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/async_search/get/AsyncSearchGetResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/async_search/get/AsyncSearchGetResponse.ts#L22-L24
type Response struct {
// CompletionTime Indicates when the async search completed. Only present
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/status/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/status/response.go
index aaf1375fb4..6a0896b2f7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/status/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/status/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package status
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package status
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/async_search/status/AsyncSearchStatusResponse.ts#L39-L41
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/async_search/status/AsyncSearchStatusResponse.ts#L39-L41
type Response struct {
// Clusters_ Metadata about clusters involved in the cross-cluster search.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/status/status.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/status/status.go
index 011eb3d9fb..4bf69c66bc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/status/status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/status/status.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves the status of a previously submitted async search request given its
// ID.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r Status) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -300,3 +300,47 @@ func (r *Status) _id(id string) *Status {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Status) ErrorTrace(errortrace bool) *Status {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Status) FilterPath(filterpaths ...string) *Status {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Status) Human(human bool) *Status {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Status) Pretty(pretty bool) *Status {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/submit/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/submit/request.go
index ac0a5319b3..7d69036b80 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/submit/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/submit/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package submit
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package submit
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/async_search/submit/AsyncSearchSubmitRequest.ts#L55-L286
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/async_search/submit/AsyncSearchSubmitRequest.ts#L55-L286
type Request struct {
Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"`
Collapse *types.FieldCollapse `json:"collapse,omitempty"`
@@ -57,7 +57,7 @@ type Request struct {
// IndicesBoost Boosts the _score of documents from specified indices.
IndicesBoost []map[string]types.Float64 `json:"indices_boost,omitempty"`
// Knn Defines the approximate kNN search to run.
- Knn []types.KnnQuery `json:"knn,omitempty"`
+ Knn []types.KnnSearch `json:"knn,omitempty"`
// MinScore Minimum _score for matching documents. Documents with a lower _score are
// not included in the search results.
MinScore *types.Float64 `json:"min_score,omitempty"`
@@ -131,6 +131,7 @@ func NewRequest() *Request {
Ext: make(map[string]json.RawMessage, 0),
ScriptFields: make(map[string]types.ScriptField, 0),
}
+
return r
}
@@ -179,7 +180,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "explain":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -207,7 +208,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "from":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -235,7 +236,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
rawMsg := json.RawMessage{}
dec.Decode(&rawMsg)
if !bytes.HasPrefix(rawMsg, []byte("[")) {
- o := types.NewKnnQuery()
+ o := types.NewKnnSearch()
if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Knn", err)
}
@@ -248,7 +249,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "min_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -274,7 +275,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "profile":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -327,7 +328,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "seq_no_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -342,7 +343,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -409,7 +410,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "terminate_after":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -436,7 +437,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
s.Timeout = &o
case "track_scores":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -455,7 +456,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "version":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/submit/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/submit/response.go
index 200b7050b7..eb74be966e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/submit/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/submit/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package submit
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package submit
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/async_search/submit/AsyncSearchSubmitResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/async_search/submit/AsyncSearchSubmitResponse.ts#L22-L24
type Response struct {
// CompletionTime Indicates when the async search completed. Only present
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/submit/submit.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/submit/submit.go
index a7e436f264..2d0258340e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/submit/submit.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/submit/submit.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Executes a search request asynchronously.
package submit
@@ -603,6 +603,50 @@ func (r *Submit) Q(q string) *Submit {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Submit) ErrorTrace(errortrace bool) *Submit {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Submit) FilterPath(filterpaths ...string) *Submit {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Submit) Human(human bool) *Submit {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Submit) Pretty(pretty bool) *Submit {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: aggregations
func (r *Submit) Aggregations(aggregations map[string]types.Aggregations) *Submit {
@@ -684,7 +728,7 @@ func (r *Submit) IndicesBoost(indicesboosts ...map[string]types.Float64) *Submit
// Knn Defines the approximate kNN search to run.
// API name: knn
-func (r *Submit) Knn(knns ...types.KnnQuery) *Submit {
+func (r *Submit) Knn(knns ...types.KnnSearch) *Submit {
r.req.Knn = knns
return r
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/deleteautoscalingpolicy/delete_autoscaling_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/deleteautoscalingpolicy/delete_autoscaling_policy.go
index 0207231315..17f7eeb798 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/deleteautoscalingpolicy/delete_autoscaling_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/deleteautoscalingpolicy/delete_autoscaling_policy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
// Direct use is not supported.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r DeleteAutoscalingPolicy) IsSuccess(providedCtx context.Context) (bool, e
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -300,3 +300,47 @@ func (r *DeleteAutoscalingPolicy) _name(name string) *DeleteAutoscalingPolicy {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteAutoscalingPolicy) ErrorTrace(errortrace bool) *DeleteAutoscalingPolicy {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteAutoscalingPolicy) FilterPath(filterpaths ...string) *DeleteAutoscalingPolicy {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteAutoscalingPolicy) Human(human bool) *DeleteAutoscalingPolicy {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteAutoscalingPolicy) Pretty(pretty bool) *DeleteAutoscalingPolicy {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/deleteautoscalingpolicy/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/deleteautoscalingpolicy/response.go
index 8db397c03e..bf7f211053 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/deleteautoscalingpolicy/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/deleteautoscalingpolicy/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deleteautoscalingpolicy
// Response holds the response body struct for the package deleteautoscalingpolicy
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingcapacity/get_autoscaling_capacity.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingcapacity/get_autoscaling_capacity.go
index 9a677b97a7..6b7b848eff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingcapacity/get_autoscaling_capacity.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingcapacity/get_autoscaling_capacity.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Gets the current autoscaling capacity based on the configured autoscaling
// policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not
@@ -29,9 +29,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -252,7 +252,7 @@ func (r GetAutoscalingCapacity) IsSuccess(providedCtx context.Context) (bool, er
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -279,3 +279,47 @@ func (r *GetAutoscalingCapacity) Header(key, value string) *GetAutoscalingCapaci
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetAutoscalingCapacity) ErrorTrace(errortrace bool) *GetAutoscalingCapacity {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetAutoscalingCapacity) FilterPath(filterpaths ...string) *GetAutoscalingCapacity {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetAutoscalingCapacity) Human(human bool) *GetAutoscalingCapacity {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetAutoscalingCapacity) Pretty(pretty bool) *GetAutoscalingCapacity {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingcapacity/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingcapacity/response.go
index 7516a7f413..1ade4e8880 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingcapacity/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingcapacity/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getautoscalingcapacity
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getautoscalingcapacity
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L25-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L25-L29
type Response struct {
Policies map[string]types.AutoscalingDeciders `json:"policies"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingpolicy/get_autoscaling_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingpolicy/get_autoscaling_policy.go
index e38a7f5b9a..b59b98558a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingpolicy/get_autoscaling_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingpolicy/get_autoscaling_policy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and
// ECK. Direct use is not supported.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r GetAutoscalingPolicy) IsSuccess(providedCtx context.Context) (bool, erro
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -300,3 +300,47 @@ func (r *GetAutoscalingPolicy) _name(name string) *GetAutoscalingPolicy {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetAutoscalingPolicy) ErrorTrace(errortrace bool) *GetAutoscalingPolicy {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetAutoscalingPolicy) FilterPath(filterpaths ...string) *GetAutoscalingPolicy {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetAutoscalingPolicy) Human(human bool) *GetAutoscalingPolicy {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetAutoscalingPolicy) Pretty(pretty bool) *GetAutoscalingPolicy {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingpolicy/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingpolicy/response.go
index b1029477c8..413b824e68 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingpolicy/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingpolicy/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getautoscalingpolicy
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getautoscalingpolicy
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L24
type Response struct {
// Deciders Decider settings
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/put_autoscaling_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/put_autoscaling_policy.go
index f4d7154090..461ba26654 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/put_autoscaling_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/put_autoscaling_policy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and
// ECK. Direct use is not supported.
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -316,6 +317,50 @@ func (r *PutAutoscalingPolicy) _name(name string) *PutAutoscalingPolicy {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutAutoscalingPolicy) ErrorTrace(errortrace bool) *PutAutoscalingPolicy {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutAutoscalingPolicy) FilterPath(filterpaths ...string) *PutAutoscalingPolicy {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutAutoscalingPolicy) Human(human bool) *PutAutoscalingPolicy {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutAutoscalingPolicy) Pretty(pretty bool) *PutAutoscalingPolicy {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Deciders Decider settings
// API name: deciders
func (r *PutAutoscalingPolicy) Deciders(deciders map[string]json.RawMessage) *PutAutoscalingPolicy {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/request.go
index 9069643d5a..66047dabde 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putautoscalingpolicy
@@ -26,7 +26,7 @@ import (
// Request holds the request body struct for the package putautoscalingpolicy
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L24-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L24-L35
type Request = types.AutoscalingPolicy
// NewRequest returns a Request
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/response.go
index 0c8c42fa44..b5556f48eb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putautoscalingpolicy
// Response holds the response body struct for the package putautoscalingpolicy
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/aliases/aliases.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/aliases/aliases.go
index 7611b864a8..89ea6883c7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/aliases/aliases.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/aliases/aliases.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Shows information about currently configured aliases to indices including
// filter and routing infos.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -270,7 +270,7 @@ func (r Aliases) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -320,3 +320,110 @@ func (r *Aliases) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildca
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Aliases) Format(format string) *Aliases {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Aliases) H(names ...string) *Aliases {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Aliases) Help(help bool) *Aliases {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Aliases) Local(local bool) *Aliases {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Aliases) MasterTimeout(duration string) *Aliases {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Aliases) S(names ...string) *Aliases {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Aliases) V(v bool) *Aliases {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Aliases) ErrorTrace(errortrace bool) *Aliases {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Aliases) FilterPath(filterpaths ...string) *Aliases {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Aliases) Human(human bool) *Aliases {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Aliases) Pretty(pretty bool) *Aliases {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/aliases/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/aliases/response.go
index bed010f3a3..5c7e1b742e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/aliases/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/aliases/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package aliases
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package aliases
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/aliases/CatAliasesResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/aliases/CatAliasesResponse.ts#L22-L24
type Response []types.AliasesRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/allocation/allocation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/allocation/allocation.go
index a8064af48e..68111a392d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/allocation/allocation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/allocation/allocation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Provides a snapshot of how many shards are allocated to each data node and
// how much disk space they are using.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -270,7 +270,7 @@ func (r Allocation) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -315,3 +315,110 @@ func (r *Allocation) Bytes(bytes bytes.Bytes) *Allocation {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Allocation) Format(format string) *Allocation {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Allocation) H(names ...string) *Allocation {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Allocation) Help(help bool) *Allocation {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Allocation) Local(local bool) *Allocation {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Allocation) MasterTimeout(duration string) *Allocation {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Allocation) S(names ...string) *Allocation {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Allocation) V(v bool) *Allocation {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Allocation) ErrorTrace(errortrace bool) *Allocation {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Allocation) FilterPath(filterpaths ...string) *Allocation {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Allocation) Human(human bool) *Allocation {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Allocation) Pretty(pretty bool) *Allocation {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/allocation/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/allocation/response.go
index a3624db530..ad780ed9d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/allocation/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/allocation/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package allocation
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package allocation
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/allocation/CatAllocationResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/allocation/CatAllocationResponse.ts#L22-L24
type Response []types.AllocationRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/componenttemplates/component_templates.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/componenttemplates/component_templates.go
index e4fbf7bfef..44a447b2f6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/componenttemplates/component_templates.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/componenttemplates/component_templates.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about existing component_templates templates.
package componenttemplates
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -267,7 +267,7 @@ func (r ComponentTemplates) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -304,3 +304,110 @@ func (r *ComponentTemplates) Name(name string) *ComponentTemplates {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *ComponentTemplates) Format(format string) *ComponentTemplates {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *ComponentTemplates) H(names ...string) *ComponentTemplates {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *ComponentTemplates) Help(help bool) *ComponentTemplates {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *ComponentTemplates) Local(local bool) *ComponentTemplates {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *ComponentTemplates) MasterTimeout(duration string) *ComponentTemplates {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *ComponentTemplates) S(names ...string) *ComponentTemplates {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *ComponentTemplates) V(v bool) *ComponentTemplates {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ComponentTemplates) ErrorTrace(errortrace bool) *ComponentTemplates {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ComponentTemplates) FilterPath(filterpaths ...string) *ComponentTemplates {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ComponentTemplates) Human(human bool) *ComponentTemplates {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ComponentTemplates) Pretty(pretty bool) *ComponentTemplates {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/componenttemplates/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/componenttemplates/response.go
index d06c18e608..f2273f0cdf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/componenttemplates/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/componenttemplates/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package componenttemplates
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package componenttemplates
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/component_templates/CatComponentTemplatesResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/component_templates/CatComponentTemplatesResponse.ts#L22-L24
type Response []types.CatComponentTemplate
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/count/count.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/count/count.go
index cfcc6d8cc1..fb259694e1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/count/count.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/count/count.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Provides quick access to the document count of the entire cluster, or
// individual indices.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -269,7 +269,7 @@ func (r Count) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -308,3 +308,110 @@ func (r *Count) Index(index string) *Count {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Count) Format(format string) *Count {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Count) H(names ...string) *Count {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Count) Help(help bool) *Count {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Count) Local(local bool) *Count {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Count) MasterTimeout(duration string) *Count {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Count) S(names ...string) *Count {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Count) V(v bool) *Count {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Count) ErrorTrace(errortrace bool) *Count {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Count) FilterPath(filterpaths ...string) *Count {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Count) Human(human bool) *Count {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Count) Pretty(pretty bool) *Count {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/count/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/count/response.go
index 0f667326c5..af5a9656d3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/count/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/count/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package count
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package count
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/count/CatCountResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/count/CatCountResponse.ts#L22-L24
type Response []types.CountRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/fielddata/fielddata.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/fielddata/fielddata.go
index 8cfdd9d801..722273eba8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/fielddata/fielddata.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/fielddata/fielddata.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Shows how much heap memory is currently being used by fielddata on every data
// node in the cluster.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -270,7 +270,7 @@ func (r Fielddata) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -315,3 +315,110 @@ func (r *Fielddata) Bytes(bytes bytes.Bytes) *Fielddata {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Fielddata) Format(format string) *Fielddata {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Fielddata) H(names ...string) *Fielddata {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Fielddata) Help(help bool) *Fielddata {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Fielddata) Local(local bool) *Fielddata {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Fielddata) MasterTimeout(duration string) *Fielddata {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Fielddata) S(names ...string) *Fielddata {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Fielddata) V(v bool) *Fielddata {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Fielddata) ErrorTrace(errortrace bool) *Fielddata {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Fielddata) FilterPath(filterpaths ...string) *Fielddata {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Fielddata) Human(human bool) *Fielddata {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Fielddata) Pretty(pretty bool) *Fielddata {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/fielddata/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/fielddata/response.go
index 882c7e9425..89d8592138 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/fielddata/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/fielddata/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package fielddata
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package fielddata
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/fielddata/CatFielddataResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/fielddata/CatFielddataResponse.ts#L22-L24
type Response []types.FielddataRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/health/health.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/health/health.go
index 97c08ff3f5..7cfb28b5f1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/health/health.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/health/health.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns a concise representation of the cluster health.
package health
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -250,7 +249,7 @@ func (r Health) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -293,3 +292,110 @@ func (r *Health) Ts(ts bool) *Health {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Health) Format(format string) *Health {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Health) H(names ...string) *Health {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Health) Help(help bool) *Health {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Health) Local(local bool) *Health {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Health) MasterTimeout(duration string) *Health {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Health) S(names ...string) *Health {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Health) V(v bool) *Health {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Health) ErrorTrace(errortrace bool) *Health {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Health) FilterPath(filterpaths ...string) *Health {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Health) Human(human bool) *Health {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Health) Pretty(pretty bool) *Health {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/health/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/health/response.go
index f11f0a282b..bd1aeec0d9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/health/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/health/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package health
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package health
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/health/CatHealthResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/health/CatHealthResponse.ts#L22-L24
type Response []types.HealthRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/help/help.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/help/help.go
index 3bc55f75f2..3c4336109d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/help/help.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/help/help.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns help for the Cat APIs.
package help
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -246,7 +246,7 @@ func (r Help) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -273,3 +273,110 @@ func (r *Help) Header(key, value string) *Help {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Help) Format(format string) *Help {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Help) H(names ...string) *Help {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Help) Help(help bool) *Help {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Help) Local(local bool) *Help {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Help) MasterTimeout(duration string) *Help {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Help) S(names ...string) *Help {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Help) V(v bool) *Help {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Help) ErrorTrace(errortrace bool) *Help {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Help) FilterPath(filterpaths ...string) *Help {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Help) Human(human bool) *Help {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Help) Pretty(pretty bool) *Help {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/help/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/help/response.go
index 9affa10cce..88890f0d78 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/help/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/help/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package help
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package help
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/help/CatHelpResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/help/CatHelpResponse.ts#L22-L24
type Response []types.HelpRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/indices/indices.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/indices/indices.go
index ae174448e9..e0b703e01b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/indices/indices.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/indices/indices.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about indices: number of primaries and replicas, document
// counts, disk size, ...
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -274,7 +273,7 @@ func (r Indices) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -367,3 +366,110 @@ func (r *Indices) Time(time timeunit.TimeUnit) *Indices {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Indices) Format(format string) *Indices {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Indices) H(names ...string) *Indices {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Indices) Help(help bool) *Indices {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Indices) Local(local bool) *Indices {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Indices) MasterTimeout(duration string) *Indices {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Indices) S(names ...string) *Indices {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Indices) V(v bool) *Indices {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Indices) ErrorTrace(errortrace bool) *Indices {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Indices) FilterPath(filterpaths ...string) *Indices {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Indices) Human(human bool) *Indices {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Indices) Pretty(pretty bool) *Indices {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/indices/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/indices/response.go
index a6d8bab1b1..fc2c6a2f2a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/indices/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/indices/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package indices
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package indices
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/indices/CatIndicesResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/indices/CatIndicesResponse.ts#L22-L24
type Response []types.IndicesRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/master/master.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/master/master.go
index cb689b157f..2f57f39a84 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/master/master.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/master/master.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about the master node.
package master
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r Master) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,110 @@ func (r *Master) Header(key, value string) *Master {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Master) Format(format string) *Master {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Master) H(names ...string) *Master {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Master) Help(help bool) *Master {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Master) Local(local bool) *Master {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Master) MasterTimeout(duration string) *Master {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Master) S(names ...string) *Master {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Master) V(v bool) *Master {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Master) ErrorTrace(errortrace bool) *Master {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Master) FilterPath(filterpaths ...string) *Master {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Master) Human(human bool) *Master {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Master) Pretty(pretty bool) *Master {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/master/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/master/response.go
index ada7555a67..7e766d7548 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/master/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/master/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package master
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package master
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/master/CatMasterResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/master/CatMasterResponse.ts#L22-L24
type Response []types.MasterRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldatafeeds/ml_datafeeds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldatafeeds/ml_datafeeds.go
index 1b81556c88..a96be4a15a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldatafeeds/ml_datafeeds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldatafeeds/ml_datafeeds.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Gets configuration and usage information about datafeeds.
package mldatafeeds
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -274,7 +273,7 @@ func (r MlDatafeeds) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -361,3 +360,92 @@ func (r *MlDatafeeds) Time(time timeunit.TimeUnit) *MlDatafeeds {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *MlDatafeeds) Format(format string) *MlDatafeeds {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *MlDatafeeds) Help(help bool) *MlDatafeeds {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *MlDatafeeds) Local(local bool) *MlDatafeeds {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *MlDatafeeds) MasterTimeout(duration string) *MlDatafeeds {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *MlDatafeeds) V(v bool) *MlDatafeeds {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *MlDatafeeds) ErrorTrace(errortrace bool) *MlDatafeeds {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *MlDatafeeds) FilterPath(filterpaths ...string) *MlDatafeeds {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *MlDatafeeds) Human(human bool) *MlDatafeeds {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *MlDatafeeds) Pretty(pretty bool) *MlDatafeeds {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldatafeeds/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldatafeeds/response.go
index 22db56f898..e158aa4049 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldatafeeds/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldatafeeds/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package mldatafeeds
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package mldatafeeds
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/ml_datafeeds/CatDatafeedsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_datafeeds/CatDatafeedsResponse.ts#L22-L24
type Response []types.DatafeedsRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldataframeanalytics/ml_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldataframeanalytics/ml_data_frame_analytics.go
index 691f15e4f3..d4e2efc3d7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldataframeanalytics/ml_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldataframeanalytics/ml_data_frame_analytics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Gets configuration and usage information about data frame analytics jobs.
package mldataframeanalytics
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -278,7 +277,7 @@ func (r MlDataFrameAnalytics) IsSuccess(providedCtx context.Context) (bool, erro
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -364,3 +363,92 @@ func (r *MlDataFrameAnalytics) Time(duration string) *MlDataFrameAnalytics {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *MlDataFrameAnalytics) Format(format string) *MlDataFrameAnalytics {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *MlDataFrameAnalytics) Help(help bool) *MlDataFrameAnalytics {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *MlDataFrameAnalytics) Local(local bool) *MlDataFrameAnalytics {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *MlDataFrameAnalytics) MasterTimeout(duration string) *MlDataFrameAnalytics {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *MlDataFrameAnalytics) V(v bool) *MlDataFrameAnalytics {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *MlDataFrameAnalytics) ErrorTrace(errortrace bool) *MlDataFrameAnalytics {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *MlDataFrameAnalytics) FilterPath(filterpaths ...string) *MlDataFrameAnalytics {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *MlDataFrameAnalytics) Human(human bool) *MlDataFrameAnalytics {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *MlDataFrameAnalytics) Pretty(pretty bool) *MlDataFrameAnalytics {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldataframeanalytics/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldataframeanalytics/response.go
index 4e94d5e2e5..5dd86fa733 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldataframeanalytics/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldataframeanalytics/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package mldataframeanalytics
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package mldataframeanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsResponse.ts#L22-L24
type Response []types.DataFrameAnalyticsRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mljobs/ml_jobs.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mljobs/ml_jobs.go
index efb2f52b38..46c792f4eb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mljobs/ml_jobs.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mljobs/ml_jobs.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Gets configuration and usage information about anomaly detection jobs.
package mljobs
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -275,7 +274,7 @@ func (r MlJobs) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -370,3 +369,92 @@ func (r *MlJobs) Time(time timeunit.TimeUnit) *MlJobs {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *MlJobs) Format(format string) *MlJobs {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *MlJobs) Help(help bool) *MlJobs {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *MlJobs) Local(local bool) *MlJobs {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *MlJobs) MasterTimeout(duration string) *MlJobs {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *MlJobs) V(v bool) *MlJobs {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *MlJobs) ErrorTrace(errortrace bool) *MlJobs {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *MlJobs) FilterPath(filterpaths ...string) *MlJobs {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *MlJobs) Human(human bool) *MlJobs {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *MlJobs) Pretty(pretty bool) *MlJobs {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mljobs/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mljobs/response.go
index b2f9b75240..6dd8e7c3e9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mljobs/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mljobs/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package mljobs
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package mljobs
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/ml_jobs/CatJobsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_jobs/CatJobsResponse.ts#L22-L24
type Response []types.JobsRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mltrainedmodels/ml_trained_models.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mltrainedmodels/ml_trained_models.go
index 4e38f23491..65f6b5ddbd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mltrainedmodels/ml_trained_models.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mltrainedmodels/ml_trained_models.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Gets configuration and usage information about inference trained models.
package mltrainedmodels
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -274,7 +273,7 @@ func (r MlTrainedModels) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -373,3 +372,92 @@ func (r *MlTrainedModels) Size(size int) *MlTrainedModels {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *MlTrainedModels) Format(format string) *MlTrainedModels {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *MlTrainedModels) Help(help bool) *MlTrainedModels {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *MlTrainedModels) Local(local bool) *MlTrainedModels {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *MlTrainedModels) MasterTimeout(duration string) *MlTrainedModels {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *MlTrainedModels) V(v bool) *MlTrainedModels {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *MlTrainedModels) ErrorTrace(errortrace bool) *MlTrainedModels {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *MlTrainedModels) FilterPath(filterpaths ...string) *MlTrainedModels {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *MlTrainedModels) Human(human bool) *MlTrainedModels {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *MlTrainedModels) Pretty(pretty bool) *MlTrainedModels {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mltrainedmodels/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mltrainedmodels/response.go
index 2256069f5c..3bd063c697 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mltrainedmodels/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/mltrainedmodels/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package mltrainedmodels
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package mltrainedmodels
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/ml_trained_models/CatTrainedModelsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_trained_models/CatTrainedModelsResponse.ts#L22-L24
type Response []types.TrainedModelsRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodeattrs/nodeattrs.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodeattrs/nodeattrs.go
index 40405bceaf..5db2dffb7a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodeattrs/nodeattrs.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodeattrs/nodeattrs.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about custom node attributes.
package nodeattrs
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r Nodeattrs) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,110 @@ func (r *Nodeattrs) Header(key, value string) *Nodeattrs {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Nodeattrs) Format(format string) *Nodeattrs {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Nodeattrs) H(names ...string) *Nodeattrs {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Nodeattrs) Help(help bool) *Nodeattrs {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Nodeattrs) Local(local bool) *Nodeattrs {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Nodeattrs) MasterTimeout(duration string) *Nodeattrs {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Nodeattrs) S(names ...string) *Nodeattrs {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Nodeattrs) V(v bool) *Nodeattrs {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Nodeattrs) ErrorTrace(errortrace bool) *Nodeattrs {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Nodeattrs) FilterPath(filterpaths ...string) *Nodeattrs {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Nodeattrs) Human(human bool) *Nodeattrs {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Nodeattrs) Pretty(pretty bool) *Nodeattrs {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodeattrs/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodeattrs/response.go
index 3b04cb59d8..2b0a90f4c1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodeattrs/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodeattrs/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package nodeattrs
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package nodeattrs
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/nodeattrs/CatNodeAttributesResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/nodeattrs/CatNodeAttributesResponse.ts#L22-L24
type Response []types.NodeAttributesRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodes/nodes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodes/nodes.go
index 2a8bd91144..baf009c7a9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodes/nodes.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodes/nodes.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns basic statistics about performance of cluster nodes.
package nodes
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -250,7 +249,7 @@ func (r Nodes) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -302,3 +301,110 @@ func (r *Nodes) IncludeUnloadedSegments(includeunloadedsegments bool) *Nodes {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Nodes) Format(format string) *Nodes {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Nodes) H(names ...string) *Nodes {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Nodes) Help(help bool) *Nodes {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Nodes) Local(local bool) *Nodes {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Nodes) MasterTimeout(duration string) *Nodes {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Nodes) S(names ...string) *Nodes {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Nodes) V(v bool) *Nodes {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Nodes) ErrorTrace(errortrace bool) *Nodes {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Nodes) FilterPath(filterpaths ...string) *Nodes {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Nodes) Human(human bool) *Nodes {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Nodes) Pretty(pretty bool) *Nodes {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodes/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodes/response.go
index 6ea5a28881..8bebfe799f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodes/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodes/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package nodes
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package nodes
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/nodes/CatNodesResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/nodes/CatNodesResponse.ts#L22-L24
type Response []types.NodesRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/pendingtasks/pending_tasks.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/pendingtasks/pending_tasks.go
index f7d4e49d62..ba7e7dd4a7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/pendingtasks/pending_tasks.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/pendingtasks/pending_tasks.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns a concise representation of the cluster pending tasks.
package pendingtasks
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r PendingTasks) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,110 @@ func (r *PendingTasks) Header(key, value string) *PendingTasks {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *PendingTasks) Format(format string) *PendingTasks {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *PendingTasks) H(names ...string) *PendingTasks {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *PendingTasks) Help(help bool) *PendingTasks {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *PendingTasks) Local(local bool) *PendingTasks {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *PendingTasks) MasterTimeout(duration string) *PendingTasks {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *PendingTasks) S(names ...string) *PendingTasks {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *PendingTasks) V(v bool) *PendingTasks {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PendingTasks) ErrorTrace(errortrace bool) *PendingTasks {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PendingTasks) FilterPath(filterpaths ...string) *PendingTasks {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PendingTasks) Human(human bool) *PendingTasks {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PendingTasks) Pretty(pretty bool) *PendingTasks {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/pendingtasks/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/pendingtasks/response.go
index 81730c2455..c61a65d636 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/pendingtasks/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/pendingtasks/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package pendingtasks
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package pendingtasks
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/pending_tasks/CatPendingTasksResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/pending_tasks/CatPendingTasksResponse.ts#L22-L24
type Response []types.PendingTasksRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/plugins/plugins.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/plugins/plugins.go
index cd2aed54c9..0c486aaac7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/plugins/plugins.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/plugins/plugins.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about installed plugins across nodes node.
package plugins
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r Plugins) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,110 @@ func (r *Plugins) Header(key, value string) *Plugins {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Plugins) Format(format string) *Plugins {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Plugins) H(names ...string) *Plugins {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Plugins) Help(help bool) *Plugins {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Plugins) Local(local bool) *Plugins {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Plugins) MasterTimeout(duration string) *Plugins {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Plugins) S(names ...string) *Plugins {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Plugins) V(v bool) *Plugins {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Plugins) ErrorTrace(errortrace bool) *Plugins {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Plugins) FilterPath(filterpaths ...string) *Plugins {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Plugins) Human(human bool) *Plugins {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Plugins) Pretty(pretty bool) *Plugins {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/plugins/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/plugins/response.go
index b4386c25af..173ebcf1f1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/plugins/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/plugins/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package plugins
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package plugins
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/plugins/CatPluginsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/plugins/CatPluginsResponse.ts#L22-L24
type Response []types.PluginsRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/recovery/recovery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/recovery/recovery.go
index 7b8db30138..53f1ca8449 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/recovery/recovery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/recovery/recovery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about index shard recoveries, both on-going completed.
package recovery
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -269,7 +268,7 @@ func (r Recovery) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -332,3 +331,110 @@ func (r *Recovery) Detailed(detailed bool) *Recovery {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Recovery) Format(format string) *Recovery {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Recovery) H(names ...string) *Recovery {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Recovery) Help(help bool) *Recovery {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Recovery) Local(local bool) *Recovery {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Recovery) MasterTimeout(duration string) *Recovery {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Recovery) S(names ...string) *Recovery {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Recovery) V(v bool) *Recovery {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Recovery) ErrorTrace(errortrace bool) *Recovery {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Recovery) FilterPath(filterpaths ...string) *Recovery {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Recovery) Human(human bool) *Recovery {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Recovery) Pretty(pretty bool) *Recovery {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/recovery/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/recovery/response.go
index 02b965bcf3..49ac15aa06 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/recovery/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/recovery/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package recovery
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package recovery
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/recovery/CatRecoveryResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/recovery/CatRecoveryResponse.ts#L22-L24
type Response []types.RecoveryRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/repositories/repositories.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/repositories/repositories.go
index 250e854347..87706a5ff9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/repositories/repositories.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/repositories/repositories.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about snapshot repositories registered in the cluster.
package repositories
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r Repositories) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,110 @@ func (r *Repositories) Header(key, value string) *Repositories {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Repositories) Format(format string) *Repositories {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Repositories) H(names ...string) *Repositories {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Repositories) Help(help bool) *Repositories {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Repositories) Local(local bool) *Repositories {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Repositories) MasterTimeout(duration string) *Repositories {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Repositories) S(names ...string) *Repositories {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Repositories) V(v bool) *Repositories {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Repositories) ErrorTrace(errortrace bool) *Repositories {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Repositories) FilterPath(filterpaths ...string) *Repositories {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Repositories) Human(human bool) *Repositories {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Repositories) Pretty(pretty bool) *Repositories {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/repositories/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/repositories/response.go
index 8bde69ba64..e4ce4ac3f2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/repositories/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/repositories/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package repositories
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package repositories
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/repositories/CatRepositoriesResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/repositories/CatRepositoriesResponse.ts#L22-L24
type Response []types.RepositoriesRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/segments/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/segments/response.go
index 6cc0e7d248..94e2faf3fd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/segments/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/segments/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package segments
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package segments
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/segments/CatSegmentsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/segments/CatSegmentsResponse.ts#L22-L24
type Response []types.SegmentsRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/segments/segments.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/segments/segments.go
index 41c7d7067b..ec0de1b4ce 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/segments/segments.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/segments/segments.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Provides low-level information about the segments in the shards of an index.
package segments
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -268,7 +268,7 @@ func (r Segments) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -316,3 +316,110 @@ func (r *Segments) Bytes(bytes bytes.Bytes) *Segments {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Segments) Format(format string) *Segments {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Segments) H(names ...string) *Segments {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Segments) Help(help bool) *Segments {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Segments) Local(local bool) *Segments {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Segments) MasterTimeout(duration string) *Segments {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Segments) S(names ...string) *Segments {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Segments) V(v bool) *Segments {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Segments) ErrorTrace(errortrace bool) *Segments {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Segments) FilterPath(filterpaths ...string) *Segments {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Segments) Human(human bool) *Segments {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Segments) Pretty(pretty bool) *Segments {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/shards/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/shards/response.go
index c1537d78c1..3d84d1d8c2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/shards/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/shards/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package shards
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package shards
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/shards/CatShardsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/shards/CatShardsResponse.ts#L22-L24
type Response []types.ShardsRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/shards/shards.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/shards/shards.go
index 9efa008c9b..1ab817f44d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/shards/shards.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/shards/shards.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Provides a detailed view of shard allocation on nodes.
package shards
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -268,7 +268,7 @@ func (r Shards) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -316,3 +316,110 @@ func (r *Shards) Bytes(bytes bytes.Bytes) *Shards {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Shards) Format(format string) *Shards {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Shards) H(names ...string) *Shards {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Shards) Help(help bool) *Shards {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Shards) Local(local bool) *Shards {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Shards) MasterTimeout(duration string) *Shards {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Shards) S(names ...string) *Shards {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Shards) V(v bool) *Shards {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Shards) ErrorTrace(errortrace bool) *Shards {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Shards) FilterPath(filterpaths ...string) *Shards {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Shards) Human(human bool) *Shards {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Shards) Pretty(pretty bool) *Shards {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/snapshots/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/snapshots/response.go
index 753dec78ef..8f012c3950 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/snapshots/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/snapshots/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package snapshots
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package snapshots
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/snapshots/CatSnapshotsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/snapshots/CatSnapshotsResponse.ts#L22-L24
type Response []types.SnapshotsRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/snapshots/snapshots.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/snapshots/snapshots.go
index 7353f2c8fa..c49901dc23 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/snapshots/snapshots.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/snapshots/snapshots.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns all snapshots in a specific repository.
package snapshots
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -268,7 +267,7 @@ func (r Snapshots) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -316,3 +315,110 @@ func (r *Snapshots) IgnoreUnavailable(ignoreunavailable bool) *Snapshots {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Snapshots) Format(format string) *Snapshots {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Snapshots) H(names ...string) *Snapshots {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Snapshots) Help(help bool) *Snapshots {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Snapshots) Local(local bool) *Snapshots {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Snapshots) MasterTimeout(duration string) *Snapshots {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Snapshots) S(names ...string) *Snapshots {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Snapshots) V(v bool) *Snapshots {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Snapshots) ErrorTrace(errortrace bool) *Snapshots {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Snapshots) FilterPath(filterpaths ...string) *Snapshots {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Snapshots) Human(human bool) *Snapshots {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Snapshots) Pretty(pretty bool) *Snapshots {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/tasks/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/tasks/response.go
index e85cc3b7e2..5e50135abf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/tasks/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/tasks/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package tasks
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package tasks
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/tasks/CatTasksResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/tasks/CatTasksResponse.ts#L22-L24
type Response []types.TasksRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/tasks/tasks.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/tasks/tasks.go
index c509b70680..c8f36d4f9d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/tasks/tasks.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/tasks/tasks.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about the tasks currently executing on one or more nodes
// in the cluster.
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -251,7 +250,7 @@ func (r Tasks) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -318,3 +317,110 @@ func (r *Tasks) ParentTaskId(parenttaskid string) *Tasks {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Tasks) Format(format string) *Tasks {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Tasks) H(names ...string) *Tasks {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Tasks) Help(help bool) *Tasks {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Tasks) Local(local bool) *Tasks {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Tasks) MasterTimeout(duration string) *Tasks {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Tasks) S(names ...string) *Tasks {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Tasks) V(v bool) *Tasks {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Tasks) ErrorTrace(errortrace bool) *Tasks {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Tasks) FilterPath(filterpaths ...string) *Tasks {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Tasks) Human(human bool) *Tasks {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Tasks) Pretty(pretty bool) *Tasks {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/templates/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/templates/response.go
index acf2ad7a8b..feabf6251e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/templates/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/templates/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package templates
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package templates
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/templates/CatTemplatesResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/templates/CatTemplatesResponse.ts#L22-L24
type Response []types.TemplatesRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/templates/templates.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/templates/templates.go
index ab78ad9930..91708fac9f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/templates/templates.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/templates/templates.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about existing templates.
package templates
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -267,7 +267,7 @@ func (r Templates) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -304,3 +304,110 @@ func (r *Templates) Name(name string) *Templates {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Templates) Format(format string) *Templates {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *Templates) H(names ...string) *Templates {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Templates) Help(help bool) *Templates {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Templates) Local(local bool) *Templates {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Templates) MasterTimeout(duration string) *Templates {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *Templates) S(names ...string) *Templates {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Templates) V(v bool) *Templates {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Templates) ErrorTrace(errortrace bool) *Templates {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Templates) FilterPath(filterpaths ...string) *Templates {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Templates) Human(human bool) *Templates {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Templates) Pretty(pretty bool) *Templates {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/threadpool/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/threadpool/response.go
index 21d02480c3..86364ae5cd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/threadpool/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/threadpool/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package threadpool
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package threadpool
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/thread_pool/CatThreadPoolResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/thread_pool/CatThreadPoolResponse.ts#L22-L24
type Response []types.ThreadPoolRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/threadpool/thread_pool.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/threadpool/thread_pool.go
index 6037b11236..cebcff3517 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/threadpool/thread_pool.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/threadpool/thread_pool.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns cluster-wide thread pool statistics per node.
// By default the active, queue and rejected statistics are returned for all
@@ -29,9 +29,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -272,7 +272,7 @@ func (r ThreadPool) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -317,3 +317,110 @@ func (r *ThreadPool) Time(time timeunit.TimeUnit) *ThreadPool {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *ThreadPool) Format(format string) *ThreadPool {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// H List of columns to appear in the response. Supports simple wildcards.
+// API name: h
+func (r *ThreadPool) H(names ...string) *ThreadPool {
+ r.values.Set("h", strings.Join(names, ","))
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *ThreadPool) Help(help bool) *ThreadPool {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *ThreadPool) Local(local bool) *ThreadPool {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *ThreadPool) MasterTimeout(duration string) *ThreadPool {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// S List of columns that determine how the table should be sorted.
+// Sorting defaults to ascending and can be changed by setting `:asc`
+// or `:desc` as a suffix to the column name.
+// API name: s
+func (r *ThreadPool) S(names ...string) *ThreadPool {
+ r.values.Set("s", strings.Join(names, ","))
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *ThreadPool) V(v bool) *ThreadPool {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ThreadPool) ErrorTrace(errortrace bool) *ThreadPool {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ThreadPool) FilterPath(filterpaths ...string) *ThreadPool {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ThreadPool) Human(human bool) *ThreadPool {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ThreadPool) Pretty(pretty bool) *ThreadPool {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/transforms/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/transforms/response.go
index 66c585d91d..ba1c0a24e0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/transforms/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/transforms/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package transforms
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package transforms
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/transforms/CatTransformsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/transforms/CatTransformsResponse.ts#L22-L24
type Response []types.TransformsRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/transforms/transforms.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/transforms/transforms.go
index 42becc960f..7894838b44 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/transforms/transforms.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cat/transforms/transforms.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Gets configuration and usage information about transforms.
package transforms
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -270,7 +269,7 @@ func (r Transforms) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -372,3 +371,92 @@ func (r *Transforms) Size(size int) *Transforms {
return r
}
+
+// Format Specifies the format to return the columnar data in, can be set to
+// `text`, `json`, `cbor`, `yaml`, or `smile`.
+// API name: format
+func (r *Transforms) Format(format string) *Transforms {
+ r.values.Set("format", format)
+
+ return r
+}
+
+// Help When set to `true` will output available columns. This option
+// can't be combined with any other query string option.
+// API name: help
+func (r *Transforms) Help(help bool) *Transforms {
+ r.values.Set("help", strconv.FormatBool(help))
+
+ return r
+}
+
+// Local If `true`, the request computes the list of selected nodes from the
+// local cluster state. If `false` the list of selected nodes are computed
+// from the cluster state of the master node. In both cases the coordinating
+// node will send requests for further information to each selected node.
+// API name: local
+func (r *Transforms) Local(local bool) *Transforms {
+ r.values.Set("local", strconv.FormatBool(local))
+
+ return r
+}
+
+// MasterTimeout Period to wait for a connection to the master node.
+// API name: master_timeout
+func (r *Transforms) MasterTimeout(duration string) *Transforms {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// V When set to `true` will enable verbose output.
+// API name: v
+func (r *Transforms) V(v bool) *Transforms {
+ r.values.Set("v", strconv.FormatBool(v))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Transforms) ErrorTrace(errortrace bool) *Transforms {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Transforms) FilterPath(filterpaths ...string) *Transforms {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Transforms) Human(human bool) *Transforms {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Transforms) Pretty(pretty bool) *Transforms {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/deleteautofollowpattern/delete_auto_follow_pattern.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/deleteautofollowpattern/delete_auto_follow_pattern.go
index ab79258450..8074b354b1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/deleteautofollowpattern/delete_auto_follow_pattern.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/deleteautofollowpattern/delete_auto_follow_pattern.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes auto-follow patterns.
package deleteautofollowpattern
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r DeleteAutoFollowPattern) IsSuccess(providedCtx context.Context) (bool, e
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *DeleteAutoFollowPattern) _name(name string) *DeleteAutoFollowPattern {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteAutoFollowPattern) ErrorTrace(errortrace bool) *DeleteAutoFollowPattern {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteAutoFollowPattern) FilterPath(filterpaths ...string) *DeleteAutoFollowPattern {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteAutoFollowPattern) Human(human bool) *DeleteAutoFollowPattern {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteAutoFollowPattern) Pretty(pretty bool) *DeleteAutoFollowPattern {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/deleteautofollowpattern/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/deleteautofollowpattern/response.go
index be8f88f3de..5849edba2a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/deleteautofollowpattern/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/deleteautofollowpattern/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deleteautofollowpattern
// Response holds the response body struct for the package deleteautofollowpattern
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/follow/follow.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/follow/follow.go
index 921b82f698..1fd6c1ce52 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/follow/follow.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/follow/follow.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a new follower index configured to follow the referenced leader
// index.
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -327,6 +328,50 @@ func (r *Follow) WaitForActiveShards(waitforactiveshards string) *Follow {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Follow) ErrorTrace(errortrace bool) *Follow {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Follow) FilterPath(filterpaths ...string) *Follow {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Follow) Human(human bool) *Follow {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Follow) Pretty(pretty bool) *Follow {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: leader_index
func (r *Follow) LeaderIndex(indexname string) *Follow {
r.req.LeaderIndex = &indexname
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/follow/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/follow/request.go
index 7dff30d42e..d7fe8e1937 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/follow/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/follow/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package follow
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package follow
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/follow/CreateFollowIndexRequest.ts#L25-L51
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/follow/CreateFollowIndexRequest.ts#L25-L51
type Request struct {
LeaderIndex *string `json:"leader_index,omitempty"`
MaxOutstandingReadRequests *int64 `json:"max_outstanding_read_requests,omitempty"`
@@ -52,6 +52,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -87,7 +88,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "max_outstanding_read_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -102,7 +103,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "max_outstanding_write_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +118,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "max_read_request_operation_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -149,7 +150,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "max_write_buffer_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -176,7 +177,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
s.MaxWriteBufferSize = &o
case "max_write_request_operation_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/follow/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/follow/response.go
index 87175e1553..4f27378cc9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/follow/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/follow/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package follow
// Response holds the response body struct for the package follow
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/follow/CreateFollowIndexResponse.ts#L20-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/follow/CreateFollowIndexResponse.ts#L20-L26
type Response struct {
FollowIndexCreated bool `json:"follow_index_created"`
FollowIndexShardsAcked bool `json:"follow_index_shards_acked"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followinfo/follow_info.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followinfo/follow_info.go
index a7cfcd7ec3..3e7a7585f9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followinfo/follow_info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followinfo/follow_info.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information about all follower indices, including parameters and
// status for each follower index
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r FollowInfo) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -301,3 +301,47 @@ func (r *FollowInfo) _index(index string) *FollowInfo {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *FollowInfo) ErrorTrace(errortrace bool) *FollowInfo {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *FollowInfo) FilterPath(filterpaths ...string) *FollowInfo {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *FollowInfo) Human(human bool) *FollowInfo {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *FollowInfo) Pretty(pretty bool) *FollowInfo {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followinfo/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followinfo/response.go
index 3d10587622..13fbc9cc9b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followinfo/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followinfo/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package followinfo
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package followinfo
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/follow_info/FollowInfoResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/follow_info/FollowInfoResponse.ts#L22-L24
type Response struct {
FollowerIndices []types.FollowerIndex `json:"follower_indices"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followstats/follow_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followstats/follow_stats.go
index 32cf344f97..19920330b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followstats/follow_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followstats/follow_stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves follower stats. return shard-level stats about the following tasks
// associated with each shard for the specified indices.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r FollowStats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -301,3 +301,47 @@ func (r *FollowStats) _index(index string) *FollowStats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *FollowStats) ErrorTrace(errortrace bool) *FollowStats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *FollowStats) FilterPath(filterpaths ...string) *FollowStats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *FollowStats) Human(human bool) *FollowStats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *FollowStats) Pretty(pretty bool) *FollowStats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followstats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followstats/response.go
index d8f94aa2a1..6e5e9f168b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followstats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followstats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package followstats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package followstats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/follow_stats/FollowIndexStatsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/follow_stats/FollowIndexStatsResponse.ts#L22-L24
type Response struct {
Indices []types.FollowIndexStats `json:"indices"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/forgetfollower/forget_follower.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/forgetfollower/forget_follower.go
index 1d249010dc..3c6dedaa7c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/forgetfollower/forget_follower.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/forgetfollower/forget_follower.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Removes the follower retention leases from the leader.
package forgetfollower
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -315,6 +316,50 @@ func (r *ForgetFollower) _index(index string) *ForgetFollower {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ForgetFollower) ErrorTrace(errortrace bool) *ForgetFollower {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ForgetFollower) FilterPath(filterpaths ...string) *ForgetFollower {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ForgetFollower) Human(human bool) *ForgetFollower {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ForgetFollower) Pretty(pretty bool) *ForgetFollower {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: follower_cluster
func (r *ForgetFollower) FollowerCluster(followercluster string) *ForgetFollower {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/forgetfollower/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/forgetfollower/request.go
index 66eb35f713..ac21f05881 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/forgetfollower/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/forgetfollower/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package forgetfollower
@@ -31,7 +31,7 @@ import (
// Request holds the request body struct for the package forgetfollower
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts#L23-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts#L23-L38
type Request struct {
FollowerCluster *string `json:"follower_cluster,omitempty"`
FollowerIndex *string `json:"follower_index,omitempty"`
@@ -42,6 +42,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/forgetfollower/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/forgetfollower/response.go
index d3a315425f..b0a8aa7942 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/forgetfollower/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/forgetfollower/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package forgetfollower
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package forgetfollower
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/forget_follower/ForgetFollowerIndexResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/forget_follower/ForgetFollowerIndexResponse.ts#L22-L24
type Response struct {
Shards_ types.ShardStatistics `json:"_shards"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/getautofollowpattern/get_auto_follow_pattern.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/getautofollowpattern/get_auto_follow_pattern.go
index 236f9a019e..9569d2b024 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/getautofollowpattern/get_auto_follow_pattern.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/getautofollowpattern/get_auto_follow_pattern.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Gets configured auto-follow patterns. Returns the specified auto-follow
// pattern collection.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -269,7 +269,7 @@ func (r GetAutoFollowPattern) IsSuccess(providedCtx context.Context) (bool, erro
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -306,3 +306,47 @@ func (r *GetAutoFollowPattern) Name(name string) *GetAutoFollowPattern {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetAutoFollowPattern) ErrorTrace(errortrace bool) *GetAutoFollowPattern {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetAutoFollowPattern) FilterPath(filterpaths ...string) *GetAutoFollowPattern {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetAutoFollowPattern) Human(human bool) *GetAutoFollowPattern {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetAutoFollowPattern) Pretty(pretty bool) *GetAutoFollowPattern {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/getautofollowpattern/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/getautofollowpattern/response.go
index 6589995d50..d5ebfdd943 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/getautofollowpattern/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/getautofollowpattern/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getautofollowpattern
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getautofollowpattern
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts#L22-L24
type Response struct {
Patterns []types.AutoFollowPattern `json:"patterns"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pauseautofollowpattern/pause_auto_follow_pattern.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pauseautofollowpattern/pause_auto_follow_pattern.go
index 00bda631c4..cc7eca1b0f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pauseautofollowpattern/pause_auto_follow_pattern.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pauseautofollowpattern/pause_auto_follow_pattern.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Pauses an auto-follow pattern
package pauseautofollowpattern
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r PauseAutoFollowPattern) IsSuccess(providedCtx context.Context) (bool, er
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -301,3 +301,47 @@ func (r *PauseAutoFollowPattern) _name(name string) *PauseAutoFollowPattern {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PauseAutoFollowPattern) ErrorTrace(errortrace bool) *PauseAutoFollowPattern {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PauseAutoFollowPattern) FilterPath(filterpaths ...string) *PauseAutoFollowPattern {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PauseAutoFollowPattern) Human(human bool) *PauseAutoFollowPattern {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PauseAutoFollowPattern) Pretty(pretty bool) *PauseAutoFollowPattern {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pauseautofollowpattern/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pauseautofollowpattern/response.go
index a0e48cc314..0f5ed12566 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pauseautofollowpattern/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pauseautofollowpattern/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package pauseautofollowpattern
// Response holds the response body struct for the package pauseautofollowpattern
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pausefollow/pause_follow.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pausefollow/pause_follow.go
index 0898926f1f..2d1f046008 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pausefollow/pause_follow.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pausefollow/pause_follow.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Pauses a follower index. The follower index will not fetch any additional
// operations from the leader index.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r PauseFollow) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -300,3 +300,47 @@ func (r *PauseFollow) _index(index string) *PauseFollow {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PauseFollow) ErrorTrace(errortrace bool) *PauseFollow {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PauseFollow) FilterPath(filterpaths ...string) *PauseFollow {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PauseFollow) Human(human bool) *PauseFollow {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PauseFollow) Pretty(pretty bool) *PauseFollow {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pausefollow/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pausefollow/response.go
index b7bc868220..b75e7bb691 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pausefollow/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pausefollow/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package pausefollow
// Response holds the response body struct for the package pausefollow
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/pause_follow/PauseFollowIndexResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/pause_follow/PauseFollowIndexResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/putautofollowpattern/put_auto_follow_pattern.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/putautofollowpattern/put_auto_follow_pattern.go
index ec83ccba07..8c92d5641a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/putautofollowpattern/put_auto_follow_pattern.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/putautofollowpattern/put_auto_follow_pattern.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a new named collection of auto-follow patterns against a specified
// remote cluster. Newly created indices on the remote cluster matching any of
@@ -32,6 +32,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -318,6 +319,50 @@ func (r *PutAutoFollowPattern) _name(name string) *PutAutoFollowPattern {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutAutoFollowPattern) ErrorTrace(errortrace bool) *PutAutoFollowPattern {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutAutoFollowPattern) FilterPath(filterpaths ...string) *PutAutoFollowPattern {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutAutoFollowPattern) Human(human bool) *PutAutoFollowPattern {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutAutoFollowPattern) Pretty(pretty bool) *PutAutoFollowPattern {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// FollowIndexPattern The name of follower index. The template {{leader_index}} can be used to
// derive the name of the follower index from the name of the leader index. When
// following a data stream, use {{leader_index}}; CCR does not support changes
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/putautofollowpattern/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/putautofollowpattern/request.go
index ca33120149..85160f7378 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/putautofollowpattern/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/putautofollowpattern/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putautofollowpattern
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package putautofollowpattern
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L112
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L112
type Request struct {
// FollowIndexPattern The name of follower index. The template {{leader_index}} can be used to
@@ -93,6 +93,7 @@ func NewRequest() *Request {
r := &Request{
Settings: make(map[string]json.RawMessage, 0),
}
+
return r
}
@@ -139,7 +140,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "max_outstanding_read_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -155,7 +156,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "max_outstanding_write_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -171,7 +172,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "max_read_request_operation_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -197,7 +198,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "max_write_buffer_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -218,7 +219,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "max_write_request_operation_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/putautofollowpattern/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/putautofollowpattern/response.go
index 63dd834540..163556f4b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/putautofollowpattern/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/putautofollowpattern/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putautofollowpattern
// Response holds the response body struct for the package putautofollowpattern
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumeautofollowpattern/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumeautofollowpattern/response.go
index 6de60b072d..67d7f9b059 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumeautofollowpattern/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumeautofollowpattern/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package resumeautofollowpattern
// Response holds the response body struct for the package resumeautofollowpattern
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumeautofollowpattern/resume_auto_follow_pattern.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumeautofollowpattern/resume_auto_follow_pattern.go
index 6ce8146354..49fb271e9c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumeautofollowpattern/resume_auto_follow_pattern.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumeautofollowpattern/resume_auto_follow_pattern.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Resumes an auto-follow pattern that has been paused
package resumeautofollowpattern
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r ResumeAutoFollowPattern) IsSuccess(providedCtx context.Context) (bool, e
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -301,3 +301,47 @@ func (r *ResumeAutoFollowPattern) _name(name string) *ResumeAutoFollowPattern {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ResumeAutoFollowPattern) ErrorTrace(errortrace bool) *ResumeAutoFollowPattern {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ResumeAutoFollowPattern) FilterPath(filterpaths ...string) *ResumeAutoFollowPattern {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ResumeAutoFollowPattern) Human(human bool) *ResumeAutoFollowPattern {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ResumeAutoFollowPattern) Pretty(pretty bool) *ResumeAutoFollowPattern {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumefollow/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumefollow/request.go
index ef0dc3cb5c..9b1e599e95 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumefollow/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumefollow/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package resumefollow
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package resumefollow
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L46
type Request struct {
MaxOutstandingReadRequests *int64 `json:"max_outstanding_read_requests,omitempty"`
MaxOutstandingWriteRequests *int64 `json:"max_outstanding_write_requests,omitempty"`
@@ -50,6 +50,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -80,7 +81,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "max_outstanding_read_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +96,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "max_outstanding_write_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -110,7 +111,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "max_read_request_operation_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -142,7 +143,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "max_write_buffer_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -169,7 +170,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
s.MaxWriteBufferSize = &o
case "max_write_request_operation_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumefollow/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumefollow/response.go
index be792294dc..d108bd1ae0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumefollow/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumefollow/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package resumefollow
// Response holds the response body struct for the package resumefollow
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/resume_follow/ResumeFollowIndexResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/resume_follow/ResumeFollowIndexResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumefollow/resume_follow.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumefollow/resume_follow.go
index 1214c35c7f..2e0a96f6ba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumefollow/resume_follow.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumefollow/resume_follow.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Resumes a follower index that has been paused
package resumefollow
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -314,6 +315,50 @@ func (r *ResumeFollow) _index(index string) *ResumeFollow {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ResumeFollow) ErrorTrace(errortrace bool) *ResumeFollow {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ResumeFollow) FilterPath(filterpaths ...string) *ResumeFollow {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ResumeFollow) Human(human bool) *ResumeFollow {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ResumeFollow) Pretty(pretty bool) *ResumeFollow {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: max_outstanding_read_requests
func (r *ResumeFollow) MaxOutstandingReadRequests(maxoutstandingreadrequests int64) *ResumeFollow {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/stats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/stats/response.go
index 875c5439ce..4546029db1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/stats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/stats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package stats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/stats/CcrStatsResponse.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/stats/CcrStatsResponse.ts#L22-L27
type Response struct {
AutoFollowStats types.AutoFollowStats `json:"auto_follow_stats"`
FollowStats types.FollowStats `json:"follow_stats"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/stats/stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/stats/stats.go
index ae9d046f2e..9842be356a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/stats/stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/stats/stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Gets all stats related to cross-cluster replication.
package stats
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r Stats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *Stats) Header(key, value string) *Stats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Stats) ErrorTrace(errortrace bool) *Stats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Stats) FilterPath(filterpaths ...string) *Stats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Stats) Human(human bool) *Stats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Stats) Pretty(pretty bool) *Stats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/unfollow/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/unfollow/response.go
index 461515eb37..0766b3361e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/unfollow/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/unfollow/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package unfollow
// Response holds the response body struct for the package unfollow
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/unfollow/UnfollowIndexResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/unfollow/UnfollowIndexResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/unfollow/unfollow.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/unfollow/unfollow.go
index ea1da80924..75396ea8f7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/unfollow/unfollow.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ccr/unfollow/unfollow.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Stops the following task associated with a follower index and removes index
// metadata and settings associated with cross-cluster replication.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r Unfollow) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -300,3 +300,47 @@ func (r *Unfollow) _index(index string) *Unfollow {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Unfollow) ErrorTrace(errortrace bool) *Unfollow {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Unfollow) FilterPath(filterpaths ...string) *Unfollow {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Unfollow) Human(human bool) *Unfollow {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Unfollow) Pretty(pretty bool) *Unfollow {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/allocationexplain/allocation_explain.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/allocationexplain/allocation_explain.go
index 0d90439f13..90ea7669c4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/allocationexplain/allocation_explain.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/allocationexplain/allocation_explain.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Provides explanations for shard allocations in the cluster.
package allocationexplain
@@ -310,6 +310,50 @@ func (r *AllocationExplain) IncludeYesDecisions(includeyesdecisions bool) *Alloc
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *AllocationExplain) ErrorTrace(errortrace bool) *AllocationExplain {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *AllocationExplain) FilterPath(filterpaths ...string) *AllocationExplain {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *AllocationExplain) Human(human bool) *AllocationExplain {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *AllocationExplain) Pretty(pretty bool) *AllocationExplain {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// CurrentNode Specifies the node ID or the name of the node to only explain a shard that is
// currently located on the specified node.
// API name: current_node
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/allocationexplain/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/allocationexplain/request.go
index 397df5de0a..d1d0927233 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/allocationexplain/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/allocationexplain/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package allocationexplain
@@ -31,7 +31,7 @@ import (
// Request holds the request body struct for the package allocationexplain
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L24-L61
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L24-L61
type Request struct {
// CurrentNode Specifies the node ID or the name of the node to only explain a shard that is
@@ -48,6 +48,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -95,7 +96,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "primary":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -110,7 +111,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "shard":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/allocationexplain/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/allocationexplain/response.go
index 90e3bebd4e..f57fea33f0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/allocationexplain/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/allocationexplain/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package allocationexplain
@@ -27,7 +27,7 @@ import (
// Response holds the response body struct for the package allocationexplain
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/allocation_explain/ClusterAllocationExplainResponse.ts#L32-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/ClusterAllocationExplainResponse.ts#L32-L64
type Response struct {
AllocateExplanation *string `json:"allocate_explanation,omitempty"`
AllocationDelay types.Duration `json:"allocation_delay,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/deletecomponenttemplate/delete_component_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/deletecomponenttemplate/delete_component_template.go
index 23e5289d08..2e48a90ce7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/deletecomponenttemplate/delete_component_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/deletecomponenttemplate/delete_component_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes a component template
package deletecomponenttemplate
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -260,7 +260,7 @@ func (r DeleteComponentTemplate) IsSuccess(providedCtx context.Context) (bool, e
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -317,3 +317,47 @@ func (r *DeleteComponentTemplate) Timeout(duration string) *DeleteComponentTempl
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteComponentTemplate) ErrorTrace(errortrace bool) *DeleteComponentTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteComponentTemplate) FilterPath(filterpaths ...string) *DeleteComponentTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteComponentTemplate) Human(human bool) *DeleteComponentTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteComponentTemplate) Pretty(pretty bool) *DeleteComponentTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/deletecomponenttemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/deletecomponenttemplate/response.go
index 7d375628b4..4f40c920d5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/deletecomponenttemplate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/deletecomponenttemplate/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletecomponenttemplate
// Response holds the response body struct for the package deletecomponenttemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/deletevotingconfigexclusions/delete_voting_config_exclusions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/deletevotingconfigexclusions/delete_voting_config_exclusions.go
index 6327564e41..660c156a11 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/deletevotingconfigexclusions/delete_voting_config_exclusions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/deletevotingconfigexclusions/delete_voting_config_exclusions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Clears cluster voting config exclusions.
package deletevotingconfigexclusions
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -198,7 +197,7 @@ func (r DeleteVotingConfigExclusions) IsSuccess(providedCtx context.Context) (bo
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -238,3 +237,47 @@ func (r *DeleteVotingConfigExclusions) WaitForRemoval(waitforremoval bool) *Dele
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteVotingConfigExclusions) ErrorTrace(errortrace bool) *DeleteVotingConfigExclusions {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteVotingConfigExclusions) FilterPath(filterpaths ...string) *DeleteVotingConfigExclusions {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteVotingConfigExclusions) Human(human bool) *DeleteVotingConfigExclusions {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteVotingConfigExclusions) Pretty(pretty bool) *DeleteVotingConfigExclusions {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/existscomponenttemplate/exists_component_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/existscomponenttemplate/exists_component_template.go
index 9b8755bd7e..c2975f043f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/existscomponenttemplate/exists_component_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/existscomponenttemplate/exists_component_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about whether a particular component template exist
package existscomponenttemplate
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -210,7 +209,7 @@ func (r ExistsComponentTemplate) IsSuccess(providedCtx context.Context) (bool, e
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -266,3 +265,47 @@ func (r *ExistsComponentTemplate) Local(local bool) *ExistsComponentTemplate {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ExistsComponentTemplate) ErrorTrace(errortrace bool) *ExistsComponentTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ExistsComponentTemplate) FilterPath(filterpaths ...string) *ExistsComponentTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ExistsComponentTemplate) Human(human bool) *ExistsComponentTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ExistsComponentTemplate) Pretty(pretty bool) *ExistsComponentTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getcomponenttemplate/get_component_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getcomponenttemplate/get_component_template.go
index dfb5e4b799..46ca8752f5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getcomponenttemplate/get_component_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getcomponenttemplate/get_component_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns one or more component templates
package getcomponenttemplate
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -264,7 +263,7 @@ func (r GetComponentTemplate) IsSuccess(providedCtx context.Context) (bool, erro
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -336,3 +335,47 @@ func (r *GetComponentTemplate) MasterTimeout(duration string) *GetComponentTempl
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetComponentTemplate) ErrorTrace(errortrace bool) *GetComponentTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetComponentTemplate) FilterPath(filterpaths ...string) *GetComponentTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetComponentTemplate) Human(human bool) *GetComponentTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetComponentTemplate) Pretty(pretty bool) *GetComponentTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getcomponenttemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getcomponenttemplate/response.go
index 440ae195c9..f28da66616 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getcomponenttemplate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getcomponenttemplate/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getcomponenttemplate
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getcomponenttemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/get_component_template/ClusterGetComponentTemplateResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/get_component_template/ClusterGetComponentTemplateResponse.ts#L22-L24
type Response struct {
ComponentTemplates []types.ClusterComponentTemplate `json:"component_templates"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getsettings/get_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getsettings/get_settings.go
index c713f6b774..00466d3ec3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getsettings/get_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getsettings/get_settings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns cluster settings.
package getsettings
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -249,7 +248,7 @@ func (r GetSettings) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -312,3 +311,47 @@ func (r *GetSettings) Timeout(duration string) *GetSettings {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetSettings) ErrorTrace(errortrace bool) *GetSettings {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetSettings) FilterPath(filterpaths ...string) *GetSettings {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetSettings) Human(human bool) *GetSettings {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetSettings) Pretty(pretty bool) *GetSettings {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getsettings/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getsettings/response.go
index a01e121d6e..74a05f3c1b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getsettings/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getsettings/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getsettings
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getsettings
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/get_settings/ClusterGetSettingsResponse.ts#L23-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/get_settings/ClusterGetSettingsResponse.ts#L23-L29
type Response struct {
Defaults map[string]json.RawMessage `json:"defaults,omitempty"`
Persistent map[string]json.RawMessage `json:"persistent"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/health/health.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/health/health.go
index 730be00e02..779558d2d6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/health/health.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/health/health.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns basic information about the health of the cluster.
package health
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -237,7 +236,7 @@ func (r Health) Do(providedCtx context.Context) (*Response, error) {
}
if res.StatusCode == 408 {
- data, err := ioutil.ReadAll(res.Body)
+ data, err := io.ReadAll(res.Body)
if err != nil {
if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
instrument.RecordError(ctx, err)
@@ -309,7 +308,7 @@ func (r Health) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -454,3 +453,47 @@ func (r *Health) WaitForStatus(waitforstatus healthstatus.HealthStatus) *Health
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Health) ErrorTrace(errortrace bool) *Health {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Health) FilterPath(filterpaths ...string) *Health {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Health) Human(human bool) *Health {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Health) Pretty(pretty bool) *Health {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/health/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/health/response.go
index bba3ac6674..224cc41d51 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/health/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/health/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package health
@@ -27,7 +27,7 @@ import (
// Response holds the response body struct for the package health
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/health/ClusterHealthResponse.ts#L26-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/health/ClusterHealthResponse.ts#L26-L37
type Response struct {
// ActivePrimaryShards The number of active primary shards.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/info/info.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/info/info.go
index f75173343d..ecae25fce3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/info/info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/info/info.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns different information about the cluster.
package info
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -260,7 +260,7 @@ func (r Info) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -297,3 +297,47 @@ func (r *Info) _target(target string) *Info {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Info) ErrorTrace(errortrace bool) *Info {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Info) FilterPath(filterpaths ...string) *Info {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Info) Human(human bool) *Info {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Info) Pretty(pretty bool) *Info {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/info/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/info/response.go
index abd682601d..5b7647f11e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/info/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/info/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package info
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package info
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/info/ClusterInfoResponse.ts#L26-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/info/ClusterInfoResponse.ts#L26-L34
type Response struct {
ClusterName string `json:"cluster_name"`
Http *types.Http `json:"http,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/pendingtasks/pending_tasks.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/pendingtasks/pending_tasks.go
index 6a59ec42aa..2b59903c05 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/pendingtasks/pending_tasks.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/pendingtasks/pending_tasks.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns a list of any cluster-level changes (e.g. create index, update
// mapping,
@@ -29,7 +29,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -253,7 +252,7 @@ func (r PendingTasks) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -299,3 +298,47 @@ func (r *PendingTasks) MasterTimeout(duration string) *PendingTasks {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PendingTasks) ErrorTrace(errortrace bool) *PendingTasks {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PendingTasks) FilterPath(filterpaths ...string) *PendingTasks {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PendingTasks) Human(human bool) *PendingTasks {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PendingTasks) Pretty(pretty bool) *PendingTasks {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/pendingtasks/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/pendingtasks/response.go
index d27b1852e3..19f9cce827 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/pendingtasks/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/pendingtasks/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package pendingtasks
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package pendingtasks
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/pending_tasks/ClusterPendingTasksResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/pending_tasks/ClusterPendingTasksResponse.ts#L22-L24
type Response struct {
Tasks []types.PendingTask `json:"tasks"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/postvotingconfigexclusions/post_voting_config_exclusions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/postvotingconfigexclusions/post_voting_config_exclusions.go
index 2f2c5596c5..610e081d31 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/postvotingconfigexclusions/post_voting_config_exclusions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/postvotingconfigexclusions/post_voting_config_exclusions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates the cluster voting config exclusions by node ids or node names.
package postvotingconfigexclusions
@@ -26,9 +26,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -197,7 +197,7 @@ func (r PostVotingConfigExclusions) IsSuccess(providedCtx context.Context) (bool
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -254,3 +254,47 @@ func (r *PostVotingConfigExclusions) Timeout(duration string) *PostVotingConfigE
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PostVotingConfigExclusions) ErrorTrace(errortrace bool) *PostVotingConfigExclusions {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PostVotingConfigExclusions) FilterPath(filterpaths ...string) *PostVotingConfigExclusions {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PostVotingConfigExclusions) Human(human bool) *PostVotingConfigExclusions {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PostVotingConfigExclusions) Pretty(pretty bool) *PostVotingConfigExclusions {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putcomponenttemplate/put_component_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putcomponenttemplate/put_component_template.go
index 52bbbc06ea..524ae766a2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putcomponenttemplate/put_component_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putcomponenttemplate/put_component_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates or updates a component template
package putcomponenttemplate
@@ -342,17 +342,57 @@ func (r *PutComponentTemplate) MasterTimeout(duration string) *PutComponentTempl
return r
}
-// AllowAutoCreate This setting overrides the value of the `action.auto_create_index` cluster
-// setting.
-// If set to `true` in a template, then indices can be automatically created
-// using that
-// template even if auto-creation of indices is disabled via
-// `actions.auto_create_index`.
-// If set to `false` then data streams matching the template must always be
-// explicitly created.
-// API name: allow_auto_create
-func (r *PutComponentTemplate) AllowAutoCreate(allowautocreate bool) *PutComponentTemplate {
- r.req.AllowAutoCreate = &allowautocreate
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutComponentTemplate) ErrorTrace(errortrace bool) *PutComponentTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutComponentTemplate) FilterPath(filterpaths ...string) *PutComponentTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutComponentTemplate) Human(human bool) *PutComponentTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutComponentTemplate) Pretty(pretty bool) *PutComponentTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
+// Deprecated Marks this index template as deprecated. When creating or updating a
+// non-deprecated index template
+// that uses deprecated components, Elasticsearch will emit a deprecation
+// warning.
+// API name: deprecated
+func (r *PutComponentTemplate) Deprecated(deprecated bool) *PutComponentTemplate {
+ r.req.Deprecated = &deprecated
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putcomponenttemplate/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putcomponenttemplate/request.go
index c647c8fb0a..d136bcdd08 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putcomponenttemplate/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putcomponenttemplate/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putcomponenttemplate
@@ -33,18 +33,14 @@ import (
// Request holds the request body struct for the package putcomponenttemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L29-L99
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L93
type Request struct {
- // AllowAutoCreate This setting overrides the value of the `action.auto_create_index` cluster
- // setting.
- // If set to `true` in a template, then indices can be automatically created
- // using that
- // template even if auto-creation of indices is disabled via
- // `actions.auto_create_index`.
- // If set to `false` then data streams matching the template must always be
- // explicitly created.
- AllowAutoCreate *bool `json:"allow_auto_create,omitempty"`
+ // Deprecated Marks this index template as deprecated. When creating or updating a
+ // non-deprecated index template
+ // that uses deprecated components, Elasticsearch will emit a deprecation
+ // warning.
+ Deprecated *bool `json:"deprecated,omitempty"`
// Meta_ Optional user metadata about the component template.
// May have any contents. This map is not automatically generated by
// Elasticsearch.
@@ -64,6 +60,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -93,18 +90,18 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
- case "allow_auto_create":
- var tmp interface{}
+ case "deprecated":
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
value, err := strconv.ParseBool(v)
if err != nil {
- return fmt.Errorf("%s | %w", "AllowAutoCreate", err)
+ return fmt.Errorf("%s | %w", "Deprecated", err)
}
- s.AllowAutoCreate = &value
+ s.Deprecated = &value
case bool:
- s.AllowAutoCreate = &v
+ s.Deprecated = &v
}
case "_meta":
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putcomponenttemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putcomponenttemplate/response.go
index 87d318fe5a..18a895da8f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putcomponenttemplate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putcomponenttemplate/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putcomponenttemplate
// Response holds the response body struct for the package putcomponenttemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/put_component_template/ClusterPutComponentTemplateResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/put_component_template/ClusterPutComponentTemplateResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putsettings/put_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putsettings/put_settings.go
index 3db6feb374..26cc1a3428 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putsettings/put_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putsettings/put_settings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates the cluster settings.
package putsettings
@@ -316,6 +316,50 @@ func (r *PutSettings) Timeout(duration string) *PutSettings {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutSettings) ErrorTrace(errortrace bool) *PutSettings {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutSettings) FilterPath(filterpaths ...string) *PutSettings {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutSettings) Human(human bool) *PutSettings {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutSettings) Pretty(pretty bool) *PutSettings {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: persistent
func (r *PutSettings) Persistent(persistent map[string]json.RawMessage) *PutSettings {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putsettings/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putsettings/request.go
index 773ad2d9a8..9fe5cbeda2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putsettings/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putsettings/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putsettings
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package putsettings
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L43
type Request struct {
Persistent map[string]json.RawMessage `json:"persistent,omitempty"`
Transient map[string]json.RawMessage `json:"transient,omitempty"`
@@ -39,6 +39,7 @@ func NewRequest() *Request {
Persistent: make(map[string]json.RawMessage, 0),
Transient: make(map[string]json.RawMessage, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putsettings/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putsettings/response.go
index e991e0000c..0a4c729256 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putsettings/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putsettings/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putsettings
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package putsettings
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/put_settings/ClusterPutSettingsResponse.ts#L23-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/put_settings/ClusterPutSettingsResponse.ts#L23-L29
type Response struct {
Acknowledged bool `json:"acknowledged"`
Persistent map[string]json.RawMessage `json:"persistent"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/remoteinfo/remote_info.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/remoteinfo/remote_info.go
index dfba4b46cc..a106933af1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/remoteinfo/remote_info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/remoteinfo/remote_info.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the information about configured remote clusters.
package remoteinfo
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r RemoteInfo) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *RemoteInfo) Header(key, value string) *RemoteInfo {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *RemoteInfo) ErrorTrace(errortrace bool) *RemoteInfo {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *RemoteInfo) FilterPath(filterpaths ...string) *RemoteInfo {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *RemoteInfo) Human(human bool) *RemoteInfo {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *RemoteInfo) Pretty(pretty bool) *RemoteInfo {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/remoteinfo/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/remoteinfo/response.go
index 54aaee8ae9..6b2cb5dbc3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/remoteinfo/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/remoteinfo/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package remoteinfo
@@ -32,7 +32,7 @@ import (
// Response holds the response body struct for the package remoteinfo
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L24-L27
type Response map[string]types.ClusterRemoteInfo
@@ -45,7 +45,7 @@ func NewResponse() Response {
func (r Response) UnmarshalJSON(data []byte) error {
dec := json.NewDecoder(bytes.NewReader(data))
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
dec.Decode(&o)
dec = json.NewDecoder(bytes.NewReader(data))
for {
@@ -59,7 +59,7 @@ func (r Response) UnmarshalJSON(data []byte) error {
key := fmt.Sprintf("%s", t)
if target, ok := o[key]; ok {
- if t, ok := target.(map[string]interface{})["mode"]; ok {
+ if t, ok := target.(map[string]any)["mode"]; ok {
switch t {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute/request.go
index e32f7cf8e7..de14a71790 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package reroute
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package reroute
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/reroute/ClusterRerouteRequest.ts#L25-L70
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/ClusterRerouteRequest.ts#L25-L70
type Request struct {
// Commands Defines the commands to perform.
@@ -39,6 +39,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute/reroute.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute/reroute.go
index 63bebe6589..3aa54fa77e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute/reroute.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute/reroute.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows to manually change the allocation of individual shards in the cluster.
package reroute
@@ -345,6 +345,50 @@ func (r *Reroute) Timeout(duration string) *Reroute {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Reroute) ErrorTrace(errortrace bool) *Reroute {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Reroute) FilterPath(filterpaths ...string) *Reroute {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Reroute) Human(human bool) *Reroute {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Reroute) Pretty(pretty bool) *Reroute {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Commands Defines the commands to perform.
// API name: commands
func (r *Reroute) Commands(commands ...types.Command) *Reroute {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute/response.go
index c4fa63102c..d145ff5aa7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package reroute
@@ -28,7 +28,7 @@ import (
// Response holds the response body struct for the package reroute
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/reroute/ClusterRerouteResponse.ts#L23-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/ClusterRerouteResponse.ts#L23-L34
type Response struct {
Acknowledged bool `json:"acknowledged"`
Explanations []types.RerouteExplanation `json:"explanations,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/state/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/state/response.go
index 826904912c..e6c38aeea6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/state/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/state/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package state
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package state
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/state/ClusterStateResponse.ts#L22-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/state/ClusterStateResponse.ts#L22-L29
type Response = json.RawMessage
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/state/state.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/state/state.go
index 1dd22b7d1f..f25798ff45 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/state/state.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/state/state.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns a comprehensive information about the state of the cluster.
package state
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -291,7 +290,7 @@ func (r State) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -410,3 +409,47 @@ func (r *State) WaitForTimeout(duration string) *State {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *State) ErrorTrace(errortrace bool) *State {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *State) FilterPath(filterpaths ...string) *State {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *State) Human(human bool) *State {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *State) Pretty(pretty bool) *State {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/stats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/stats/response.go
index 9306c80a8b..5c0f01a7d1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/stats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/stats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stats
@@ -27,7 +27,7 @@ import (
// Response holds the response body struct for the package stats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/ClusterStatsResponse.ts#L53-L55
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/ClusterStatsResponse.ts#L53-L55
type Response struct {
// ClusterName Name of the cluster, based on the cluster name setting.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/stats/stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/stats/stats.go
index 7bbb8b4ac3..eb75244ae4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/stats/stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/cluster/stats/stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns high-level overview of cluster statistics.
package stats
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -270,7 +269,7 @@ func (r Stats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -327,3 +326,47 @@ func (r *Stats) Timeout(duration string) *Stats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Stats) ErrorTrace(errortrace bool) *Stats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Stats) FilterPath(filterpaths ...string) *Stats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Stats) Human(human bool) *Stats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Stats) Pretty(pretty bool) *Stats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/bulk.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/bulk.go
index 496558e674..8c22ee739e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/bulk.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/bulk.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows to perform multiple index/update/delete operations in a single
// request.
@@ -405,3 +405,47 @@ func (r *Bulk) RequireAlias(requirealias bool) *Bulk {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Bulk) ErrorTrace(errortrace bool) *Bulk {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Bulk) FilterPath(filterpaths ...string) *Bulk {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Bulk) Human(human bool) *Bulk {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Bulk) Pretty(pretty bool) *Bulk {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/request.go
index e82f78d41f..5e4428a24f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/request.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package bulk
// Request holds the request body struct for the package bulk
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/bulk/BulkRequest.ts#L32-L103
-type Request = []interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/BulkRequest.ts#L32-L103
+type Request = []any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/response.go
index 782b1bc806..88c5b1e679 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package bulk
@@ -27,7 +27,7 @@ import (
// Response holds the response body struct for the package bulk
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/bulk/BulkResponse.ts#L24-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/BulkResponse.ts#L24-L31
type Response struct {
Errors bool `json:"errors"`
IngestTook *int64 `json:"ingest_took,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll/clear_scroll.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll/clear_scroll.go
index 4fc3f23caf..4ef8fce44c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll/clear_scroll.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll/clear_scroll.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Explicitly clears the search context for a scroll.
package clearscroll
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -269,7 +269,7 @@ func (r ClearScroll) Do(providedCtx context.Context) (*Response, error) {
}
if res.StatusCode == 404 {
- data, err := ioutil.ReadAll(res.Body)
+ data, err := io.ReadAll(res.Body)
if err != nil {
if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
instrument.RecordError(ctx, err)
@@ -330,6 +330,50 @@ func (r *ClearScroll) Header(key, value string) *ClearScroll {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ClearScroll) ErrorTrace(errortrace bool) *ClearScroll {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ClearScroll) FilterPath(filterpaths ...string) *ClearScroll {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ClearScroll) Human(human bool) *ClearScroll {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ClearScroll) Pretty(pretty bool) *ClearScroll {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// ScrollId Scroll IDs to clear.
// To clear all scroll IDs, use `_all`.
// API name: scroll_id
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll/request.go
index 7bdc2bf733..230849b6dd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clearscroll
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package clearscroll
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/clear_scroll/ClearScrollRequest.ts#L23-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/clear_scroll/ClearScrollRequest.ts#L23-L45
type Request struct {
// ScrollId Scroll IDs to clear.
@@ -38,6 +38,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll/response.go
index a040879a98..cf22e13745 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clearscroll
// Response holds the response body struct for the package clearscroll
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/clear_scroll/ClearScrollResponse.ts#L22-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/clear_scroll/ClearScrollResponse.ts#L22-L36
type Response struct {
NumFreed int `json:"num_freed"`
Succeeded bool `json:"succeeded"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime/close_point_in_time.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime/close_point_in_time.go
index eff6d67437..5f0ba84064 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime/close_point_in_time.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime/close_point_in_time.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Close a point in time
package closepointintime
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -265,7 +265,7 @@ func (r ClosePointInTime) Do(providedCtx context.Context) (*Response, error) {
}
if res.StatusCode == 404 {
- data, err := ioutil.ReadAll(res.Body)
+ data, err := io.ReadAll(res.Body)
if err != nil {
if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
instrument.RecordError(ctx, err)
@@ -326,6 +326,50 @@ func (r *ClosePointInTime) Header(key, value string) *ClosePointInTime {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ClosePointInTime) ErrorTrace(errortrace bool) *ClosePointInTime {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ClosePointInTime) FilterPath(filterpaths ...string) *ClosePointInTime {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ClosePointInTime) Human(human bool) *ClosePointInTime {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ClosePointInTime) Pretty(pretty bool) *ClosePointInTime {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Id The ID of the point-in-time.
// API name: id
func (r *ClosePointInTime) Id(id string) *ClosePointInTime {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime/request.go
index e1932121f2..3a781a7298 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package closepointintime
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package closepointintime
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L37
type Request struct {
// Id The ID of the point-in-time.
@@ -37,6 +37,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime/response.go
index c710c7d1a4..f79ac633d4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package closepointintime
// Response holds the response body struct for the package closepointintime
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/close_point_in_time/ClosePointInTimeResponse.ts#L22-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/close_point_in_time/ClosePointInTimeResponse.ts#L22-L36
type Response struct {
NumFreed int `json:"num_freed"`
Succeeded bool `json:"succeeded"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/count/count.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/count/count.go
index d38042c1a1..85e16f6f13 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/count/count.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/count/count.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns number of documents matching a query.
package count
@@ -456,6 +456,50 @@ func (r *Count) Q(q string) *Count {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Count) ErrorTrace(errortrace bool) *Count {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Count) FilterPath(filterpaths ...string) *Count {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Count) Human(human bool) *Count {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Count) Pretty(pretty bool) *Count {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Query Defines the search definition using the Query DSL.
// API name: query
func (r *Count) Query(query *types.Query) *Count {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/count/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/count/request.go
index e0377441f8..7bee8f7ad8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/count/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/count/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package count
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package count
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/count/CountRequest.ts#L26-L120
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/count/CountRequest.ts#L26-L120
type Request struct {
// Query Defines the search definition using the Query DSL.
@@ -39,6 +39,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/count/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/count/response.go
index 45305a7a7f..205e0695b9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/count/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/count/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package count
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package count
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/count/CountResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/count/CountResponse.ts#L23-L25
type Response struct {
Count int64 `json:"count"`
Shards_ types.ShardStatistics `json:"_shards"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/create/create.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/create/create.go
index 86955cd027..f822769138 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/create/create.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/create/create.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a new document in the index.
//
@@ -33,6 +33,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -59,8 +60,8 @@ type Create struct {
raw io.Reader
- req interface{}
- deferred []func(request interface{}) error
+ req any
+ deferred []func(request any) error
buf *gobytes.Buffer
paramSet int
@@ -125,14 +126,14 @@ func (r *Create) Raw(raw io.Reader) *Create {
}
// Request allows to set the request property with the appropriate payload.
-func (r *Create) Request(req interface{}) *Create {
+func (r *Create) Request(req any) *Create {
r.req = req
return r
}
// Document allows to set the request property with the appropriate payload.
-func (r *Create) Document(document interface{}) *Create {
+func (r *Create) Document(document any) *Create {
r.req = document
return r
@@ -420,3 +421,47 @@ func (r *Create) WaitForActiveShards(waitforactiveshards string) *Create {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Create) ErrorTrace(errortrace bool) *Create {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Create) FilterPath(filterpaths ...string) *Create {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Create) Human(human bool) *Create {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Create) Pretty(pretty bool) *Create {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/create/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/create/request.go
index 4649041340..a39affef97 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/create/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/create/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package create
@@ -26,7 +26,7 @@ import (
// Request holds the request body struct for the package create
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/create/CreateRequest.ts#L32-L95
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/create/CreateRequest.ts#L32-L95
type Request = json.RawMessage
// NewRequest returns a Request
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/create/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/create/response.go
index 7c51beea17..674136c7ac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/create/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/create/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package create
@@ -27,14 +27,14 @@ import (
// Response holds the response body struct for the package create
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/create/CreateResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/create/CreateResponse.ts#L22-L24
type Response struct {
ForcedRefresh *bool `json:"forced_refresh,omitempty"`
Id_ string `json:"_id"`
Index_ string `json:"_index"`
- PrimaryTerm_ int64 `json:"_primary_term"`
+ PrimaryTerm_ *int64 `json:"_primary_term,omitempty"`
Result result.Result `json:"result"`
- SeqNo_ int64 `json:"_seq_no"`
+ SeqNo_ *int64 `json:"_seq_no,omitempty"`
Shards_ types.ShardStatistics `json:"_shards"`
Version_ int64 `json:"_version"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/delete/delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/delete/delete.go
index 590c31072f..e36afb7424 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/delete/delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/delete/delete.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Removes a document from the index.
package delete
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -238,7 +238,7 @@ func (r Delete) Do(providedCtx context.Context) (*Response, error) {
}
if res.StatusCode == 404 {
- data, err := ioutil.ReadAll(res.Body)
+ data, err := io.ReadAll(res.Body)
if err != nil {
if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
instrument.RecordError(ctx, err)
@@ -310,7 +310,7 @@ func (r Delete) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -427,3 +427,47 @@ func (r *Delete) WaitForActiveShards(waitforactiveshards string) *Delete {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Delete) ErrorTrace(errortrace bool) *Delete {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Delete) FilterPath(filterpaths ...string) *Delete {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Delete) Human(human bool) *Delete {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Delete) Pretty(pretty bool) *Delete {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/delete/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/delete/response.go
index c5e89925dd..f09c08175a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/delete/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/delete/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package delete
@@ -27,14 +27,14 @@ import (
// Response holds the response body struct for the package delete
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/delete/DeleteResponse.ts#L22-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/delete/DeleteResponse.ts#L22-L34
type Response struct {
ForcedRefresh *bool `json:"forced_refresh,omitempty"`
Id_ string `json:"_id"`
Index_ string `json:"_index"`
- PrimaryTerm_ int64 `json:"_primary_term"`
+ PrimaryTerm_ *int64 `json:"_primary_term,omitempty"`
Result result.Result `json:"result"`
- SeqNo_ int64 `json:"_seq_no"`
+ SeqNo_ *int64 `json:"_seq_no,omitempty"`
Shards_ types.ShardStatistics `json:"_shards"`
Version_ int64 `json:"_version"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery/delete_by_query.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery/delete_by_query.go
index fb428a6316..5a2fa9a8d0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery/delete_by_query.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery/delete_by_query.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes documents matching the provided query.
package deletebyquery
@@ -581,6 +581,50 @@ func (r *DeleteByQuery) WaitForCompletion(waitforcompletion bool) *DeleteByQuery
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteByQuery) ErrorTrace(errortrace bool) *DeleteByQuery {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteByQuery) FilterPath(filterpaths ...string) *DeleteByQuery {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteByQuery) Human(human bool) *DeleteByQuery {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteByQuery) Pretty(pretty bool) *DeleteByQuery {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// MaxDocs The maximum number of documents to delete.
// API name: max_docs
func (r *DeleteByQuery) MaxDocs(maxdocs int64) *DeleteByQuery {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery/request.go
index 46528515ff..2f2780761d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletebyquery
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package deletebyquery
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/delete_by_query/DeleteByQueryRequest.ts#L36-L209
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/delete_by_query/DeleteByQueryRequest.ts#L36-L209
type Request struct {
// MaxDocs The maximum number of documents to delete.
@@ -44,6 +44,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery/response.go
index aa4c7e74a1..b03fef3f69 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletebyquery
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package deletebyquery
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/delete_by_query/DeleteByQueryResponse.ts#L26-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/delete_by_query/DeleteByQueryResponse.ts#L26-L45
type Response struct {
Batches *int64 `json:"batches,omitempty"`
Deleted *int64 `json:"deleted,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyqueryrethrottle/delete_by_query_rethrottle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyqueryrethrottle/delete_by_query_rethrottle.go
index 8f84c7369f..e836fce695 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyqueryrethrottle/delete_by_query_rethrottle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyqueryrethrottle/delete_by_query_rethrottle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Changes the number of requests per second for a particular Delete By Query
// operation.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r DeleteByQueryRethrottle) IsSuccess(providedCtx context.Context) (bool, e
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -308,3 +308,47 @@ func (r *DeleteByQueryRethrottle) RequestsPerSecond(requestspersecond string) *D
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteByQueryRethrottle) ErrorTrace(errortrace bool) *DeleteByQueryRethrottle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteByQueryRethrottle) FilterPath(filterpaths ...string) *DeleteByQueryRethrottle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteByQueryRethrottle) Human(human bool) *DeleteByQueryRethrottle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteByQueryRethrottle) Pretty(pretty bool) *DeleteByQueryRethrottle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyqueryrethrottle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyqueryrethrottle/response.go
index 900bd74736..43f99b4f08 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyqueryrethrottle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyqueryrethrottle/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletebyqueryrethrottle
@@ -32,7 +32,7 @@ import (
// Response holds the response body struct for the package deletebyqueryrethrottle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts#L22-L24
type Response struct {
NodeFailures []types.ErrorCause `json:"node_failures,omitempty"`
// Nodes Task information grouped by node, if `group_by` was set to `node` (the
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletescript/delete_script.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletescript/delete_script.go
index 30066c4a4e..961c4ec898 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletescript/delete_script.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletescript/delete_script.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes a script.
package deletescript
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -260,7 +260,7 @@ func (r DeleteScript) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -316,3 +316,47 @@ func (r *DeleteScript) Timeout(duration string) *DeleteScript {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteScript) ErrorTrace(errortrace bool) *DeleteScript {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteScript) FilterPath(filterpaths ...string) *DeleteScript {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteScript) Human(human bool) *DeleteScript {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteScript) Pretty(pretty bool) *DeleteScript {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletescript/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletescript/response.go
index 559fbcd579..0536098470 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletescript/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/deletescript/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletescript
// Response holds the response body struct for the package deletescript
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/delete_script/DeleteScriptResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/delete_script/DeleteScriptResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/exists/exists.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/exists/exists.go
index c44ba38a7e..5935e52af6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/exists/exists.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/exists/exists.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about whether a document exists in an index.
package exists
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -222,7 +221,7 @@ func (r Exists) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -355,3 +354,47 @@ func (r *Exists) VersionType(versiontype versiontype.VersionType) *Exists {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Exists) ErrorTrace(errortrace bool) *Exists {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Exists) FilterPath(filterpaths ...string) *Exists {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Exists) Human(human bool) *Exists {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Exists) Pretty(pretty bool) *Exists {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/existssource/exists_source.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/existssource/exists_source.go
index 7c3100cb6c..af808c1e9b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/existssource/exists_source.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/existssource/exists_source.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about whether a document source exists in an index.
package existssource
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -222,7 +221,7 @@ func (r ExistsSource) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -345,3 +344,47 @@ func (r *ExistsSource) VersionType(versiontype versiontype.VersionType) *ExistsS
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ExistsSource) ErrorTrace(errortrace bool) *ExistsSource {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ExistsSource) FilterPath(filterpaths ...string) *ExistsSource {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ExistsSource) Human(human bool) *ExistsSource {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ExistsSource) Pretty(pretty bool) *ExistsSource {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/explain/explain.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/explain/explain.go
index 80034a7ec0..9625cb5245 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/explain/explain.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/explain/explain.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about why a specific matches (or doesn't match) a query.
package explain
@@ -436,6 +436,50 @@ func (r *Explain) Q(q string) *Explain {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Explain) ErrorTrace(errortrace bool) *Explain {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Explain) FilterPath(filterpaths ...string) *Explain {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Explain) Human(human bool) *Explain {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Explain) Pretty(pretty bool) *Explain {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Query Defines the search definition using the Query DSL.
// API name: query
func (r *Explain) Query(query *types.Query) *Explain {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/explain/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/explain/request.go
index 19ae7e4794..7d7ac90440 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/explain/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/explain/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package explain
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package explain
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/explain/ExplainRequest.ts#L26-L105
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/explain/ExplainRequest.ts#L26-L105
type Request struct {
// Query Defines the search definition using the Query DSL.
@@ -39,6 +39,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/explain/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/explain/response.go
index 8431c81c85..f2721f8960 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/explain/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/explain/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package explain
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package explain
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/explain/ExplainResponse.ts#L23-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/explain/ExplainResponse.ts#L23-L31
type Response struct {
Explanation *types.ExplanationDetail `json:"explanation,omitempty"`
Get *types.InlineGet `json:"get,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/fieldcaps/field_caps.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/fieldcaps/field_caps.go
index 2de661826a..87daa2828d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/fieldcaps/field_caps.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/fieldcaps/field_caps.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the information about the capabilities of fields among multiple
// indices.
@@ -393,6 +393,50 @@ func (r *FieldCaps) IncludeEmptyFields(includeemptyfields bool) *FieldCaps {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *FieldCaps) ErrorTrace(errortrace bool) *FieldCaps {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *FieldCaps) FilterPath(filterpaths ...string) *FieldCaps {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *FieldCaps) Human(human bool) *FieldCaps {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *FieldCaps) Pretty(pretty bool) *FieldCaps {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Fields List of fields to retrieve capabilities for. Wildcard (`*`) expressions are
// supported.
// API name: fields
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/fieldcaps/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/fieldcaps/request.go
index 32d8beead0..bbf71f686c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/fieldcaps/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/fieldcaps/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package fieldcaps
@@ -32,7 +32,7 @@ import (
// Request holds the request body struct for the package fieldcaps
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/field_caps/FieldCapabilitiesRequest.ts#L25-L106
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/field_caps/FieldCapabilitiesRequest.ts#L25-L106
type Request struct {
// Fields List of fields to retrieve capabilities for. Wildcard (`*`) expressions are
@@ -51,6 +51,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/fieldcaps/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/fieldcaps/response.go
index b800737668..7c581f6567 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/fieldcaps/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/fieldcaps/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package fieldcaps
@@ -32,7 +32,7 @@ import (
// Response holds the response body struct for the package fieldcaps
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/field_caps/FieldCapabilitiesResponse.ts#L24-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/field_caps/FieldCapabilitiesResponse.ts#L24-L35
type Response struct {
Fields map[string]map[string]types.FieldCapability `json:"fields"`
Indices []string `json:"indices"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/get/get.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/get/get.go
index 9e7c456fb5..e14589abfc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/get/get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/get/get.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns a document.
package get
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -238,7 +237,7 @@ func (r Get) Do(providedCtx context.Context) (*Response, error) {
}
if res.StatusCode == 404 {
- data, err := ioutil.ReadAll(res.Body)
+ data, err := io.ReadAll(res.Body)
if err != nil {
if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
instrument.RecordError(ctx, err)
@@ -310,7 +309,7 @@ func (r Get) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -453,3 +452,47 @@ func (r *Get) VersionType(versiontype versiontype.VersionType) *Get {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Get) ErrorTrace(errortrace bool) *Get {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Get) FilterPath(filterpaths ...string) *Get {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Get) Human(human bool) *Get {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Get) Pretty(pretty bool) *Get {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/get/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/get/response.go
index 029aa131a8..cbec93ff44 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/get/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/get/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package get
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package get
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/get/GetResponse.ts#L23-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get/GetResponse.ts#L23-L34
type Response struct {
Fields map[string]json.RawMessage `json:"fields,omitempty"`
Found bool `json:"found"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscript/get_script.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscript/get_script.go
index 82ab4eaa5e..6425842ce1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscript/get_script.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscript/get_script.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns a script.
package getscript
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -260,7 +260,7 @@ func (r GetScript) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -304,3 +304,47 @@ func (r *GetScript) MasterTimeout(duration string) *GetScript {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetScript) ErrorTrace(errortrace bool) *GetScript {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetScript) FilterPath(filterpaths ...string) *GetScript {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetScript) Human(human bool) *GetScript {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetScript) Pretty(pretty bool) *GetScript {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscript/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscript/response.go
index ee645e5e1b..2761aa1678 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscript/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscript/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getscript
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getscript
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/get_script/GetScriptResponse.ts#L23-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_script/GetScriptResponse.ts#L23-L29
type Response struct {
Found bool `json:"found"`
Id_ string `json:"_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptcontext/get_script_context.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptcontext/get_script_context.go
index 69ae5ba4c5..371b812750 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptcontext/get_script_context.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptcontext/get_script_context.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns all script contexts.
package getscriptcontext
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -246,7 +246,7 @@ func (r GetScriptContext) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -273,3 +273,47 @@ func (r *GetScriptContext) Header(key, value string) *GetScriptContext {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetScriptContext) ErrorTrace(errortrace bool) *GetScriptContext {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetScriptContext) FilterPath(filterpaths ...string) *GetScriptContext {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetScriptContext) Human(human bool) *GetScriptContext {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetScriptContext) Pretty(pretty bool) *GetScriptContext {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptcontext/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptcontext/response.go
index 9e6fdb934e..d66eba94e4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptcontext/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptcontext/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getscriptcontext
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getscriptcontext
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/get_script_context/GetScriptContextResponse.ts#L22-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_script_context/GetScriptContextResponse.ts#L22-L26
type Response struct {
Contexts []types.GetScriptContext `json:"contexts"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptlanguages/get_script_languages.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptlanguages/get_script_languages.go
index cd8bbd5360..fe69c352f3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptlanguages/get_script_languages.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptlanguages/get_script_languages.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns available script types, languages and contexts
package getscriptlanguages
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -246,7 +246,7 @@ func (r GetScriptLanguages) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -273,3 +273,47 @@ func (r *GetScriptLanguages) Header(key, value string) *GetScriptLanguages {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetScriptLanguages) ErrorTrace(errortrace bool) *GetScriptLanguages {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetScriptLanguages) FilterPath(filterpaths ...string) *GetScriptLanguages {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetScriptLanguages) Human(human bool) *GetScriptLanguages {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetScriptLanguages) Pretty(pretty bool) *GetScriptLanguages {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptlanguages/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptlanguages/response.go
index c22994c8b3..0105577b3d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptlanguages/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptlanguages/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getscriptlanguages
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getscriptlanguages
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/get_script_languages/GetScriptLanguagesResponse.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_script_languages/GetScriptLanguagesResponse.ts#L22-L27
type Response struct {
LanguageContexts []types.LanguageContext `json:"language_contexts"`
TypesAllowed []string `json:"types_allowed"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getsource/get_source.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getsource/get_source.go
index f912be3e66..2199feb370 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getsource/get_source.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getsource/get_source.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the source of a document.
package getsource
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -273,7 +272,7 @@ func (r GetSource) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -401,3 +400,47 @@ func (r *GetSource) VersionType(versiontype versiontype.VersionType) *GetSource
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetSource) ErrorTrace(errortrace bool) *GetSource {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetSource) FilterPath(filterpaths ...string) *GetSource {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetSource) Human(human bool) *GetSource {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetSource) Pretty(pretty bool) *GetSource {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getsource/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getsource/response.go
index d084a2739a..0b0174e0ec 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getsource/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/getsource/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getsource
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getsource
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/get_source/SourceResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_source/SourceResponse.ts#L20-L23
type Response = json.RawMessage
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/healthreport/health_report.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/healthreport/health_report.go
index 9ae4c346ed..cf38228697 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/healthreport/health_report.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/healthreport/health_report.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the health of the cluster.
package healthreport
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -264,7 +263,7 @@ func (r HealthReport) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -324,3 +323,47 @@ func (r *HealthReport) Size(size int) *HealthReport {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *HealthReport) ErrorTrace(errortrace bool) *HealthReport {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *HealthReport) FilterPath(filterpaths ...string) *HealthReport {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *HealthReport) Human(human bool) *HealthReport {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *HealthReport) Pretty(pretty bool) *HealthReport {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/healthreport/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/healthreport/response.go
index 2a5e4d5252..181a5f7f97 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/healthreport/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/healthreport/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package healthreport
@@ -27,7 +27,7 @@ import (
// Response holds the response body struct for the package healthreport
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/Response.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/Response.ts#L22-L28
type Response struct {
ClusterName string `json:"cluster_name"`
Indicators types.Indicators `json:"indicators"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/index/index.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/index/index.go
index e0097ab9a3..d333ff5702 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/index/index.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/index/index.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates or updates a document in an index.
package index
@@ -58,8 +58,8 @@ type Index struct {
raw io.Reader
- req interface{}
- deferred []func(request interface{}) error
+ req any
+ deferred []func(request any) error
buf *gobytes.Buffer
paramSet int
@@ -119,14 +119,14 @@ func (r *Index) Raw(raw io.Reader) *Index {
}
// Request allows to set the request property with the appropriate payload.
-func (r *Index) Request(req interface{}) *Index {
+func (r *Index) Request(req any) *Index {
r.req = req
return r
}
// Document allows to set the request property with the appropriate payload.
-func (r *Index) Document(document interface{}) *Index {
+func (r *Index) Document(document any) *Index {
r.req = document
return r
@@ -459,3 +459,47 @@ func (r *Index) RequireAlias(requirealias bool) *Index {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Index) ErrorTrace(errortrace bool) *Index {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Index) FilterPath(filterpaths ...string) *Index {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Index) Human(human bool) *Index {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Index) Pretty(pretty bool) *Index {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/index/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/index/request.go
index df492a1038..8149ee5233 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/index/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/index/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package index
@@ -26,7 +26,7 @@ import (
// Request holds the request body struct for the package index
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/index/IndexRequest.ts#L35-L117
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/index/IndexRequest.ts#L35-L117
type Request = json.RawMessage
// NewRequest returns a Request
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/index/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/index/response.go
index 7675c74f42..68a2211f10 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/index/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/index/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package index
@@ -27,14 +27,14 @@ import (
// Response holds the response body struct for the package index
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/index/IndexResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/index/IndexResponse.ts#L22-L24
type Response struct {
ForcedRefresh *bool `json:"forced_refresh,omitempty"`
Id_ string `json:"_id"`
Index_ string `json:"_index"`
- PrimaryTerm_ int64 `json:"_primary_term"`
+ PrimaryTerm_ *int64 `json:"_primary_term,omitempty"`
Result result.Result `json:"result"`
- SeqNo_ int64 `json:"_seq_no"`
+ SeqNo_ *int64 `json:"_seq_no,omitempty"`
Shards_ types.ShardStatistics `json:"_shards"`
Version_ int64 `json:"_version"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/info/info.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/info/info.go
index 183ac25583..6d7e895293 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/info/info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/info/info.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns basic information about the cluster.
package info
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -244,7 +244,7 @@ func (r Info) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -271,3 +271,47 @@ func (r *Info) Header(key, value string) *Info {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Info) ErrorTrace(errortrace bool) *Info {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Info) FilterPath(filterpaths ...string) *Info {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Info) Human(human bool) *Info {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Info) Pretty(pretty bool) *Info {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/info/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/info/response.go
index 641ac7e2ef..ead1257f98 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/info/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/info/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package info
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package info
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/info/RootNodeInfoResponse.ts#L23-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/info/RootNodeInfoResponse.ts#L23-L31
type Response struct {
ClusterName string `json:"cluster_name"`
ClusterUuid string `json:"cluster_uuid"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch/knn_search.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch/knn_search.go
index cdc6ae9251..340514f2cb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch/knn_search.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch/knn_search.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Performs a kNN search.
package knnsearch
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -321,6 +322,50 @@ func (r *KnnSearch) Routing(routing string) *KnnSearch {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *KnnSearch) ErrorTrace(errortrace bool) *KnnSearch {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *KnnSearch) FilterPath(filterpaths ...string) *KnnSearch {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *KnnSearch) Human(human bool) *KnnSearch {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *KnnSearch) Pretty(pretty bool) *KnnSearch {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// DocvalueFields The request returns doc values for field names matching these patterns
// in the hits.fields property of the response. Accepts wildcard (*) patterns.
// API name: docvalue_fields
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch/request.go
index 5b9351b211..6f29658e86 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package knnsearch
@@ -32,7 +32,7 @@ import (
// Request holds the request body struct for the package knnsearch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/knn_search/KnnSearchRequest.ts#L27-L80
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/knn_search/KnnSearchRequest.ts#L27-L80
type Request struct {
// DocvalueFields The request returns doc values for field names matching these patterns
@@ -65,6 +65,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch/response.go
index 3d1984e476..7a29d92f82 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package knnsearch
@@ -28,7 +28,7 @@ import (
// Response holds the response body struct for the package knnsearch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/knn_search/KnnSearchResponse.ts#L26-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/knn_search/KnnSearchResponse.ts#L26-L54
type Response struct {
// Fields Contains field values for the documents. These fields
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mget/mget.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mget/mget.go
index 60517e7465..4557e72eab 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mget/mget.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mget/mget.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows to get multiple documents in one request.
package mget
@@ -402,6 +402,50 @@ func (r *Mget) StoredFields(fields ...string) *Mget {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Mget) ErrorTrace(errortrace bool) *Mget {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Mget) FilterPath(filterpaths ...string) *Mget {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Mget) Human(human bool) *Mget {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Mget) Pretty(pretty bool) *Mget {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Docs The documents you want to retrieve. Required if no index is specified in the
// request URI.
// API name: docs
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mget/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mget/request.go
index 0914bd2e53..b39e414897 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mget/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mget/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package mget
@@ -32,7 +32,7 @@ import (
// Request holds the request body struct for the package mget
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/mget/MultiGetRequest.ts#L25-L98
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mget/MultiGetRequest.ts#L25-L98
type Request struct {
// Docs The documents you want to retrieve. Required if no index is specified in the
@@ -46,6 +46,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mget/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mget/response.go
index c1bb271128..c6eb6dfd1e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mget/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mget/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package mget
@@ -32,7 +32,7 @@ import (
// Response holds the response body struct for the package mget
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/mget/MultiGetResponse.ts#L22-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mget/MultiGetResponse.ts#L22-L26
type Response struct {
Docs []types.MgetResponseItem `json:"docs"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch/msearch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch/msearch.go
index ab5b6d480b..a749b4d382 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch/msearch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch/msearch.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows to execute several search operations in one request.
package msearch
@@ -438,3 +438,47 @@ func (r *Msearch) TypedKeys(typedkeys bool) *Msearch {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Msearch) ErrorTrace(errortrace bool) *Msearch {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Msearch) FilterPath(filterpaths ...string) *Msearch {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Msearch) Human(human bool) *Msearch {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Msearch) Pretty(pretty bool) *Msearch {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch/request.go
index 33ef741e49..8f131ecfdd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package msearch
@@ -26,5 +26,5 @@ import (
// Request holds the request body struct for the package msearch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/msearch/MultiSearchRequest.ts#L25-L96
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/MultiSearchRequest.ts#L25-L96
type Request = []types.MsearchRequestItem
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch/response.go
index a45106daa8..60cf065fed 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package msearch
@@ -33,7 +33,7 @@ import (
// Response holds the response body struct for the package msearch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/msearch/MultiSearchResponse.ts#L25-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/MultiSearchResponse.ts#L25-L27
type Response struct {
Responses []types.MsearchResponseItem `json:"responses"`
Took int64 `json:"took"`
@@ -101,7 +101,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "took":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate/msearch_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate/msearch_template.go
index fa36cfd1eb..168571e1fb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate/msearch_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate/msearch_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows to execute several search template operations in one request.
package msearchtemplate
@@ -371,3 +371,47 @@ func (r *MsearchTemplate) TypedKeys(typedkeys bool) *MsearchTemplate {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *MsearchTemplate) ErrorTrace(errortrace bool) *MsearchTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *MsearchTemplate) FilterPath(filterpaths ...string) *MsearchTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *MsearchTemplate) Human(human bool) *MsearchTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *MsearchTemplate) Pretty(pretty bool) *MsearchTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate/request.go
index 1e0f1c26e5..99ef75c8f9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package msearchtemplate
@@ -26,5 +26,5 @@ import (
// Request holds the request body struct for the package msearchtemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L70
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L70
type Request = []types.RequestItem
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate/response.go
index 12f9c833d2..9e8004d67c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package msearchtemplate
@@ -33,7 +33,7 @@ import (
// Response holds the response body struct for the package msearchtemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L24
type Response struct {
Responses []types.MsearchResponseItem `json:"responses"`
Took int64 `json:"took"`
@@ -101,7 +101,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "took":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors/mtermvectors.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors/mtermvectors.go
index 160629875a..a4ac54f0ca 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors/mtermvectors.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors/mtermvectors.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns multiple termvectors in one request.
package mtermvectors
@@ -410,6 +410,50 @@ func (r *Mtermvectors) VersionType(versiontype versiontype.VersionType) *Mtermve
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Mtermvectors) ErrorTrace(errortrace bool) *Mtermvectors {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Mtermvectors) FilterPath(filterpaths ...string) *Mtermvectors {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Mtermvectors) Human(human bool) *Mtermvectors {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Mtermvectors) Pretty(pretty bool) *Mtermvectors {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Docs Array of existing or artificial documents.
// API name: docs
func (r *Mtermvectors) Docs(docs ...types.MTermVectorsOperation) *Mtermvectors {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors/request.go
index 24b0152bde..b6b23e2c48 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package mtermvectors
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package mtermvectors
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/mtermvectors/MultiTermVectorsRequest.ts#L31-L109
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mtermvectors/MultiTermVectorsRequest.ts#L31-L109
type Request struct {
// Docs Array of existing or artificial documents.
@@ -42,6 +42,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors/response.go
index f0e2e4dc3e..82a95d7114 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package mtermvectors
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package mtermvectors
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/mtermvectors/MultiTermVectorsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mtermvectors/MultiTermVectorsResponse.ts#L22-L24
type Response struct {
Docs []types.TermVectorsResult `json:"docs"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime/open_point_in_time.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime/open_point_in_time.go
index 659850e819..3ab58c5ecd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime/open_point_in_time.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime/open_point_in_time.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Open a point in time that can be used in subsequent searches
package openpointintime
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -262,7 +261,7 @@ func (r OpenPointInTime) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -349,3 +348,47 @@ func (r *OpenPointInTime) ExpandWildcards(expandwildcards ...expandwildcard.Expa
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *OpenPointInTime) ErrorTrace(errortrace bool) *OpenPointInTime {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *OpenPointInTime) FilterPath(filterpaths ...string) *OpenPointInTime {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *OpenPointInTime) Human(human bool) *OpenPointInTime {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *OpenPointInTime) Pretty(pretty bool) *OpenPointInTime {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime/response.go
index 55d2abcee8..2ea9946b60 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package openpointintime
// Response holds the response body struct for the package openpointintime
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/open_point_in_time/OpenPointInTimeResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/open_point_in_time/OpenPointInTimeResponse.ts#L22-L24
type Response struct {
Id string `json:"id"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/ping/ping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/ping/ping.go
index f3dab817e5..0207eda330 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/ping/ping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/ping/ping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns whether the cluster is running.
package ping
@@ -26,9 +26,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -193,7 +193,7 @@ func (r Ping) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -220,3 +220,47 @@ func (r *Ping) Header(key, value string) *Ping {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Ping) ErrorTrace(errortrace bool) *Ping {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Ping) FilterPath(filterpaths ...string) *Ping {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Ping) Human(human bool) *Ping {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Ping) Pretty(pretty bool) *Ping {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript/put_script.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript/put_script.go
index 102ecaeb2e..68e1e7d146 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript/put_script.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript/put_script.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates or updates a script.
package putscript
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -364,6 +365,50 @@ func (r *PutScript) Timeout(duration string) *PutScript {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutScript) ErrorTrace(errortrace bool) *PutScript {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutScript) FilterPath(filterpaths ...string) *PutScript {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutScript) Human(human bool) *PutScript {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutScript) Pretty(pretty bool) *PutScript {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Script Contains the script or search template, its parameters, and its language.
// API name: script
func (r *PutScript) Script(script *types.StoredScript) *PutScript {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript/request.go
index 53db9f1e57..88d2deaacc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putscript
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package putscript
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/put_script/PutScriptRequest.ts#L25-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/put_script/PutScriptRequest.ts#L25-L64
type Request struct {
// Script Contains the script or search template, its parameters, and its language.
@@ -39,6 +39,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript/response.go
index dbeb5abb47..8208514d80 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putscript
// Response holds the response body struct for the package putscript
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/put_script/PutScriptResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/put_script/PutScriptResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rankeval/rank_eval.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rankeval/rank_eval.go
index 0060f55bb9..2828c3c5c1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rankeval/rank_eval.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rankeval/rank_eval.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows to evaluate the quality of ranked search results over a set of typical
// search queries
@@ -363,6 +363,50 @@ func (r *RankEval) SearchType(searchtype string) *RankEval {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *RankEval) ErrorTrace(errortrace bool) *RankEval {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *RankEval) FilterPath(filterpaths ...string) *RankEval {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *RankEval) Human(human bool) *RankEval {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *RankEval) Pretty(pretty bool) *RankEval {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Metric Definition of the evaluation metric to calculate.
// API name: metric
func (r *RankEval) Metric(metric *types.RankEvalMetric) *RankEval {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rankeval/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rankeval/request.go
index 0e21323d0e..dcf660475e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rankeval/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rankeval/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package rankeval
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package rankeval
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/RankEvalRequest.ts#L24-L61
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/RankEvalRequest.ts#L24-L61
type Request struct {
// Metric Definition of the evaluation metric to calculate.
@@ -41,6 +41,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rankeval/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rankeval/response.go
index c7f715ca10..fbe1e76c8e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rankeval/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rankeval/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package rankeval
@@ -28,7 +28,7 @@ import (
// Response holds the response body struct for the package rankeval
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/RankEvalResponse.ts#L26-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/RankEvalResponse.ts#L26-L34
type Response struct {
// Details The details section contains one entry for every query in the original
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex/reindex.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex/reindex.go
index c1711cf920..4c35da39b0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex/reindex.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex/reindex.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows to copy documents from one index to another, optionally filtering the
// source
@@ -371,6 +371,50 @@ func (r *Reindex) RequireAlias(requirealias bool) *Reindex {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Reindex) ErrorTrace(errortrace bool) *Reindex {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Reindex) FilterPath(filterpaths ...string) *Reindex {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Reindex) Human(human bool) *Reindex {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Reindex) Pretty(pretty bool) *Reindex {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Conflicts Set to proceed to continue reindexing even if there are conflicts.
// API name: conflicts
func (r *Reindex) Conflicts(conflicts conflicts.Conflicts) *Reindex {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex/request.go
index 891966989b..d4f2e0b1b8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package reindex
@@ -34,7 +34,7 @@ import (
// Request holds the request body struct for the package reindex
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/reindex/ReindexRequest.ts#L27-L101
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex/ReindexRequest.ts#L27-L101
type Request struct {
// Conflicts Set to proceed to continue reindexing even if there are conflicts.
@@ -53,6 +53,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -93,7 +94,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "max_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -144,7 +145,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex/response.go
index 6b826adc83..7820193402 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package reindex
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package reindex
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/reindex/ReindexResponse.ts#L26-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex/ReindexResponse.ts#L26-L45
type Response struct {
Batches *int64 `json:"batches,omitempty"`
Created *int64 `json:"created,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindexrethrottle/reindex_rethrottle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindexrethrottle/reindex_rethrottle.go
index b580b23cd0..fbfd9e865f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindexrethrottle/reindex_rethrottle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindexrethrottle/reindex_rethrottle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Changes the number of requests per second for a particular Reindex operation.
package reindexrethrottle
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r ReindexRethrottle) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -306,3 +306,47 @@ func (r *ReindexRethrottle) RequestsPerSecond(requestspersecond string) *Reindex
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ReindexRethrottle) ErrorTrace(errortrace bool) *ReindexRethrottle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ReindexRethrottle) FilterPath(filterpaths ...string) *ReindexRethrottle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ReindexRethrottle) Human(human bool) *ReindexRethrottle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ReindexRethrottle) Pretty(pretty bool) *ReindexRethrottle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindexrethrottle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindexrethrottle/response.go
index 90a4dadd91..683eacb3f1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindexrethrottle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/reindexrethrottle/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package reindexrethrottle
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package reindexrethrottle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/reindex_rethrottle/ReindexRethrottleResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex_rethrottle/ReindexRethrottleResponse.ts#L23-L25
type Response struct {
Nodes map[string]types.ReindexNode `json:"nodes"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rendersearchtemplate/render_search_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rendersearchtemplate/render_search_template.go
index 6b2145dc82..dbb912a715 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rendersearchtemplate/render_search_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rendersearchtemplate/render_search_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows to use the Mustache language to pre-render a search definition.
package rendersearchtemplate
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -321,6 +322,50 @@ func (r *RenderSearchTemplate) Id(id string) *RenderSearchTemplate {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *RenderSearchTemplate) ErrorTrace(errortrace bool) *RenderSearchTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *RenderSearchTemplate) FilterPath(filterpaths ...string) *RenderSearchTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *RenderSearchTemplate) Human(human bool) *RenderSearchTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *RenderSearchTemplate) Pretty(pretty bool) *RenderSearchTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: file
func (r *RenderSearchTemplate) File(file string) *RenderSearchTemplate {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rendersearchtemplate/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rendersearchtemplate/request.go
index 24623ce4d3..c764358c7b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rendersearchtemplate/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rendersearchtemplate/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package rendersearchtemplate
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package rendersearchtemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/render_search_template/RenderSearchTemplateRequest.ts#L25-L55
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/render_search_template/RenderSearchTemplateRequest.ts#L25-L55
type Request struct {
File *string `json:"file,omitempty"`
// Params Key-value pairs used to replace Mustache variables in the template.
@@ -46,6 +46,7 @@ func NewRequest() *Request {
r := &Request{
Params: make(map[string]json.RawMessage, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rendersearchtemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rendersearchtemplate/response.go
index 6ccae6ab69..8e13856cc5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rendersearchtemplate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/rendersearchtemplate/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package rendersearchtemplate
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package rendersearchtemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/render_search_template/RenderSearchTemplateResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/render_search_template/RenderSearchTemplateResponse.ts#L23-L25
type Response struct {
TemplateOutput map[string]json.RawMessage `json:"template_output"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scriptspainlessexecute/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scriptspainlessexecute/request.go
index 9c05b55c6f..2e5e806746 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scriptspainlessexecute/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scriptspainlessexecute/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package scriptspainlessexecute
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package scriptspainlessexecute
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L24-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L24-L46
type Request struct {
// Context The context that the script should run in.
@@ -43,6 +43,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scriptspainlessexecute/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scriptspainlessexecute/response.go
index 3e7c3d2869..7ea34bed04 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scriptspainlessexecute/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scriptspainlessexecute/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package scriptspainlessexecute
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package scriptspainlessexecute
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/scripts_painless_execute/ExecutePainlessScriptResponse.ts#L20-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/scripts_painless_execute/ExecutePainlessScriptResponse.ts#L20-L24
type Response struct {
Result json.RawMessage `json:"result,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scriptspainlessexecute/scripts_painless_execute.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scriptspainlessexecute/scripts_painless_execute.go
index 2133ed80e9..912a2b25bc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scriptspainlessexecute/scripts_painless_execute.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scriptspainlessexecute/scripts_painless_execute.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows an arbitrary script to be executed and a result to be returned
package scriptspainlessexecute
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -293,6 +294,50 @@ func (r *ScriptsPainlessExecute) Header(key, value string) *ScriptsPainlessExecu
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ScriptsPainlessExecute) ErrorTrace(errortrace bool) *ScriptsPainlessExecute {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ScriptsPainlessExecute) FilterPath(filterpaths ...string) *ScriptsPainlessExecute {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ScriptsPainlessExecute) Human(human bool) *ScriptsPainlessExecute {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ScriptsPainlessExecute) Pretty(pretty bool) *ScriptsPainlessExecute {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Context The context that the script should run in.
// API name: context
func (r *ScriptsPainlessExecute) Context(context string) *ScriptsPainlessExecute {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll/request.go
index 87381f29c0..ba712bc42f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package scroll
@@ -32,7 +32,7 @@ import (
// Request holds the request body struct for the package scroll
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/scroll/ScrollRequest.ts#L24-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/scroll/ScrollRequest.ts#L24-L59
type Request struct {
// Scroll Period to retain the search context for scrolling.
@@ -44,6 +44,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll/response.go
index 01a67b6f79..e288567063 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package scroll
@@ -34,7 +34,7 @@ import (
// Response holds the response body struct for the package scroll
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/scroll/ScrollResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/scroll/ScrollResponse.ts#L22-L24
type Response struct {
Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"`
Clusters_ *types.ClusterStatistics `json:"_clusters,omitempty"`
@@ -532,7 +532,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := types.NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -582,7 +582,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -592,7 +592,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -620,7 +620,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "max_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -636,7 +636,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "num_reduce_phases":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -714,7 +714,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
s.Suggest[elems[1]] = append(s.Suggest[elems[1]], o)
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -724,7 +724,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Suggest")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -734,7 +734,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "terminated_early":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -748,7 +748,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "timed_out":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -762,7 +762,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "took":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll/scroll.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll/scroll.go
index c1ac6a9b50..084700afcf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll/scroll.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll/scroll.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows to retrieve a large numbers of results from a single search request.
package scroll
@@ -303,6 +303,50 @@ func (r *Scroll) RestTotalHitsAsInt(resttotalhitsasint bool) *Scroll {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Scroll) ErrorTrace(errortrace bool) *Scroll {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Scroll) FilterPath(filterpaths ...string) *Scroll {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Scroll) Human(human bool) *Scroll {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Scroll) Pretty(pretty bool) *Scroll {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Scroll Period to retain the search context for scrolling.
// API name: scroll
func (r *Scroll) Scroll(duration types.Duration) *Scroll {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/search/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/search/request.go
index ac8e1bc6de..ce5d22dd06 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/search/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/search/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package search
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package search
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/SearchRequest.ts#L53-L513
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/SearchRequest.ts#L54-L520
type Request struct {
// Aggregations Defines the aggregations that are run as part of the search request.
@@ -65,7 +65,7 @@ type Request struct {
// IndicesBoost Boosts the _score of documents from specified indices.
IndicesBoost []map[string]types.Float64 `json:"indices_boost,omitempty"`
// Knn Defines the approximate kNN search to run.
- Knn []types.KnnQuery `json:"knn,omitempty"`
+ Knn []types.KnnSearch `json:"knn,omitempty"`
// MinScore Minimum `_score` for matching documents.
// Documents with a lower `_score` are not included in the search results.
MinScore *types.Float64 `json:"min_score,omitempty"`
@@ -88,6 +88,10 @@ type Request struct {
// Rescore Can be used to improve precision by reordering just the top (for example 100
// - 500) documents returned by the `query` and `post_filter` phases.
Rescore []types.Rescore `json:"rescore,omitempty"`
+ // Retriever A retriever is a specification to describe top documents returned from a
+ // search. A retriever replaces other elements of the search API that also
+ // return top documents such as query and knn.
+ Retriever *types.RetrieverContainer `json:"retriever,omitempty"`
// RuntimeMappings Defines one or more runtime fields in the search request.
// These fields take precedence over mapped fields with the same name.
RuntimeMappings types.RuntimeFields `json:"runtime_mappings,omitempty"`
@@ -161,6 +165,7 @@ func NewRequest() *Request {
Ext: make(map[string]json.RawMessage, 0),
ScriptFields: make(map[string]types.ScriptField, 0),
}
+
return r
}
@@ -209,7 +214,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "explain":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -237,7 +242,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "from":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -265,7 +270,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
rawMsg := json.RawMessage{}
dec.Decode(&rawMsg)
if !bytes.HasPrefix(rawMsg, []byte("[")) {
- o := types.NewKnnQuery()
+ o := types.NewKnnSearch()
if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Knn", err)
}
@@ -278,7 +283,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "min_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -304,7 +309,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "profile":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -343,6 +348,11 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
}
+ case "retriever":
+ if err := dec.Decode(&s.Retriever); err != nil {
+ return fmt.Errorf("%s | %w", "Retriever", err)
+ }
+
case "runtime_mappings":
if err := dec.Decode(&s.RuntimeMappings); err != nil {
return fmt.Errorf("%s | %w", "RuntimeMappings", err)
@@ -362,7 +372,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "seq_no_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -377,7 +387,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -444,7 +454,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "terminate_after":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -471,7 +481,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
s.Timeout = &o
case "track_scores":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -490,7 +500,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "version":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/search/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/search/response.go
index 9454a3e06b..280da5ec29 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/search/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/search/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package search
@@ -34,7 +34,7 @@ import (
// Response holds the response body struct for the package search
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/SearchResponse.ts#L34-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/SearchResponse.ts#L34-L36
type Response struct {
Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"`
Clusters_ *types.ClusterStatistics `json:"_clusters,omitempty"`
@@ -532,7 +532,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := types.NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -582,7 +582,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -592,7 +592,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -620,7 +620,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "max_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -636,7 +636,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "num_reduce_phases":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -714,7 +714,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
s.Suggest[elems[1]] = append(s.Suggest[elems[1]], o)
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -724,7 +724,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Suggest")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -734,7 +734,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "terminated_early":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -748,7 +748,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "timed_out":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -762,7 +762,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "took":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/search/search.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/search/search.go
index 4e79af20a9..5cf78db03a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/search/search.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/search/search.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns results matching a query.
package search
@@ -651,6 +651,50 @@ func (r *Search) ForceSyntheticSource(forcesyntheticsource bool) *Search {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Search) ErrorTrace(errortrace bool) *Search {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Search) FilterPath(filterpaths ...string) *Search {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Search) Human(human bool) *Search {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Search) Pretty(pretty bool) *Search {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Aggregations Defines the aggregations that are run as part of the search request.
// API name: aggregations
func (r *Search) Aggregations(aggregations map[string]types.Aggregations) *Search {
@@ -739,7 +783,7 @@ func (r *Search) IndicesBoost(indicesboosts ...map[string]types.Float64) *Search
// Knn Defines the approximate kNN search to run.
// API name: knn
-func (r *Search) Knn(knns ...types.KnnQuery) *Search {
+func (r *Search) Knn(knns ...types.KnnSearch) *Search {
r.req.Knn = knns
return r
@@ -814,6 +858,17 @@ func (r *Search) Rescore(rescores ...types.Rescore) *Search {
return r
}
+// Retriever A retriever is a specification to describe top documents returned from a
+// search. A retriever replaces other elements of the search API that also
+// return top documents such as query and knn.
+// API name: retriever
+func (r *Search) Retriever(retriever *types.RetrieverContainer) *Search {
+
+ r.req.Retriever = retriever
+
+ return r
+}
+
// RuntimeMappings Defines one or more runtime fields in the search request.
// These fields take precedence over mapped fields with the same name.
// API name: runtime_mappings
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt/request.go
index 06f307a3d2..56222ddca2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package searchmvt
@@ -35,7 +35,7 @@ import (
// Request holds the request body struct for the package searchmvt
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search_mvt/SearchMvtRequest.ts#L33-L188
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_mvt/SearchMvtRequest.ts#L33-L188
type Request struct {
// Aggs Sub-aggregations for the geotile_grid.
@@ -109,6 +109,7 @@ func NewRequest() *Request {
r := &Request{
Aggs: make(map[string]types.Aggregations, 0),
}
+
return r
}
@@ -148,7 +149,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "buffer":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -163,7 +164,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "exact_bounds":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -178,7 +179,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "extent":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -215,7 +216,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "grid_precision":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -246,7 +247,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -282,7 +283,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "with_labels":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt/response.go
index 0a5285895b..c6ef89081f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package searchmvt
// Response holds the response body struct for the package searchmvt
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search_mvt/SearchMvtResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_mvt/SearchMvtResponse.ts#L22-L25
type Response = []byte
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt/search_mvt.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt/search_mvt.go
index b2fe063d77..6b41af6524 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt/search_mvt.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt/search_mvt.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Searches a vector tile for geospatial values. Returns results as a binary
// Mapbox vector tile.
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -396,6 +397,50 @@ func (r *SearchMvt) _y(y string) *SearchMvt {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *SearchMvt) ErrorTrace(errortrace bool) *SearchMvt {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *SearchMvt) FilterPath(filterpaths ...string) *SearchMvt {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *SearchMvt) Human(human bool) *SearchMvt {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *SearchMvt) Pretty(pretty bool) *SearchMvt {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Aggs Sub-aggregations for the geotile_grid.
//
// Supports the following aggregation types:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchshards/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchshards/response.go
index ae7aab5bc5..ae5bb16992 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchshards/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchshards/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package searchshards
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package searchshards
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search_shards/SearchShardsResponse.ts#L25-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_shards/SearchShardsResponse.ts#L25-L31
type Response struct {
Indices map[string]types.ShardStoreIndex `json:"indices"`
Nodes map[string]types.NodeAttributes `json:"nodes"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchshards/search_shards.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchshards/search_shards.go
index 673defe5de..e86786341c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchshards/search_shards.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchshards/search_shards.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about the indices and shards that a search request would
// be executed against.
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -267,7 +266,7 @@ func (r SearchShards) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -366,3 +365,47 @@ func (r *SearchShards) Routing(routing string) *SearchShards {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *SearchShards) ErrorTrace(errortrace bool) *SearchShards {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *SearchShards) FilterPath(filterpaths ...string) *SearchShards {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *SearchShards) Human(human bool) *SearchShards {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *SearchShards) Pretty(pretty bool) *SearchShards {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchtemplate/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchtemplate/request.go
index dc310f959c..3cbbf4d9ff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchtemplate/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchtemplate/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package searchtemplate
@@ -31,7 +31,7 @@ import (
// Request holds the request body struct for the package searchtemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search_template/SearchTemplateRequest.ts#L32-L134
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_template/SearchTemplateRequest.ts#L32-L134
type Request struct {
// Explain If `true`, returns detailed information about score calculation as part of
@@ -57,6 +57,7 @@ func NewRequest() *Request {
r := &Request{
Params: make(map[string]json.RawMessage, 0),
}
+
return r
}
@@ -87,7 +88,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "explain":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +115,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "profile":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchtemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchtemplate/response.go
index 2e5cdf4246..b6722f283c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchtemplate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchtemplate/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package searchtemplate
@@ -34,7 +34,7 @@ import (
// Response holds the response body struct for the package searchtemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search_template/SearchTemplateResponse.ts#L30-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_template/SearchTemplateResponse.ts#L30-L48
type Response struct {
Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"`
Clusters_ *types.ClusterStatistics `json:"_clusters,omitempty"`
@@ -532,7 +532,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := types.NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -582,7 +582,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -592,7 +592,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -620,7 +620,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "max_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -636,7 +636,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "num_reduce_phases":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -714,7 +714,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
s.Suggest[elems[1]] = append(s.Suggest[elems[1]], o)
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -724,7 +724,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Suggest")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -734,7 +734,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "terminated_early":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -748,7 +748,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "timed_out":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -762,7 +762,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "took":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchtemplate/search_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchtemplate/search_template.go
index 98b18187be..a28aa60129 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchtemplate/search_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/searchtemplate/search_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows to use the Mustache language to pre-render a search definition.
package searchtemplate
@@ -431,6 +431,50 @@ func (r *SearchTemplate) TypedKeys(typedkeys bool) *SearchTemplate {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *SearchTemplate) ErrorTrace(errortrace bool) *SearchTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *SearchTemplate) FilterPath(filterpaths ...string) *SearchTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *SearchTemplate) Human(human bool) *SearchTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *SearchTemplate) Pretty(pretty bool) *SearchTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Explain If `true`, returns detailed information about score calculation as part of
// each hit.
// API name: explain
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum/request.go
index 7a36ad3fce..3d8bf932c1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package termsenum
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package termsenum
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/terms_enum/TermsEnumRequest.ts#L26-L65
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/terms_enum/TermsEnumRequest.ts#L26-L65
type Request struct {
// CaseInsensitive When true the provided search string is matched against index terms without
@@ -60,6 +60,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -90,7 +91,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "case_insensitive":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -127,7 +128,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum/response.go
index 79318387e4..4c1b1e520a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package termsenum
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package termsenum
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/terms_enum/TermsEnumResponse.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/terms_enum/TermsEnumResponse.ts#L22-L28
type Response struct {
Complete bool `json:"complete"`
Shards_ types.ShardStatistics `json:"_shards"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum/terms_enum.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum/terms_enum.go
index ef58ea39ad..69a4aca58c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum/terms_enum.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum/terms_enum.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// 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
@@ -32,6 +32,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -317,6 +318,50 @@ func (r *TermsEnum) _index(index string) *TermsEnum {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *TermsEnum) ErrorTrace(errortrace bool) *TermsEnum {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *TermsEnum) FilterPath(filterpaths ...string) *TermsEnum {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *TermsEnum) Human(human bool) *TermsEnum {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *TermsEnum) Pretty(pretty bool) *TermsEnum {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// CaseInsensitive When true the provided search string is matched against index terms without
// case sensitivity.
// API name: case_insensitive
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors/request.go
index 9460782273..b8b065c967 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package termvectors
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package termvectors
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/termvectors/TermVectorsRequest.ts#L33-L118
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/termvectors/TermVectorsRequest.ts#L33-L118
type Request struct {
// Doc An artificial document (a document not present in the index) for which you
@@ -46,6 +46,7 @@ func NewRequest() *Request {
r := &Request{
PerFieldAnalyzer: make(map[string]string, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors/response.go
index 00226c101f..50d2264538 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package termvectors
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package termvectors
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/termvectors/TermVectorsResponse.ts#L25-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/termvectors/TermVectorsResponse.ts#L25-L34
type Response struct {
Found bool `json:"found"`
Id_ string `json:"_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors/termvectors.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors/termvectors.go
index ce6e0c2ba9..04a2de9e14 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors/termvectors.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors/termvectors.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information and statistics about terms in the fields of a particular
// document.
@@ -438,6 +438,50 @@ func (r *Termvectors) VersionType(versiontype versiontype.VersionType) *Termvect
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Termvectors) ErrorTrace(errortrace bool) *Termvectors {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Termvectors) FilterPath(filterpaths ...string) *Termvectors {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Termvectors) Human(human bool) *Termvectors {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Termvectors) Pretty(pretty bool) *Termvectors {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Doc An artificial document (a document not present in the index) for which you
// want to retrieve term vectors.
// API name: doc
@@ -445,7 +489,7 @@ func (r *Termvectors) VersionType(versiontype versiontype.VersionType) *Termvect
// doc should be a json.RawMessage or a structure
// if a structure is provided, the client will defer a json serialization
// prior to sending the payload to Elasticsearch.
-func (r *Termvectors) Doc(doc interface{}) *Termvectors {
+func (r *Termvectors) Doc(doc any) *Termvectors {
switch casted := doc.(type) {
case json.RawMessage:
r.req.Doc = casted
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/update/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/update/request.go
index 0a6a97323d..d0986f8e3f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/update/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/update/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package update
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package update
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/update/UpdateRequest.ts#L38-L151
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/update/UpdateRequest.ts#L38-L151
type Request struct {
// DetectNoop Set to false to disable setting 'result' in the response
@@ -60,6 +60,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -90,7 +91,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "detect_noop":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -109,7 +110,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "doc_as_upsert":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -159,7 +160,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "scripted_upsert":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/update/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/update/response.go
index cc35d924fb..d47f6c5457 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/update/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/update/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package update
@@ -27,15 +27,15 @@ import (
// Response holds the response body struct for the package update
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/update/UpdateResponse.ts#L27-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/update/UpdateResponse.ts#L27-L29
type Response struct {
ForcedRefresh *bool `json:"forced_refresh,omitempty"`
Get *types.InlineGet `json:"get,omitempty"`
Id_ string `json:"_id"`
Index_ string `json:"_index"`
- PrimaryTerm_ int64 `json:"_primary_term"`
+ PrimaryTerm_ *int64 `json:"_primary_term,omitempty"`
Result result.Result `json:"result"`
- SeqNo_ int64 `json:"_seq_no"`
+ SeqNo_ *int64 `json:"_seq_no,omitempty"`
Shards_ types.ShardStatistics `json:"_shards"`
Version_ int64 `json:"_version"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/update/update.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/update/update.go
index 24409bdf6c..8ee384b02e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/update/update.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/update/update.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates a document with a script or partial document.
package update
@@ -432,6 +432,50 @@ func (r *Update) SourceIncludes_(fields ...string) *Update {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Update) ErrorTrace(errortrace bool) *Update {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Update) FilterPath(filterpaths ...string) *Update {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Update) Human(human bool) *Update {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Update) Pretty(pretty bool) *Update {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// DetectNoop Set to false to disable setting 'result' in the response
// to 'noop' if no change to the document occurred.
// API name: detect_noop
@@ -447,7 +491,7 @@ func (r *Update) DetectNoop(detectnoop bool) *Update {
// doc should be a json.RawMessage or a structure
// if a structure is provided, the client will defer a json serialization
// prior to sending the payload to Elasticsearch.
-func (r *Update) Doc(doc interface{}) *Update {
+func (r *Update) Doc(doc any) *Update {
switch casted := doc.(type) {
case json.RawMessage:
r.req.Doc = casted
@@ -507,7 +551,7 @@ func (r *Update) Source_(sourceconfig types.SourceConfig) *Update {
// upsert should be a json.RawMessage or a structure
// if a structure is provided, the client will defer a json serialization
// prior to sending the payload to Elasticsearch.
-func (r *Update) Upsert(upsert interface{}) *Update {
+func (r *Update) Upsert(upsert any) *Update {
switch casted := upsert.(type) {
case json.RawMessage:
r.req.Upsert = casted
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyquery/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyquery/request.go
index de1f2c4c9a..68a18022ad 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyquery/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyquery/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatebyquery
@@ -34,7 +34,7 @@ import (
// Request holds the request body struct for the package updatebyquery
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/update_by_query/UpdateByQueryRequest.ts#L37-L221
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/update_by_query/UpdateByQueryRequest.ts#L37-L221
type Request struct {
// Conflicts What to do if update by query hits version conflicts: `abort` or `proceed`.
@@ -53,6 +53,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -88,7 +89,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "max_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyquery/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyquery/response.go
index ba8bd91f5e..0d408e8031 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyquery/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyquery/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatebyquery
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package updatebyquery
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/update_by_query/UpdateByQueryResponse.ts#L26-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/update_by_query/UpdateByQueryResponse.ts#L26-L45
type Response struct {
Batches *int64 `json:"batches,omitempty"`
Deleted *int64 `json:"deleted,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyquery/update_by_query.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyquery/update_by_query.go
index ae1d9539a7..2af65239fd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyquery/update_by_query.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyquery/update_by_query.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates documents that match the specified query. If no query is specified,
//
@@ -595,6 +595,50 @@ func (r *UpdateByQuery) WaitForCompletion(waitforcompletion bool) *UpdateByQuery
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *UpdateByQuery) ErrorTrace(errortrace bool) *UpdateByQuery {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *UpdateByQuery) FilterPath(filterpaths ...string) *UpdateByQuery {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *UpdateByQuery) Human(human bool) *UpdateByQuery {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *UpdateByQuery) Pretty(pretty bool) *UpdateByQuery {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Conflicts What to do if update by query hits version conflicts: `abort` or `proceed`.
// API name: conflicts
func (r *UpdateByQuery) Conflicts(conflicts conflicts.Conflicts) *UpdateByQuery {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyqueryrethrottle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyqueryrethrottle/response.go
index 9a8e5b5102..51e6360d9e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyqueryrethrottle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyqueryrethrottle/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatebyqueryrethrottle
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package updatebyqueryrethrottle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleResponse.ts#L23-L25
type Response struct {
Nodes map[string]types.UpdateByQueryRethrottleNode `json:"nodes"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyqueryrethrottle/update_by_query_rethrottle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyqueryrethrottle/update_by_query_rethrottle.go
index 3c310770d6..84420e6445 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyqueryrethrottle/update_by_query_rethrottle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyqueryrethrottle/update_by_query_rethrottle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Changes the number of requests per second for a particular Update By Query
// operation.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r UpdateByQueryRethrottle) IsSuccess(providedCtx context.Context) (bool, e
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -308,3 +308,47 @@ func (r *UpdateByQueryRethrottle) RequestsPerSecond(requestspersecond string) *U
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *UpdateByQueryRethrottle) ErrorTrace(errortrace bool) *UpdateByQueryRethrottle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *UpdateByQueryRethrottle) FilterPath(filterpaths ...string) *UpdateByQueryRethrottle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *UpdateByQueryRethrottle) Human(human bool) *UpdateByQueryRethrottle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *UpdateByQueryRethrottle) Pretty(pretty bool) *UpdateByQueryRethrottle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/deletedanglingindex/delete_dangling_index.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/deletedanglingindex/delete_dangling_index.go
index fd97a63882..a41cf8b8ec 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/deletedanglingindex/delete_dangling_index.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/deletedanglingindex/delete_dangling_index.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes the specified dangling index
package deletedanglingindex
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -261,7 +260,7 @@ func (r DeleteDanglingIndex) IsSuccess(providedCtx context.Context) (bool, error
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -321,3 +320,47 @@ func (r *DeleteDanglingIndex) Timeout(duration string) *DeleteDanglingIndex {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteDanglingIndex) ErrorTrace(errortrace bool) *DeleteDanglingIndex {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteDanglingIndex) FilterPath(filterpaths ...string) *DeleteDanglingIndex {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteDanglingIndex) Human(human bool) *DeleteDanglingIndex {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteDanglingIndex) Pretty(pretty bool) *DeleteDanglingIndex {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/deletedanglingindex/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/deletedanglingindex/response.go
index b5971fac08..649af920ae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/deletedanglingindex/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/deletedanglingindex/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletedanglingindex
// Response holds the response body struct for the package deletedanglingindex
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/importdanglingindex/import_dangling_index.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/importdanglingindex/import_dangling_index.go
index 253a5d0e81..fabdb86c1b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/importdanglingindex/import_dangling_index.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/importdanglingindex/import_dangling_index.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Imports the specified dangling index
package importdanglingindex
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -261,7 +260,7 @@ func (r ImportDanglingIndex) IsSuccess(providedCtx context.Context) (bool, error
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -321,3 +320,47 @@ func (r *ImportDanglingIndex) Timeout(duration string) *ImportDanglingIndex {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ImportDanglingIndex) ErrorTrace(errortrace bool) *ImportDanglingIndex {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ImportDanglingIndex) FilterPath(filterpaths ...string) *ImportDanglingIndex {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ImportDanglingIndex) Human(human bool) *ImportDanglingIndex {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ImportDanglingIndex) Pretty(pretty bool) *ImportDanglingIndex {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/importdanglingindex/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/importdanglingindex/response.go
index 09db9c195b..ef5dfc75fc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/importdanglingindex/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/importdanglingindex/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package importdanglingindex
// Response holds the response body struct for the package importdanglingindex
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/dangling_indices/import_dangling_index/ImportDanglingIndexResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/dangling_indices/import_dangling_index/ImportDanglingIndexResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/listdanglingindices/list_dangling_indices.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/listdanglingindices/list_dangling_indices.go
index 53e9df5ca4..21655e4052 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/listdanglingindices/list_dangling_indices.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/listdanglingindices/list_dangling_indices.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns all dangling indices.
package listdanglingindices
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -246,7 +246,7 @@ func (r ListDanglingIndices) IsSuccess(providedCtx context.Context) (bool, error
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -273,3 +273,47 @@ func (r *ListDanglingIndices) Header(key, value string) *ListDanglingIndices {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ListDanglingIndices) ErrorTrace(errortrace bool) *ListDanglingIndices {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ListDanglingIndices) FilterPath(filterpaths ...string) *ListDanglingIndices {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ListDanglingIndices) Human(human bool) *ListDanglingIndices {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ListDanglingIndices) Pretty(pretty bool) *ListDanglingIndices {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/listdanglingindices/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/listdanglingindices/response.go
index ebdf8045f3..081def4a0f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/listdanglingindices/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/listdanglingindices/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package listdanglingindices
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package listdanglingindices
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L23-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L23-L27
type Response struct {
DanglingIndices []types.DanglingIndex `json:"dangling_indices"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/deletepolicy/delete_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/deletepolicy/delete_policy.go
index affdecd25d..03b1b9d497 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/deletepolicy/delete_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/deletepolicy/delete_policy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an existing enrich policy and its enrich index.
package deletepolicy
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r DeletePolicy) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *DeletePolicy) _name(name string) *DeletePolicy {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeletePolicy) ErrorTrace(errortrace bool) *DeletePolicy {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeletePolicy) FilterPath(filterpaths ...string) *DeletePolicy {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeletePolicy) Human(human bool) *DeletePolicy {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeletePolicy) Pretty(pretty bool) *DeletePolicy {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/deletepolicy/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/deletepolicy/response.go
index 78fdb9c237..d1f9944699 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/deletepolicy/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/deletepolicy/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletepolicy
// Response holds the response body struct for the package deletepolicy
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/enrich/delete_policy/DeleteEnrichPolicyResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/delete_policy/DeleteEnrichPolicyResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/executepolicy/execute_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/executepolicy/execute_policy.go
index 49521a725e..b98bc2552f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/executepolicy/execute_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/executepolicy/execute_policy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates the enrich index for an existing enrich policy.
package executepolicy
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r ExecutePolicy) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -310,3 +309,47 @@ func (r *ExecutePolicy) WaitForCompletion(waitforcompletion bool) *ExecutePolicy
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ExecutePolicy) ErrorTrace(errortrace bool) *ExecutePolicy {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ExecutePolicy) FilterPath(filterpaths ...string) *ExecutePolicy {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ExecutePolicy) Human(human bool) *ExecutePolicy {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ExecutePolicy) Pretty(pretty bool) *ExecutePolicy {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/executepolicy/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/executepolicy/response.go
index 9344f208d7..8ee0bbd3c5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/executepolicy/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/executepolicy/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package executepolicy
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package executepolicy
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/enrich/execute_policy/ExecuteEnrichPolicyResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/execute_policy/ExecuteEnrichPolicyResponse.ts#L23-L28
type Response struct {
Status *types.ExecuteEnrichPolicyStatus `json:"status,omitempty"`
TaskId types.TaskId `json:"task_id,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/getpolicy/get_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/getpolicy/get_policy.go
index 67a0fbf674..7905a354b4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/getpolicy/get_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/getpolicy/get_policy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Gets information about an enrich policy.
package getpolicy
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -267,7 +267,7 @@ func (r GetPolicy) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -304,3 +304,47 @@ func (r *GetPolicy) Name(name string) *GetPolicy {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetPolicy) ErrorTrace(errortrace bool) *GetPolicy {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetPolicy) FilterPath(filterpaths ...string) *GetPolicy {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetPolicy) Human(human bool) *GetPolicy {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetPolicy) Pretty(pretty bool) *GetPolicy {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/getpolicy/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/getpolicy/response.go
index 25766e722f..27c53d7f5d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/getpolicy/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/getpolicy/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getpolicy
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getpolicy
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/enrich/get_policy/GetEnrichPolicyResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/get_policy/GetEnrichPolicyResponse.ts#L22-L24
type Response struct {
Policies []types.Summary `json:"policies"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy/put_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy/put_policy.go
index 299cedad9f..1703cbda93 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy/put_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy/put_policy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a new enrich policy.
package putpolicy
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -314,6 +315,50 @@ func (r *PutPolicy) _name(name string) *PutPolicy {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutPolicy) ErrorTrace(errortrace bool) *PutPolicy {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutPolicy) FilterPath(filterpaths ...string) *PutPolicy {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutPolicy) Human(human bool) *PutPolicy {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutPolicy) Pretty(pretty bool) *PutPolicy {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// GeoMatch Matches enrich data to incoming documents based on a `geo_shape` query.
// API name: geo_match
func (r *PutPolicy) GeoMatch(geomatch *types.EnrichPolicy) *PutPolicy {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy/request.go
index 1c99842bd9..451e7b8d30 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putpolicy
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package putpolicy
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/enrich/put_policy/PutEnrichPolicyRequest.ts#L24-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/put_policy/PutEnrichPolicyRequest.ts#L24-L52
type Request struct {
// GeoMatch Matches enrich data to incoming documents based on a `geo_shape` query.
@@ -44,6 +44,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy/response.go
index b73b4cb1d8..16e8892d58 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putpolicy
// Response holds the response body struct for the package putpolicy
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/enrich/put_policy/PutEnrichPolicyResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/put_policy/PutEnrichPolicyResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/stats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/stats/response.go
index 0b3eacb604..bd40363ac6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/stats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/stats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package stats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/enrich/stats/EnrichStatsResponse.ts#L22-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/stats/EnrichStatsResponse.ts#L22-L39
type Response struct {
// CacheStats Objects containing information about the enrich cache stats on each ingest
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/stats/stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/stats/stats.go
index 67a10c6141..9e3baa718c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/stats/stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/enrich/stats/stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Gets enrich coordinator statistics and information about enrich policies that
// are currently executing.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -250,7 +250,7 @@ func (r Stats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -277,3 +277,47 @@ func (r *Stats) Header(key, value string) *Stats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Stats) ErrorTrace(errortrace bool) *Stats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Stats) FilterPath(filterpaths ...string) *Stats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Stats) Human(human bool) *Stats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Stats) Pretty(pretty bool) *Stats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/delete/delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/delete/delete.go
index 2fa9abeec2..fddd5ede0e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/delete/delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/delete/delete.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an async EQL search by ID. If the search is still running, the search
// request will be cancelled. Otherwise, the saved search results are deleted.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r Delete) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -303,3 +303,47 @@ func (r *Delete) _id(id string) *Delete {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Delete) ErrorTrace(errortrace bool) *Delete {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Delete) FilterPath(filterpaths ...string) *Delete {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Delete) Human(human bool) *Delete {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Delete) Pretty(pretty bool) *Delete {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/delete/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/delete/response.go
index 5cd410c432..caf4d998de 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/delete/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/delete/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package delete
// Response holds the response body struct for the package delete
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/eql/delete/EqlDeleteResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/delete/EqlDeleteResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/get/get.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/get/get.go
index 976c59abcf..3ea07c43f7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/get/get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/get/get.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns async results from previously executed Event Query Language (EQL)
// search
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r Get) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -319,3 +319,47 @@ func (r *Get) WaitForCompletionTimeout(duration string) *Get {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Get) ErrorTrace(errortrace bool) *Get {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Get) FilterPath(filterpaths ...string) *Get {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Get) Human(human bool) *Get {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Get) Pretty(pretty bool) *Get {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/get/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/get/response.go
index e56b762a64..642f8282bb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/get/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/get/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package get
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package get
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/eql/get/EqlGetResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/get/EqlGetResponse.ts#L22-L24
type Response struct {
// Hits Contains matching events and sequences. Also contains related metadata.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/getstatus/get_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/getstatus/get_status.go
index 7c58d7f04c..d2e5b4c40d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/getstatus/get_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/getstatus/get_status.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the status of a previously submitted async or stored Event Query
// Language (EQL) search
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -266,7 +266,7 @@ func (r GetStatus) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -302,3 +302,47 @@ func (r *GetStatus) _id(id string) *GetStatus {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetStatus) ErrorTrace(errortrace bool) *GetStatus {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetStatus) FilterPath(filterpaths ...string) *GetStatus {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetStatus) Human(human bool) *GetStatus {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetStatus) Pretty(pretty bool) *GetStatus {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/getstatus/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/getstatus/response.go
index 992304bb74..64fc566933 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/getstatus/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/getstatus/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getstatus
// Response holds the response body struct for the package getstatus
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/eql/get_status/EqlGetStatusResponse.ts#L24-L51
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/get_status/EqlGetStatusResponse.ts#L24-L51
type Response struct {
// CompletionStatus For a completed search shows the http status code of the completed search.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/search/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/search/request.go
index 9c791fed2c..8658f42812 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/search/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/search/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package search
@@ -34,7 +34,7 @@ import (
// Request holds the request body struct for the package search
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/eql/search/EqlSearchRequest.ts#L28-L118
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/search/EqlSearchRequest.ts#L28-L118
type Request struct {
CaseSensitive *bool `json:"case_sensitive,omitempty"`
// EventCategoryField Field containing the event classification, such as process, file, or network.
@@ -66,6 +66,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -96,7 +97,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "case_sensitive":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -157,7 +158,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "keep_on_completion":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/search/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/search/response.go
index fa01298831..177501ff2e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/search/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/search/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package search
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package search
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/eql/search/EqlSearchResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/search/EqlSearchResponse.ts#L22-L24
type Response struct {
// Hits Contains matching events and sequences. Also contains related metadata.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/search/search.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/search/search.go
index 30e009e54d..2c7baed93d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/search/search.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/eql/search/search.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns results matching a query expressed in Event Query Language (EQL)
package search
@@ -343,6 +343,50 @@ func (r *Search) IgnoreUnavailable(ignoreunavailable bool) *Search {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Search) ErrorTrace(errortrace bool) *Search {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Search) FilterPath(filterpaths ...string) *Search {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Search) Human(human bool) *Search {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Search) Pretty(pretty bool) *Search {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: case_sensitive
func (r *Search) CaseSensitive(casesensitive bool) *Search {
r.req.CaseSensitive = &casesensitive
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/helpers.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/helpers.go
new file mode 100644
index 0000000000..bde2cb2c4e
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/helpers.go
@@ -0,0 +1,191 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package query
+
+import (
+ "bytes"
+ "context"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+)
+
+type metadata struct {
+ Name string `json:"name"`
+ Type string `json:"type"`
+}
+
+type esqlResponse struct {
+ Columns []metadata `json:"columns"`
+ Values [][]any `json:"values"`
+}
+
+// Helper takes a generic type T, a context.Context and an esql.Query request.
+// Returns an array of T using the json.Unmarshaler of the type.
+func Helper[T any](ctx context.Context, esqlQuery *Query) ([]T, error) {
+ response, err := esqlQuery.
+ Columnar(false).
+ Format("json").
+ Header("x-elastic-client-meta", "h=qo").
+ Do(ctx)
+ if err != nil {
+ return nil, err
+ }
+
+ var eR esqlResponse
+ err = json.Unmarshal(response, &eR)
+ if err != nil {
+ return nil, fmt.Errorf("cannot read ES|QL response: %w", err)
+ }
+
+ buf := bytes.NewBuffer(nil)
+ buf.WriteByte('[')
+ for rowNum, row := range eR.Values {
+ buf.WriteByte('{')
+ for i := 0; i < len(row); i++ {
+ buf.WriteString(`"` + eR.Columns[i].Name + `":`)
+ data, err := json.Marshal(row[i])
+ if err != nil {
+ return nil, fmt.Errorf("error while parsing ES|QL response: %w", err)
+ }
+ buf.Write(data)
+ if i != len(row)-1 {
+ buf.WriteByte(',')
+ }
+ }
+ buf.WriteByte('}')
+ if rowNum != len(eR.Values)-1 {
+ buf.WriteByte(',')
+ }
+ }
+ buf.WriteByte(']')
+
+ target := []T{}
+ err = json.Unmarshal(buf.Bytes(), &target)
+ if err != nil {
+ return nil, fmt.Errorf("cannot deserialize ES|QL response: %w", err)
+ }
+
+ return target, nil
+}
+
+type EsqlIterator[T any] interface {
+ Next() (*T, error)
+ More() bool
+}
+
+type iterator[T any] struct {
+ reader []byte
+ decoder *json.Decoder
+ keys []string
+ skipComma bool
+}
+
+func (d iterator[T]) More() bool {
+ return d.decoder.More()
+}
+
+func (d iterator[T]) Next() (*T, error) {
+ var t T
+ var tmp []any
+
+ if d.skipComma {
+ d.decoder.Token()
+ }
+
+ err := d.decoder.Decode(&tmp)
+ if err != nil {
+ return nil, err
+ }
+
+ buf := bytes.Buffer{}
+
+ buf.WriteByte('{')
+ for index, key := range d.keys {
+ buf.WriteString(`"` + key + `":`)
+ value, _ := json.Marshal(tmp[index])
+ buf.Write(value)
+
+ if index != len(d.keys)-1 {
+ buf.WriteByte(',')
+ }
+ }
+ buf.WriteByte('}')
+
+ err = json.Unmarshal(buf.Bytes(), &t)
+ if err != nil {
+ return nil, err
+ }
+
+ d.skipComma = true
+ return &t, nil
+}
+
+// Helper takes a generic type T, a context.Context and an esql.Query request
+// buffer the response and provides an API to consume one item at a time.
+func NewIteratorHelper[T any](ctx context.Context, query *Query) (EsqlIterator[T], error) {
+ response, err := query.
+ Columnar(false).
+ Format("json").
+ Header("x-elastic-client-meta", "h=qo").
+ Perform(ctx)
+ if err != nil {
+ return nil, err
+ }
+ defer response.Body.Close()
+
+ d := &iterator[T]{}
+ d.reader, err = io.ReadAll(response.Body)
+ d.decoder = json.NewDecoder(bytes.NewReader(d.reader))
+
+ var metas []metadata
+OUTER:
+ for {
+ t, err := d.decoder.Token()
+ if err != nil {
+ if errors.Is(err, io.EOF) {
+ break
+ }
+ return nil, err
+ }
+ switch t {
+ case "columns":
+ err := d.decoder.Decode(&metas)
+ if err != nil {
+ return nil, err
+ }
+ for _, m := range metas {
+ d.keys = append(d.keys, m.Name)
+ }
+
+ case "values":
+ t, _ := d.decoder.Token()
+ if t != json.Delim(91) {
+ return nil, fmt.Errorf("cannot read response from ES|QL, expected ARRAY_START: %w", err)
+ }
+ break OUTER
+ }
+ }
+
+ if err != nil {
+ return nil, fmt.Errorf("cannot read response from ES|QL: %w", err)
+ }
+
+ return d, nil
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/query.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/query.go
index 186aec8995..bbb7e87b07 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/query.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/query.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Executes an ESQL request
package query
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -306,6 +307,50 @@ func (r *Query) Delimiter(delimiter string) *Query {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Query) ErrorTrace(errortrace bool) *Query {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Query) FilterPath(filterpaths ...string) *Query {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Query) Human(human bool) *Query {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Query) Pretty(pretty bool) *Query {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Columnar By default, ES|QL returns results as rows. For example, FROM returns each
// individual document as one row. For the JSON, YAML, CBOR and smile formats,
// ES|QL can return the results in a columnar fashion where one row represents
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/request.go
index fc6592674e..461ab7e72f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package query
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package query
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/esql/query/QueryRequest.ts#L24-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/esql/query/QueryRequest.ts#L24-L64
type Request struct {
// Columnar By default, ES|QL returns results as rows. For example, FROM returns each
@@ -53,6 +53,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/response.go
index c8c1846ff8..1e059a2a1c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/esql/query/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package query
// Response holds the response body struct for the package query
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/esql/query/QueryResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/esql/query/QueryResponse.ts#L22-L25
type Response = []byte
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/getfeatures/get_features.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/getfeatures/get_features.go
index f48c557467..b25578a985 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/getfeatures/get_features.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/getfeatures/get_features.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Gets a list of features which can be included in snapshots using the
// feature_states field when creating a snapshot
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r GetFeatures) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *GetFeatures) Header(key, value string) *GetFeatures {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetFeatures) ErrorTrace(errortrace bool) *GetFeatures {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetFeatures) FilterPath(filterpaths ...string) *GetFeatures {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetFeatures) Human(human bool) *GetFeatures {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetFeatures) Pretty(pretty bool) *GetFeatures {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/getfeatures/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/getfeatures/response.go
index e6b70eecd9..980aaef61f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/getfeatures/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/getfeatures/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getfeatures
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getfeatures
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/features/get_features/GetFeaturesResponse.ts#L22-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/features/get_features/GetFeaturesResponse.ts#L22-L26
type Response struct {
Features []types.Feature `json:"features"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/resetfeatures/reset_features.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/resetfeatures/reset_features.go
index 85ab24b30c..5ffc6d519d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/resetfeatures/reset_features.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/resetfeatures/reset_features.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Resets the internal state of features, usually by deleting system indices
package resetfeatures
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r ResetFeatures) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *ResetFeatures) Header(key, value string) *ResetFeatures {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ResetFeatures) ErrorTrace(errortrace bool) *ResetFeatures {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ResetFeatures) FilterPath(filterpaths ...string) *ResetFeatures {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ResetFeatures) Human(human bool) *ResetFeatures {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ResetFeatures) Pretty(pretty bool) *ResetFeatures {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/resetfeatures/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/resetfeatures/response.go
index c9c52f0967..8f3d5616e4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/resetfeatures/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/features/resetfeatures/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package resetfeatures
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package resetfeatures
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/features/reset_features/ResetFeaturesResponse.ts#L22-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/features/reset_features/ResetFeaturesResponse.ts#L22-L26
type Response struct {
Features []types.Feature `json:"features"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/globalcheckpoints/global_checkpoints.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/globalcheckpoints/global_checkpoints.go
index 9607009ff0..91b4a760c4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/globalcheckpoints/global_checkpoints.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/globalcheckpoints/global_checkpoints.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the current global checkpoints for an index. This API is design for
// internal use by the fleet server project.
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -271,7 +270,7 @@ func (r GlobalCheckpoints) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -353,3 +352,47 @@ func (r *GlobalCheckpoints) Timeout(duration string) *GlobalCheckpoints {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GlobalCheckpoints) ErrorTrace(errortrace bool) *GlobalCheckpoints {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GlobalCheckpoints) FilterPath(filterpaths ...string) *GlobalCheckpoints {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GlobalCheckpoints) Human(human bool) *GlobalCheckpoints {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GlobalCheckpoints) Pretty(pretty bool) *GlobalCheckpoints {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/globalcheckpoints/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/globalcheckpoints/response.go
index ee085cd2d0..0e77e3d1a2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/globalcheckpoints/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/globalcheckpoints/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package globalcheckpoints
// Response holds the response body struct for the package globalcheckpoints
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/fleet/global_checkpoints/GlobalCheckpointsResponse.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/fleet/global_checkpoints/GlobalCheckpointsResponse.ts#L22-L27
type Response struct {
GlobalCheckpoints []int64 `json:"global_checkpoints"`
TimedOut bool `json:"timed_out"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch/msearch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch/msearch.go
index dc78d2d896..f2d15427f4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch/msearch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch/msearch.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Multi Search API where the search will only be executed after specified
// checkpoints are available due to a refresh. This API is designed for internal
@@ -467,3 +467,47 @@ func (r *Msearch) AllowPartialSearchResults(allowpartialsearchresults bool) *Mse
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Msearch) ErrorTrace(errortrace bool) *Msearch {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Msearch) FilterPath(filterpaths ...string) *Msearch {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Msearch) Human(human bool) *Msearch {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Msearch) Pretty(pretty bool) *Msearch {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch/request.go
index d73537b118..a43d240843 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package msearch
@@ -26,5 +26,5 @@ import (
// Request holds the request body struct for the package msearch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/fleet/msearch/MultiSearchRequest.ts#L32-L115
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/fleet/msearch/MultiSearchRequest.ts#L32-L115
type Request = []types.MsearchRequestItem
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch/response.go
index a698c3e84f..a9aad198c9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package msearch
@@ -32,7 +32,7 @@ import (
// Response holds the response body struct for the package msearch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/fleet/msearch/MultiSearchResponse.ts#L25-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/fleet/msearch/MultiSearchResponse.ts#L25-L29
type Response struct {
Docs []types.MsearchResponseItem `json:"docs"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/postsecret/post_secret.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/postsecret/post_secret.go
index 8140838ab7..db2ee87034 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/postsecret/post_secret.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/postsecret/post_secret.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a secret stored by Fleet.
package postsecret
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strings"
@@ -195,7 +194,7 @@ func (r PostSecret) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/search/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/search/request.go
index 5cfd991388..a6b7aff310 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/search/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/search/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package search
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package search
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/fleet/search/SearchRequest.ts#L55-L260
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/fleet/search/SearchRequest.ts#L55-L260
type Request struct {
Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"`
Collapse *types.FieldCollapse `json:"collapse,omitempty"`
@@ -129,6 +129,7 @@ func NewRequest() *Request {
Ext: make(map[string]json.RawMessage, 0),
ScriptFields: make(map[string]types.ScriptField, 0),
}
+
return r
}
@@ -177,7 +178,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "explain":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -205,7 +206,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "from":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -230,7 +231,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "min_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -256,7 +257,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "profile":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -309,7 +310,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "seq_no_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -324,7 +325,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -391,7 +392,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "terminate_after":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -418,7 +419,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
s.Timeout = &o
case "track_scores":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -437,7 +438,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "version":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/search/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/search/response.go
index 17b54fe248..4f3f3c35f0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/search/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/search/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package search
@@ -34,7 +34,7 @@ import (
// Response holds the response body struct for the package search
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/fleet/search/SearchResponse.ts#L33-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/fleet/search/SearchResponse.ts#L33-L50
type Response struct {
Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"`
Clusters_ *types.ClusterStatistics `json:"_clusters,omitempty"`
@@ -532,7 +532,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := types.NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -582,7 +582,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -592,7 +592,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -620,7 +620,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "max_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -636,7 +636,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "num_reduce_phases":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -714,7 +714,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
s.Suggest[elems[1]] = append(s.Suggest[elems[1]], o)
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -724,7 +724,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Suggest")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -734,7 +734,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "terminated_early":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -748,7 +748,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "timed_out":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -762,7 +762,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "took":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/search/search.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/search/search.go
index caa79163e6..f4fed3a438 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/search/search.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/fleet/search/search.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Search API where the search will only be executed after specified checkpoints
// are available due to a refresh. This API is designed for internal use by the
@@ -556,6 +556,50 @@ func (r *Search) AllowPartialSearchResults(allowpartialsearchresults bool) *Sear
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Search) ErrorTrace(errortrace bool) *Search {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Search) FilterPath(filterpaths ...string) *Search {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Search) Human(human bool) *Search {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Search) Pretty(pretty bool) *Search {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: aggregations
func (r *Search) Aggregations(aggregations map[string]types.Aggregations) *Search {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/graph/explore/explore.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/graph/explore/explore.go
index b361a64038..d79fdf516c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/graph/explore/explore.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/graph/explore/explore.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Explore extracted and summarized information about the documents and terms in
// an index.
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -335,6 +336,50 @@ func (r *Explore) Timeout(duration string) *Explore {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Explore) ErrorTrace(errortrace bool) *Explore {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Explore) FilterPath(filterpaths ...string) *Explore {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Explore) Human(human bool) *Explore {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Explore) Pretty(pretty bool) *Explore {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Connections Specifies or more fields from which you want to extract terms that are
// associated with the specified vertices.
// API name: connections
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/graph/explore/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/graph/explore/request.go
index 0d4490c8a2..3a07b6d445 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/graph/explore/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/graph/explore/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package explore
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package explore
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/graph/explore/GraphExploreRequest.ts#L28-L72
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/explore/GraphExploreRequest.ts#L28-L72
type Request struct {
// Connections Specifies or more fields from which you want to extract terms that are
@@ -48,6 +48,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/graph/explore/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/graph/explore/response.go
index 45ffc1fe66..f3266a5ca2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/graph/explore/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/graph/explore/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package explore
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package explore
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/graph/explore/GraphExploreResponse.ts#L25-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/explore/GraphExploreResponse.ts#L25-L33
type Response struct {
Connections []types.Connection `json:"connections"`
Failures []types.ShardFailure `json:"failures"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/deletelifecycle/delete_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/deletelifecycle/delete_lifecycle.go
index b03a3046a4..17fec1f80d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/deletelifecycle/delete_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/deletelifecycle/delete_lifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes the specified lifecycle policy definition. A currently used policy
// cannot be deleted.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r DeleteLifecycle) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -318,3 +318,47 @@ func (r *DeleteLifecycle) Timeout(duration string) *DeleteLifecycle {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteLifecycle) ErrorTrace(errortrace bool) *DeleteLifecycle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteLifecycle) FilterPath(filterpaths ...string) *DeleteLifecycle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteLifecycle) Human(human bool) *DeleteLifecycle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteLifecycle) Pretty(pretty bool) *DeleteLifecycle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/deletelifecycle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/deletelifecycle/response.go
index ef0b4fb3db..9e5c2658ed 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/deletelifecycle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/deletelifecycle/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletelifecycle
// Response holds the response body struct for the package deletelifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/delete_lifecycle/DeleteLifecycleResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/delete_lifecycle/DeleteLifecycleResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/explainlifecycle/explain_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/explainlifecycle/explain_lifecycle.go
index 5a0501b20d..40cdee95f7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/explainlifecycle/explain_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/explainlifecycle/explain_lifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information about the index's current lifecycle state, such as the
// currently executing phase, action, and step.
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r ExplainLifecycle) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -339,3 +338,47 @@ func (r *ExplainLifecycle) Timeout(duration string) *ExplainLifecycle {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ExplainLifecycle) ErrorTrace(errortrace bool) *ExplainLifecycle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ExplainLifecycle) FilterPath(filterpaths ...string) *ExplainLifecycle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ExplainLifecycle) Human(human bool) *ExplainLifecycle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ExplainLifecycle) Pretty(pretty bool) *ExplainLifecycle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/explainlifecycle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/explainlifecycle/response.go
index 370687fa4a..fe12882dfc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/explainlifecycle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/explainlifecycle/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package explainlifecycle
@@ -31,7 +31,7 @@ import (
// Response holds the response body struct for the package explainlifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/explain_lifecycle/ExplainLifecycleResponse.ts#L24-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/explain_lifecycle/ExplainLifecycleResponse.ts#L24-L28
type Response struct {
Indices map[string]types.LifecycleExplain `json:"indices"`
}
@@ -65,7 +65,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getlifecycle/get_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getlifecycle/get_lifecycle.go
index 0eebdd7c83..430748d63b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getlifecycle/get_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getlifecycle/get_lifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the specified policy definition. Includes the policy version and last
// modified date.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -269,7 +269,7 @@ func (r GetLifecycle) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -323,3 +323,47 @@ func (r *GetLifecycle) Timeout(duration string) *GetLifecycle {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetLifecycle) ErrorTrace(errortrace bool) *GetLifecycle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetLifecycle) FilterPath(filterpaths ...string) *GetLifecycle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetLifecycle) Human(human bool) *GetLifecycle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetLifecycle) Pretty(pretty bool) *GetLifecycle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getlifecycle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getlifecycle/response.go
index 148b9b405b..a655194f28 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getlifecycle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getlifecycle/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getlifecycle
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getlifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/get_lifecycle/GetLifecycleResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/get_lifecycle/GetLifecycleResponse.ts#L23-L26
type Response map[string]types.Lifecycle
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getstatus/get_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getstatus/get_status.go
index 8d2e4e894a..c32116706e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getstatus/get_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getstatus/get_status.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves the current index lifecycle management (ILM) status.
package getstatus
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r GetStatus) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *GetStatus) Header(key, value string) *GetStatus {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetStatus) ErrorTrace(errortrace bool) *GetStatus {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetStatus) FilterPath(filterpaths ...string) *GetStatus {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetStatus) Human(human bool) *GetStatus {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetStatus) Pretty(pretty bool) *GetStatus {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getstatus/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getstatus/response.go
index 6ddefe87ec..63f02be748 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getstatus/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getstatus/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getstatus
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getstatus
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/get_status/GetIlmStatusResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/get_status/GetIlmStatusResponse.ts#L22-L24
type Response struct {
OperationMode lifecycleoperationmode.LifecycleOperationMode `json:"operation_mode"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers/migrate_to_data_tiers.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers/migrate_to_data_tiers.go
index e1211ea272..0837a51285 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers/migrate_to_data_tiers.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers/migrate_to_data_tiers.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Migrates the indices and ILM policies away from custom node attribute
// allocation routing to data tiers routing
@@ -305,6 +305,50 @@ func (r *MigrateToDataTiers) DryRun(dryrun bool) *MigrateToDataTiers {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *MigrateToDataTiers) ErrorTrace(errortrace bool) *MigrateToDataTiers {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *MigrateToDataTiers) FilterPath(filterpaths ...string) *MigrateToDataTiers {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *MigrateToDataTiers) Human(human bool) *MigrateToDataTiers {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *MigrateToDataTiers) Pretty(pretty bool) *MigrateToDataTiers {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: legacy_template_to_delete
func (r *MigrateToDataTiers) LegacyTemplateToDelete(legacytemplatetodelete string) *MigrateToDataTiers {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers/request.go
index d008acf54b..f56c99b54c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package migratetodatatiers
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package migratetodatatiers
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/migrate_to_data_tiers/Request.ts#L22-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/migrate_to_data_tiers/Request.ts#L22-L43
type Request struct {
LegacyTemplateToDelete *string `json:"legacy_template_to_delete,omitempty"`
NodeAttribute *string `json:"node_attribute,omitempty"`
@@ -36,6 +36,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers/response.go
index 8474572ed4..4353657937 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package migratetodatatiers
@@ -31,7 +31,7 @@ import (
// Response holds the response body struct for the package migratetodatatiers
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/migrate_to_data_tiers/Response.ts#L22-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/migrate_to_data_tiers/Response.ts#L22-L32
type Response struct {
DryRun bool `json:"dry_run"`
MigratedComponentTemplates []string `json:"migrated_component_templates"`
@@ -63,7 +63,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
switch t {
case "dry_run":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep/move_to_step.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep/move_to_step.go
index fb26dfc9bc..6fba838a41 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep/move_to_step.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep/move_to_step.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Manually moves an index into the specified step and executes that step.
package movetostep
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -314,6 +315,50 @@ func (r *MoveToStep) _index(index string) *MoveToStep {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *MoveToStep) ErrorTrace(errortrace bool) *MoveToStep {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *MoveToStep) FilterPath(filterpaths ...string) *MoveToStep {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *MoveToStep) Human(human bool) *MoveToStep {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *MoveToStep) Pretty(pretty bool) *MoveToStep {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: current_step
func (r *MoveToStep) CurrentStep(currentstep *types.StepKey) *MoveToStep {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep/request.go
index ccad10d24e..9fb71ebcf6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package movetostep
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package movetostep
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/move_to_step/MoveToStepRequest.ts#L24-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/move_to_step/MoveToStepRequest.ts#L24-L36
type Request struct {
CurrentStep *types.StepKey `json:"current_step,omitempty"`
NextStep *types.StepKey `json:"next_step,omitempty"`
@@ -38,6 +38,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep/response.go
index bfbccc55d5..165ad658f4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package movetostep
// Response holds the response body struct for the package movetostep
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/move_to_step/MoveToStepResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/move_to_step/MoveToStepResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/putlifecycle/put_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/putlifecycle/put_lifecycle.go
index 411e32f9c2..88b12d911c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/putlifecycle/put_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/putlifecycle/put_lifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a lifecycle policy
package putlifecycle
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -331,3 +332,47 @@ func (r *PutLifecycle) Timeout(duration string) *PutLifecycle {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutLifecycle) ErrorTrace(errortrace bool) *PutLifecycle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutLifecycle) FilterPath(filterpaths ...string) *PutLifecycle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutLifecycle) Human(human bool) *PutLifecycle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutLifecycle) Pretty(pretty bool) *PutLifecycle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/putlifecycle/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/putlifecycle/request.go
index 3cb8323f21..6b1ade5caf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/putlifecycle/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/putlifecycle/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putlifecycle
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package putlifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L55
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L55
type Request struct {
Policy *types.IlmPolicy `json:"policy,omitempty"`
}
@@ -37,6 +37,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/putlifecycle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/putlifecycle/response.go
index 950016d446..1720c899e2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/putlifecycle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/putlifecycle/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putlifecycle
// Response holds the response body struct for the package putlifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/put_lifecycle/PutLifecycleResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/put_lifecycle/PutLifecycleResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/removepolicy/remove_policy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/removepolicy/remove_policy.go
index a1823a6472..f2dc9b5b8f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/removepolicy/remove_policy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/removepolicy/remove_policy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Removes the assigned lifecycle policy and stops managing the specified index
package removepolicy
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r RemovePolicy) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *RemovePolicy) _index(index string) *RemovePolicy {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *RemovePolicy) ErrorTrace(errortrace bool) *RemovePolicy {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *RemovePolicy) FilterPath(filterpaths ...string) *RemovePolicy {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *RemovePolicy) Human(human bool) *RemovePolicy {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *RemovePolicy) Pretty(pretty bool) *RemovePolicy {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/removepolicy/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/removepolicy/response.go
index b3514df217..c8b29c31e7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/removepolicy/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/removepolicy/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package removepolicy
// Response holds the response body struct for the package removepolicy
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/remove_policy/RemovePolicyResponse.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/remove_policy/RemovePolicyResponse.ts#L22-L27
type Response struct {
FailedIndexes []string `json:"failed_indexes"`
HasFailures bool `json:"has_failures"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/retry/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/retry/response.go
index d03668c45b..61af27d8fb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/retry/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/retry/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package retry
// Response holds the response body struct for the package retry
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/retry/RetryIlmResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/retry/RetryIlmResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/retry/retry.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/retry/retry.go
index f10f56d89a..ed8ace12a3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/retry/retry.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/retry/retry.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retries executing the policy for an index that is in the ERROR step.
package retry
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r Retry) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -299,3 +299,47 @@ func (r *Retry) _index(index string) *Retry {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Retry) ErrorTrace(errortrace bool) *Retry {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Retry) FilterPath(filterpaths ...string) *Retry {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Retry) Human(human bool) *Retry {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Retry) Pretty(pretty bool) *Retry {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/start/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/start/response.go
index aa63777556..a66f2a34b1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/start/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/start/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package start
// Response holds the response body struct for the package start
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/start/StartIlmResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/start/StartIlmResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/start/start.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/start/start.go
index 3d0b419ad1..6f13c1c64f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/start/start.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/start/start.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Start the index lifecycle management (ILM) plugin.
package start
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r Start) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -289,3 +289,47 @@ func (r *Start) Timeout(duration string) *Start {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Start) ErrorTrace(errortrace bool) *Start {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Start) FilterPath(filterpaths ...string) *Start {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Start) Human(human bool) *Start {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Start) Pretty(pretty bool) *Start {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/stop/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/stop/response.go
index 0e1f4d1dd4..8880f2a01a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/stop/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/stop/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stop
// Response holds the response body struct for the package stop
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/stop/StopIlmResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/stop/StopIlmResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/stop/stop.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/stop/stop.go
index b682bf65a2..107c1228bb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/stop/stop.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ilm/stop/stop.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Halts all lifecycle management operations and stops the index lifecycle
// management (ILM) plugin
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -250,7 +250,7 @@ func (r Stop) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -291,3 +291,47 @@ func (r *Stop) Timeout(duration string) *Stop {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Stop) ErrorTrace(errortrace bool) *Stop {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Stop) FilterPath(filterpaths ...string) *Stop {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Stop) Human(human bool) *Stop {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Stop) Pretty(pretty bool) *Stop {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/addblock/add_block.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/addblock/add_block.go
index 7fd38b3a41..6f799e3415 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/addblock/add_block.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/addblock/add_block.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Adds a block to an index.
package addblock
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -273,7 +272,7 @@ func (r AddBlock) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -365,3 +364,47 @@ func (r *AddBlock) Timeout(duration string) *AddBlock {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *AddBlock) ErrorTrace(errortrace bool) *AddBlock {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *AddBlock) FilterPath(filterpaths ...string) *AddBlock {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *AddBlock) Human(human bool) *AddBlock {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *AddBlock) Pretty(pretty bool) *AddBlock {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/addblock/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/addblock/response.go
index 107ad43bc4..ad8b08f89d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/addblock/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/addblock/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package addblock
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package addblock
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/add_block/IndicesAddBlockResponse.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/add_block/IndicesAddBlockResponse.ts#L22-L28
type Response struct {
Acknowledged bool `json:"acknowledged"`
Indices []types.IndicesBlockStatus `json:"indices"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/analyze/analyze.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/analyze/analyze.go
index a123f79000..7c6cad638f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/analyze/analyze.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/analyze/analyze.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Performs the analysis process on a text and return the tokens breakdown of
// the text.
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -320,6 +321,50 @@ func (r *Analyze) Index(index string) *Analyze {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Analyze) ErrorTrace(errortrace bool) *Analyze {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Analyze) FilterPath(filterpaths ...string) *Analyze {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Analyze) Human(human bool) *Analyze {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Analyze) Pretty(pretty bool) *Analyze {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Analyzer The name of the analyzer that should be applied to the provided `text`.
// This could be a built-in analyzer, or an analyzer that’s been configured in
// the index.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/analyze/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/analyze/request.go
index fb71b4b56a..3710c50cae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/analyze/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/analyze/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package analyze
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package analyze
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/analyze/IndicesAnalyzeRequest.ts#L27-L92
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/IndicesAnalyzeRequest.ts#L27-L92
type Request struct {
// Analyzer The name of the analyzer that should be applied to the provided `text`.
@@ -66,6 +66,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -160,7 +161,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
s.CharFilter = append(s.CharFilter, *o)
default:
- o := new(interface{})
+ o := new(any)
if err := localDec.Decode(&o); err != nil {
return err
}
@@ -168,7 +169,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
default:
source := bytes.NewReader(rawMsg)
- o := new(interface{})
+ o := new(any)
if err := json.NewDecoder(source).Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "CharFilter", err)
}
@@ -177,7 +178,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "explain":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -458,12 +459,6 @@ func (s *Request) UnmarshalJSON(data []byte) error {
return err
}
s.Filter = append(s.Filter, *o)
- case "icu_tokenizer":
- o := types.NewIcuTokenizer()
- if err := localDec.Decode(&o); err != nil {
- return err
- }
- s.Filter = append(s.Filter, *o)
case "icu_collation":
o := types.NewIcuCollationTokenFilter()
if err := localDec.Decode(&o); err != nil {
@@ -501,7 +496,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
s.Filter = append(s.Filter, *o)
default:
- o := new(interface{})
+ o := new(any)
if err := localDec.Decode(&o); err != nil {
return err
}
@@ -509,7 +504,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
default:
source := bytes.NewReader(rawMsg)
- o := new(interface{})
+ o := new(any)
if err := json.NewDecoder(source).Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Filter", err)
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/analyze/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/analyze/response.go
index 8fcbea1af0..72c3268792 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/analyze/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/analyze/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package analyze
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package analyze
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/analyze/IndicesAnalyzeResponse.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/IndicesAnalyzeResponse.ts#L22-L27
type Response struct {
Detail *types.AnalyzeDetail `json:"detail,omitempty"`
Tokens []types.AnalyzeToken `json:"tokens,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clearcache/clear_cache.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clearcache/clear_cache.go
index 46c9e23d64..c170b2c879 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clearcache/clear_cache.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clearcache/clear_cache.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Clears all or specific caches for one or more indices.
package clearcache
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -269,7 +268,7 @@ func (r ClearCache) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -377,3 +376,47 @@ func (r *ClearCache) Request(request bool) *ClearCache {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ClearCache) ErrorTrace(errortrace bool) *ClearCache {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ClearCache) FilterPath(filterpaths ...string) *ClearCache {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ClearCache) Human(human bool) *ClearCache {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ClearCache) Pretty(pretty bool) *ClearCache {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clearcache/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clearcache/response.go
index 4c7b4f1256..4cb6dc4823 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clearcache/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clearcache/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clearcache
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package clearcache
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/clear_cache/IndicesClearCacheResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/clear_cache/IndicesClearCacheResponse.ts#L22-L24
type Response struct {
Shards_ types.ShardStatistics `json:"_shards"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone/clone.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone/clone.go
index 7c85316590..80e3dfdea0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone/clone.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone/clone.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Clones an index
package clone
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -363,6 +364,50 @@ func (r *Clone) WaitForActiveShards(waitforactiveshards string) *Clone {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Clone) ErrorTrace(errortrace bool) *Clone {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Clone) FilterPath(filterpaths ...string) *Clone {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Clone) Human(human bool) *Clone {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Clone) Pretty(pretty bool) *Clone {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Aliases Aliases for the resulting index.
// API name: aliases
func (r *Clone) Aliases(aliases map[string]types.Alias) *Clone {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone/request.go
index 76bc7bfd98..345939ddfd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clone
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package clone
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/clone/IndicesCloneRequest.ts#L27-L75
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/clone/IndicesCloneRequest.ts#L27-L75
type Request struct {
// Aliases Aliases for the resulting index.
@@ -44,6 +44,7 @@ func NewRequest() *Request {
Aliases: make(map[string]types.Alias, 0),
Settings: make(map[string]json.RawMessage, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone/response.go
index 080e3ed64d..dc07239193 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clone
// Response holds the response body struct for the package clone
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/clone/IndicesCloneResponse.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/clone/IndicesCloneResponse.ts#L22-L28
type Response struct {
Acknowledged bool `json:"acknowledged"`
Index string `json:"index"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/close/close.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/close/close.go
index f9ed19ab02..71d3235d98 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/close/close.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/close/close.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Closes an index.
package close
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -262,7 +261,7 @@ func (r Close) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -365,3 +364,47 @@ func (r *Close) WaitForActiveShards(waitforactiveshards string) *Close {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Close) ErrorTrace(errortrace bool) *Close {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Close) FilterPath(filterpaths ...string) *Close {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Close) Human(human bool) *Close {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Close) Pretty(pretty bool) *Close {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/close/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/close/response.go
index 88f7764a82..37dcb14323 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/close/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/close/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package close
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package close
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/close/CloseIndexResponse.ts#L24-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/close/CloseIndexResponse.ts#L24-L30
type Response struct {
Acknowledged bool `json:"acknowledged"`
Indices map[string]types.CloseIndexResult `json:"indices"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/create/create.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/create/create.go
index 71b402385e..4958008058 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/create/create.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/create/create.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates an index with optional settings and mappings.
package create
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -341,6 +342,50 @@ func (r *Create) WaitForActiveShards(waitforactiveshards string) *Create {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Create) ErrorTrace(errortrace bool) *Create {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Create) FilterPath(filterpaths ...string) *Create {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Create) Human(human bool) *Create {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Create) Pretty(pretty bool) *Create {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Aliases Aliases for the index.
// API name: aliases
func (r *Create) Aliases(aliases map[string]types.Alias) *Create {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/create/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/create/request.go
index d1dfa3b3f1..e82fc88a74 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/create/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/create/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package create
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package create
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/create/IndicesCreateRequest.ts#L28-L81
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/create/IndicesCreateRequest.ts#L28-L81
type Request struct {
// Aliases Aliases for the index.
@@ -48,6 +48,7 @@ func NewRequest() *Request {
r := &Request{
Aliases: make(map[string]types.Alias, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/create/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/create/response.go
index 3ab6087737..2f2e8466b3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/create/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/create/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package create
// Response holds the response body struct for the package create
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/create/IndicesCreateResponse.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/create/IndicesCreateResponse.ts#L22-L28
type Response struct {
Acknowledged bool `json:"acknowledged"`
Index string `json:"index"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/createdatastream/create_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/createdatastream/create_data_stream.go
index f69569366b..ab5f7bf44e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/createdatastream/create_data_stream.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/createdatastream/create_data_stream.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a data stream
package createdatastream
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -260,7 +260,7 @@ func (r CreateDataStream) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -303,3 +303,47 @@ func (r *CreateDataStream) _name(name string) *CreateDataStream {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *CreateDataStream) ErrorTrace(errortrace bool) *CreateDataStream {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *CreateDataStream) FilterPath(filterpaths ...string) *CreateDataStream {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *CreateDataStream) Human(human bool) *CreateDataStream {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *CreateDataStream) Pretty(pretty bool) *CreateDataStream {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/createdatastream/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/createdatastream/response.go
index 4ffb025100..ab61cd6a1b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/createdatastream/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/createdatastream/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package createdatastream
// Response holds the response body struct for the package createdatastream
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/create_data_stream/IndicesCreateDataStreamResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/create_data_stream/IndicesCreateDataStreamResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/datastreamsstats/data_streams_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/datastreamsstats/data_streams_stats.go
index cd04bd21fe..c25f919d09 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/datastreamsstats/data_streams_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/datastreamsstats/data_streams_stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Provides statistics on operations happening in a data stream.
package datastreamsstats
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -268,7 +268,7 @@ func (r DataStreamsStats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -319,3 +319,47 @@ func (r *DataStreamsStats) ExpandWildcards(expandwildcards ...expandwildcard.Exp
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DataStreamsStats) ErrorTrace(errortrace bool) *DataStreamsStats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DataStreamsStats) FilterPath(filterpaths ...string) *DataStreamsStats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DataStreamsStats) Human(human bool) *DataStreamsStats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DataStreamsStats) Pretty(pretty bool) *DataStreamsStats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/datastreamsstats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/datastreamsstats/response.go
index 9a2786dbe7..fb7a7a10c0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/datastreamsstats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/datastreamsstats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package datastreamsstats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package datastreamsstats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L25-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L25-L43
type Response struct {
// BackingIndices Total number of backing indices for the selected data streams.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/delete/delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/delete/delete.go
index 750706ddc1..b0d0708614 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/delete/delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/delete/delete.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an index.
package delete
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -260,7 +259,7 @@ func (r Delete) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -355,3 +354,47 @@ func (r *Delete) Timeout(duration string) *Delete {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Delete) ErrorTrace(errortrace bool) *Delete {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Delete) FilterPath(filterpaths ...string) *Delete {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Delete) Human(human bool) *Delete {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Delete) Pretty(pretty bool) *Delete {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/delete/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/delete/response.go
index 3e5b32eef0..05eb2b176d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/delete/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/delete/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package delete
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package delete
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/delete/IndicesDeleteResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/delete/IndicesDeleteResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletealias/delete_alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletealias/delete_alias.go
index 69a8078cf9..90ac6e7f96 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletealias/delete_alias.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletealias/delete_alias.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an alias.
package deletealias
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -288,7 +288,7 @@ func (r DeleteAlias) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -355,3 +355,47 @@ func (r *DeleteAlias) Timeout(duration string) *DeleteAlias {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteAlias) ErrorTrace(errortrace bool) *DeleteAlias {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteAlias) FilterPath(filterpaths ...string) *DeleteAlias {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteAlias) Human(human bool) *DeleteAlias {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteAlias) Pretty(pretty bool) *DeleteAlias {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletealias/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletealias/response.go
index b283d5f06f..1736a150e8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletealias/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletealias/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletealias
// Response holds the response body struct for the package deletealias
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/delete_alias/IndicesDeleteAliasResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/delete_alias/IndicesDeleteAliasResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatalifecycle/delete_data_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatalifecycle/delete_data_lifecycle.go
index 800ac48087..eff40f98ce 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatalifecycle/delete_data_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatalifecycle/delete_data_lifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes the data stream lifecycle of the selected data streams.
package deletedatalifecycle
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -263,7 +263,7 @@ func (r DeleteDataLifecycle) IsSuccess(providedCtx context.Context) (bool, error
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -329,3 +329,47 @@ func (r *DeleteDataLifecycle) Timeout(duration string) *DeleteDataLifecycle {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteDataLifecycle) ErrorTrace(errortrace bool) *DeleteDataLifecycle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteDataLifecycle) FilterPath(filterpaths ...string) *DeleteDataLifecycle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteDataLifecycle) Human(human bool) *DeleteDataLifecycle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteDataLifecycle) Pretty(pretty bool) *DeleteDataLifecycle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatalifecycle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatalifecycle/response.go
index 4e95ea033a..c9ae7bfa9b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatalifecycle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatalifecycle/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletedatalifecycle
// Response holds the response body struct for the package deletedatalifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatastream/delete_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatastream/delete_data_stream.go
index 8848097643..2fd77c42ab 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatastream/delete_data_stream.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatastream/delete_data_stream.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes a data stream.
package deletedatastream
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -261,7 +261,7 @@ func (r DeleteDataStream) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -311,3 +311,47 @@ func (r *DeleteDataStream) ExpandWildcards(expandwildcards ...expandwildcard.Exp
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteDataStream) ErrorTrace(errortrace bool) *DeleteDataStream {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteDataStream) FilterPath(filterpaths ...string) *DeleteDataStream {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteDataStream) Human(human bool) *DeleteDataStream {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteDataStream) Pretty(pretty bool) *DeleteDataStream {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatastream/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatastream/response.go
index 0076a8329a..f533ff43df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatastream/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatastream/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletedatastream
// Response holds the response body struct for the package deletedatastream
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/delete_data_stream/IndicesDeleteDataStreamResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/delete_data_stream/IndicesDeleteDataStreamResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deleteindextemplate/delete_index_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deleteindextemplate/delete_index_template.go
index 069a14776d..f8772ff7b7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deleteindextemplate/delete_index_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deleteindextemplate/delete_index_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an index template.
package deleteindextemplate
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -260,7 +260,7 @@ func (r DeleteIndexTemplate) IsSuccess(providedCtx context.Context) (bool, error
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -315,3 +315,47 @@ func (r *DeleteIndexTemplate) Timeout(duration string) *DeleteIndexTemplate {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteIndexTemplate) ErrorTrace(errortrace bool) *DeleteIndexTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteIndexTemplate) FilterPath(filterpaths ...string) *DeleteIndexTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteIndexTemplate) Human(human bool) *DeleteIndexTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteIndexTemplate) Pretty(pretty bool) *DeleteIndexTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deleteindextemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deleteindextemplate/response.go
index f039521d9a..e00e8e4c14 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deleteindextemplate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deleteindextemplate/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deleteindextemplate
// Response holds the response body struct for the package deleteindextemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/delete_index_template/IndicesDeleteIndexTemplateResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/delete_index_template/IndicesDeleteIndexTemplateResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletetemplate/delete_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletetemplate/delete_template.go
index ee96fe968a..c0a452bb6d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletetemplate/delete_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletetemplate/delete_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an index template.
package deletetemplate
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -260,7 +260,7 @@ func (r DeleteTemplate) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -317,3 +317,47 @@ func (r *DeleteTemplate) Timeout(duration string) *DeleteTemplate {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteTemplate) ErrorTrace(errortrace bool) *DeleteTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteTemplate) FilterPath(filterpaths ...string) *DeleteTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteTemplate) Human(human bool) *DeleteTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteTemplate) Pretty(pretty bool) *DeleteTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletetemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletetemplate/response.go
index 0fe5a0f620..b753934935 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletetemplate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletetemplate/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletetemplate
// Response holds the response body struct for the package deletetemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/delete_template/IndicesDeleteTemplateResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/delete_template/IndicesDeleteTemplateResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/diskusage/disk_usage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/diskusage/disk_usage.go
index 84728468b6..45ce733ada 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/diskusage/disk_usage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/diskusage/disk_usage.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Analyzes the disk usage of each field of an index or data stream
package diskusage
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -262,7 +261,7 @@ func (r DiskUsage) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -354,3 +353,47 @@ func (r *DiskUsage) RunExpensiveTasks(runexpensivetasks bool) *DiskUsage {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DiskUsage) ErrorTrace(errortrace bool) *DiskUsage {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DiskUsage) FilterPath(filterpaths ...string) *DiskUsage {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DiskUsage) Human(human bool) *DiskUsage {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DiskUsage) Pretty(pretty bool) *DiskUsage {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/diskusage/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/diskusage/response.go
index 29cd13906d..836cb8bba8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/diskusage/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/diskusage/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package diskusage
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package diskusage
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/disk_usage/IndicesDiskUsageResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/disk_usage/IndicesDiskUsageResponse.ts#L22-L25
type Response = json.RawMessage
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample/downsample.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample/downsample.go
index a89bbc9be8..2801bdbdf9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample/downsample.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample/downsample.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Downsample an index
package downsample
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -332,6 +333,50 @@ func (r *Downsample) _targetindex(targetindex string) *Downsample {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Downsample) ErrorTrace(errortrace bool) *Downsample {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Downsample) FilterPath(filterpaths ...string) *Downsample {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Downsample) Human(human bool) *Downsample {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Downsample) Pretty(pretty bool) *Downsample {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// FixedInterval The interval at which to aggregate the original time series index.
// API name: fixed_interval
func (r *Downsample) FixedInterval(durationlarge string) *Downsample {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample/request.go
index d0cb0eab25..a58c789d62 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package downsample
@@ -26,7 +26,7 @@ import (
// Request holds the request body struct for the package downsample
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/downsample/Request.ts#L24-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/downsample/Request.ts#L24-L44
type Request = types.DownsampleConfig
// NewRequest returns a Request
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample/response.go
index 61c94defe8..837443ac26 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package downsample
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package downsample
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/downsample/Response.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/downsample/Response.ts#L22-L25
type Response = json.RawMessage
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/exists/exists.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/exists/exists.go
index 16b9008805..4e9497ce45 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/exists/exists.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/exists/exists.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about whether a particular index exists.
package exists
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -209,7 +208,7 @@ func (r Exists) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -305,3 +304,47 @@ func (r *Exists) Local(local bool) *Exists {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Exists) ErrorTrace(errortrace bool) *Exists {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Exists) FilterPath(filterpaths ...string) *Exists {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Exists) Human(human bool) *Exists {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Exists) Pretty(pretty bool) *Exists {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/existsalias/exists_alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/existsalias/exists_alias.go
index ab8db57584..b83efb914a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/existsalias/exists_alias.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/existsalias/exists_alias.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about whether a particular alias exists.
package existsalias
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -231,7 +230,7 @@ func (r ExistsAlias) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -322,3 +321,47 @@ func (r *ExistsAlias) Local(local bool) *ExistsAlias {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ExistsAlias) ErrorTrace(errortrace bool) *ExistsAlias {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ExistsAlias) FilterPath(filterpaths ...string) *ExistsAlias {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ExistsAlias) Human(human bool) *ExistsAlias {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ExistsAlias) Pretty(pretty bool) *ExistsAlias {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/existsindextemplate/exists_index_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/existsindextemplate/exists_index_template.go
index 9608160104..a5d9a8b631 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/existsindextemplate/exists_index_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/existsindextemplate/exists_index_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about whether a particular index template exists.
package existsindextemplate
@@ -26,9 +26,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -209,7 +209,7 @@ func (r ExistsIndexTemplate) IsSuccess(providedCtx context.Context) (bool, error
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -255,3 +255,47 @@ func (r *ExistsIndexTemplate) MasterTimeout(duration string) *ExistsIndexTemplat
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ExistsIndexTemplate) ErrorTrace(errortrace bool) *ExistsIndexTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ExistsIndexTemplate) FilterPath(filterpaths ...string) *ExistsIndexTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ExistsIndexTemplate) Human(human bool) *ExistsIndexTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ExistsIndexTemplate) Pretty(pretty bool) *ExistsIndexTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/existstemplate/exists_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/existstemplate/exists_template.go
index 8a6d46fb81..023e08315a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/existstemplate/exists_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/existstemplate/exists_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about whether a particular index template exists.
package existstemplate
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -210,7 +209,7 @@ func (r ExistsTemplate) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -271,3 +270,47 @@ func (r *ExistsTemplate) MasterTimeout(duration string) *ExistsTemplate {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ExistsTemplate) ErrorTrace(errortrace bool) *ExistsTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ExistsTemplate) FilterPath(filterpaths ...string) *ExistsTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ExistsTemplate) Human(human bool) *ExistsTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ExistsTemplate) Pretty(pretty bool) *ExistsTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/explaindatalifecycle/explain_data_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/explaindatalifecycle/explain_data_lifecycle.go
index dabf5c71ba..0915774508 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/explaindatalifecycle/explain_data_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/explaindatalifecycle/explain_data_lifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information about the index's current data stream lifecycle, such
// as any potential encountered error, time since creation etc.
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r ExplainDataLifecycle) IsSuccess(providedCtx context.Context) (bool, erro
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -318,3 +317,47 @@ func (r *ExplainDataLifecycle) MasterTimeout(duration string) *ExplainDataLifecy
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ExplainDataLifecycle) ErrorTrace(errortrace bool) *ExplainDataLifecycle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ExplainDataLifecycle) FilterPath(filterpaths ...string) *ExplainDataLifecycle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ExplainDataLifecycle) Human(human bool) *ExplainDataLifecycle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ExplainDataLifecycle) Pretty(pretty bool) *ExplainDataLifecycle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/explaindatalifecycle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/explaindatalifecycle/response.go
index 9f9f9d711c..74b9a0beda 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/explaindatalifecycle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/explaindatalifecycle/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package explaindatalifecycle
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package explaindatalifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L25-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L25-L29
type Response struct {
Indices map[string]types.DataStreamLifecycleExplain `json:"indices"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/fieldusagestats/field_usage_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/fieldusagestats/field_usage_stats.go
index 76d1b6e8be..092300ed88 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/fieldusagestats/field_usage_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/fieldusagestats/field_usage_stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the field usage stats for each field of an index
package fieldusagestats
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -262,7 +261,7 @@ func (r FieldUsageStats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -374,3 +373,47 @@ func (r *FieldUsageStats) WaitForActiveShards(waitforactiveshards string) *Field
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *FieldUsageStats) ErrorTrace(errortrace bool) *FieldUsageStats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *FieldUsageStats) FilterPath(filterpaths ...string) *FieldUsageStats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *FieldUsageStats) Human(human bool) *FieldUsageStats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *FieldUsageStats) Pretty(pretty bool) *FieldUsageStats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/fieldusagestats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/fieldusagestats/response.go
index c8a971a8ac..e2da56e02d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/fieldusagestats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/fieldusagestats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package fieldusagestats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package fieldusagestats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L28-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L28-L30
type Response struct {
FieldsUsageBody map[string]types.UsageStatsIndex `json:"-"`
Shards_ types.ShardStatistics `json:"_shards"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/flush/flush.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/flush/flush.go
index a8a2398e30..09685cb096 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/flush/flush.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/flush/flush.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Performs the flush operation on one or more indices.
package flush
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r Flush) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -359,3 +358,47 @@ func (r *Flush) WaitIfOngoing(waitifongoing bool) *Flush {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Flush) ErrorTrace(errortrace bool) *Flush {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Flush) FilterPath(filterpaths ...string) *Flush {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Flush) Human(human bool) *Flush {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Flush) Pretty(pretty bool) *Flush {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/flush/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/flush/response.go
index f90ff30278..6262774179 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/flush/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/flush/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package flush
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package flush
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/flush/IndicesFlushResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/flush/IndicesFlushResponse.ts#L22-L24
type Response struct {
Shards_ types.ShardStatistics `json:"_shards"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/forcemerge/forcemerge.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/forcemerge/forcemerge.go
index 7d2486aee4..3f17bdcb59 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/forcemerge/forcemerge.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/forcemerge/forcemerge.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Performs the force merge operation on one or more indices.
package forcemerge
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r Forcemerge) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -366,3 +365,47 @@ func (r *Forcemerge) WaitForCompletion(waitforcompletion bool) *Forcemerge {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Forcemerge) ErrorTrace(errortrace bool) *Forcemerge {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Forcemerge) FilterPath(filterpaths ...string) *Forcemerge {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Forcemerge) Human(human bool) *Forcemerge {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Forcemerge) Pretty(pretty bool) *Forcemerge {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/forcemerge/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/forcemerge/response.go
index 9b6ee791b2..278dc7447c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/forcemerge/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/forcemerge/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package forcemerge
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package forcemerge
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/forcemerge/IndicesForceMergeResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/forcemerge/IndicesForceMergeResponse.ts#L22-L24
type Response struct {
Shards_ types.ShardStatistics `json:"_shards"`
// Task task contains a task id returned when wait_for_completion=false,
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/get/get.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/get/get.go
index 8bf8f79bde..8fa5b69cd1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/get/get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/get/get.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about one or more indices.
package get
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -261,7 +260,7 @@ func (r Get) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -382,3 +381,47 @@ func (r *Get) Features(features ...feature.Feature) *Get {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Get) ErrorTrace(errortrace bool) *Get {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Get) FilterPath(filterpaths ...string) *Get {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Get) Human(human bool) *Get {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Get) Pretty(pretty bool) *Get {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/get/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/get/response.go
index d2ab9ecdf6..8ca6a1f02a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/get/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/get/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package get
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package get
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get/IndicesGetResponse.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get/IndicesGetResponse.ts#L24-L27
type Response map[string]types.IndexState
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getalias/get_alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getalias/get_alias.go
index 5df317634c..10a9ce7192 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getalias/get_alias.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getalias/get_alias.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns an alias.
package getalias
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -261,7 +260,7 @@ func (r GetAlias) Do(providedCtx context.Context) (Response, error) {
}
if res.StatusCode == 404 {
- data, err := ioutil.ReadAll(res.Body)
+ data, err := io.ReadAll(res.Body)
if err != nil {
if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
instrument.RecordError(ctx, err)
@@ -333,7 +332,7 @@ func (r GetAlias) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -426,3 +425,47 @@ func (r *GetAlias) Local(local bool) *GetAlias {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetAlias) ErrorTrace(errortrace bool) *GetAlias {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetAlias) FilterPath(filterpaths ...string) *GetAlias {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetAlias) Human(human bool) *GetAlias {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetAlias) Pretty(pretty bool) *GetAlias {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getalias/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getalias/response.go
index 48e0891883..567411348e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getalias/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getalias/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getalias
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getalias
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get_alias/IndicesGetAliasResponse.ts#L26-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_alias/IndicesGetAliasResponse.ts#L26-L35
type Response map[string]types.IndexAliases
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatalifecycle/get_data_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatalifecycle/get_data_lifecycle.go
index f8a1fcad20..6e91d52300 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatalifecycle/get_data_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatalifecycle/get_data_lifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the data stream lifecycle of the selected data streams.
package getdatalifecycle
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -264,7 +263,7 @@ func (r GetDataLifecycle) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -324,3 +323,47 @@ func (r *GetDataLifecycle) IncludeDefaults(includedefaults bool) *GetDataLifecyc
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetDataLifecycle) ErrorTrace(errortrace bool) *GetDataLifecycle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetDataLifecycle) FilterPath(filterpaths ...string) *GetDataLifecycle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetDataLifecycle) Human(human bool) *GetDataLifecycle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetDataLifecycle) Pretty(pretty bool) *GetDataLifecycle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatalifecycle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatalifecycle/response.go
index b12f9d278f..049d4020de 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatalifecycle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatalifecycle/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getdatalifecycle
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getdatalifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L23-L25
type Response struct {
DataStreams []types.DataStreamWithLifecycle `json:"data_streams"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatastream/get_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatastream/get_data_stream.go
index bff087806b..f75bef4c91 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatastream/get_data_stream.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatastream/get_data_stream.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns data streams.
package getdatastream
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r GetDataStream) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -324,3 +323,47 @@ func (r *GetDataStream) IncludeDefaults(includedefaults bool) *GetDataStream {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetDataStream) ErrorTrace(errortrace bool) *GetDataStream {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetDataStream) FilterPath(filterpaths ...string) *GetDataStream {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetDataStream) Human(human bool) *GetDataStream {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetDataStream) Pretty(pretty bool) *GetDataStream {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatastream/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatastream/response.go
index 7107dca95f..8300c79c2d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatastream/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatastream/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getdatastream
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getdatastream
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts#L22-L24
type Response struct {
DataStreams []types.DataStream `json:"data_streams"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getfieldmapping/get_field_mapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getfieldmapping/get_field_mapping.go
index 36e1ed5a09..d85c9ffec4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getfieldmapping/get_field_mapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getfieldmapping/get_field_mapping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns mapping for one or more fields.
package getfieldmapping
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -286,7 +285,7 @@ func (r GetFieldMapping) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -387,3 +386,47 @@ func (r *GetFieldMapping) Local(local bool) *GetFieldMapping {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetFieldMapping) ErrorTrace(errortrace bool) *GetFieldMapping {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetFieldMapping) FilterPath(filterpaths ...string) *GetFieldMapping {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetFieldMapping) Human(human bool) *GetFieldMapping {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetFieldMapping) Pretty(pretty bool) *GetFieldMapping {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getfieldmapping/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getfieldmapping/response.go
index 605beef146..2fc6cdc9fa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getfieldmapping/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getfieldmapping/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getfieldmapping
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getfieldmapping
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get_field_mapping/IndicesGetFieldMappingResponse.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_field_mapping/IndicesGetFieldMappingResponse.ts#L24-L27
type Response map[string]types.TypeFieldMappings
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getindextemplate/get_index_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getindextemplate/get_index_template.go
index 08f733834d..bb305b8e1a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getindextemplate/get_index_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getindextemplate/get_index_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns an index template.
package getindextemplate
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -264,7 +263,7 @@ func (r GetIndexTemplate) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -335,3 +334,47 @@ func (r *GetIndexTemplate) IncludeDefaults(includedefaults bool) *GetIndexTempla
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetIndexTemplate) ErrorTrace(errortrace bool) *GetIndexTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetIndexTemplate) FilterPath(filterpaths ...string) *GetIndexTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetIndexTemplate) Human(human bool) *GetIndexTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetIndexTemplate) Pretty(pretty bool) *GetIndexTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getindextemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getindextemplate/response.go
index 221cc391cf..c00163f855 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getindextemplate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getindextemplate/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getindextemplate
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getindextemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L23-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L23-L27
type Response struct {
IndexTemplates []types.IndexTemplateItem `json:"index_templates"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getmapping/get_mapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getmapping/get_mapping.go
index e406ad48d1..3ef84f91a8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getmapping/get_mapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getmapping/get_mapping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns mappings for one or more indices.
package getmapping
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r GetMapping) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -358,3 +357,47 @@ func (r *GetMapping) MasterTimeout(duration string) *GetMapping {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetMapping) ErrorTrace(errortrace bool) *GetMapping {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetMapping) FilterPath(filterpaths ...string) *GetMapping {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetMapping) Human(human bool) *GetMapping {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetMapping) Pretty(pretty bool) *GetMapping {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getmapping/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getmapping/response.go
index e3c95241f2..913a2c57d4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getmapping/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getmapping/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getmapping
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getmapping
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L24-L27
type Response map[string]types.IndexMappingRecord
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getsettings/get_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getsettings/get_settings.go
index a0a6daae19..e404daefbe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getsettings/get_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getsettings/get_settings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns settings for one or more indices.
package getsettings
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -296,7 +295,7 @@ func (r GetSettings) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -414,3 +413,47 @@ func (r *GetSettings) MasterTimeout(duration string) *GetSettings {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetSettings) ErrorTrace(errortrace bool) *GetSettings {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetSettings) FilterPath(filterpaths ...string) *GetSettings {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetSettings) Human(human bool) *GetSettings {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetSettings) Pretty(pretty bool) *GetSettings {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getsettings/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getsettings/response.go
index 31dd0cc9aa..df4615ebcf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getsettings/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/getsettings/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getsettings
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getsettings
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get_settings/IndicesGetSettingsResponse.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_settings/IndicesGetSettingsResponse.ts#L24-L27
type Response map[string]types.IndexState
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/gettemplate/get_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/gettemplate/get_template.go
index c11e50e4c5..deb1994b2a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/gettemplate/get_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/gettemplate/get_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns an index template.
package gettemplate
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -264,7 +263,7 @@ func (r GetTemplate) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -329,3 +328,47 @@ func (r *GetTemplate) MasterTimeout(duration string) *GetTemplate {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetTemplate) ErrorTrace(errortrace bool) *GetTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetTemplate) FilterPath(filterpaths ...string) *GetTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetTemplate) Human(human bool) *GetTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetTemplate) Pretty(pretty bool) *GetTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/gettemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/gettemplate/response.go
index 1250be26fb..acd01dd547 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/gettemplate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/gettemplate/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package gettemplate
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package gettemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get_template/IndicesGetTemplateResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_template/IndicesGetTemplateResponse.ts#L23-L26
type Response map[string]types.TemplateMapping
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/migratetodatastream/migrate_to_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/migratetodatastream/migrate_to_data_stream.go
index b583dea424..b3564a3065 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/migratetodatastream/migrate_to_data_stream.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/migratetodatastream/migrate_to_data_stream.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Migrates an alias to a data stream
package migratetodatastream
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r MigrateToDataStream) IsSuccess(providedCtx context.Context) (bool, error
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *MigrateToDataStream) _name(name string) *MigrateToDataStream {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *MigrateToDataStream) ErrorTrace(errortrace bool) *MigrateToDataStream {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *MigrateToDataStream) FilterPath(filterpaths ...string) *MigrateToDataStream {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *MigrateToDataStream) Human(human bool) *MigrateToDataStream {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *MigrateToDataStream) Pretty(pretty bool) *MigrateToDataStream {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/migratetodatastream/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/migratetodatastream/response.go
index 7a3c5c51f5..627f7b86d5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/migratetodatastream/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/migratetodatastream/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package migratetodatastream
// Response holds the response body struct for the package migratetodatastream
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream/modify_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream/modify_data_stream.go
index 2b847dbbc5..2de21ce790 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream/modify_data_stream.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream/modify_data_stream.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Modifies a data stream
package modifydatastream
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -291,6 +292,50 @@ func (r *ModifyDataStream) Header(key, value string) *ModifyDataStream {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ModifyDataStream) ErrorTrace(errortrace bool) *ModifyDataStream {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ModifyDataStream) FilterPath(filterpaths ...string) *ModifyDataStream {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ModifyDataStream) Human(human bool) *ModifyDataStream {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ModifyDataStream) Pretty(pretty bool) *ModifyDataStream {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Actions Actions to perform.
// API name: actions
func (r *ModifyDataStream) Actions(actions ...types.IndicesModifyAction) *ModifyDataStream {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream/request.go
index b24d714d35..135882a0d8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package modifydatastream
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package modifydatastream
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L36
type Request struct {
// Actions Actions to perform.
@@ -39,6 +39,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream/response.go
index 39bb57750c..5679db1722 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package modifydatastream
// Response holds the response body struct for the package modifydatastream
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/modify_data_stream/IndicesModifyDataStreamResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/modify_data_stream/IndicesModifyDataStreamResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/open/open.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/open/open.go
index cd17535c45..fc3a24f2a0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/open/open.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/open/open.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Opens an index.
package open
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -262,7 +261,7 @@ func (r Open) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -372,3 +371,47 @@ func (r *Open) WaitForActiveShards(waitforactiveshards string) *Open {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Open) ErrorTrace(errortrace bool) *Open {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Open) FilterPath(filterpaths ...string) *Open {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Open) Human(human bool) *Open {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Open) Pretty(pretty bool) *Open {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/open/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/open/response.go
index f45292c1ee..c85c1e39df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/open/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/open/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package open
// Response holds the response body struct for the package open
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/open/IndicesOpenResponse.ts#L20-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/open/IndicesOpenResponse.ts#L20-L25
type Response struct {
Acknowledged bool `json:"acknowledged"`
ShardsAcknowledged bool `json:"shards_acknowledged"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/promotedatastream/promote_data_stream.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/promotedatastream/promote_data_stream.go
index 1a7f224c7b..3a1f47d9fc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/promotedatastream/promote_data_stream.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/promotedatastream/promote_data_stream.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Promotes a data stream from a replicated data stream managed by CCR to a
// regular data stream
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r PromoteDataStream) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -300,3 +300,47 @@ func (r *PromoteDataStream) _name(name string) *PromoteDataStream {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PromoteDataStream) ErrorTrace(errortrace bool) *PromoteDataStream {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PromoteDataStream) FilterPath(filterpaths ...string) *PromoteDataStream {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PromoteDataStream) Human(human bool) *PromoteDataStream {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PromoteDataStream) Pretty(pretty bool) *PromoteDataStream {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/promotedatastream/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/promotedatastream/response.go
index c6f4677e1d..8e61c13973 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/promotedatastream/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/promotedatastream/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package promotedatastream
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package promotedatastream
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/promote_data_stream/IndicesPromoteDataStreamResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/promote_data_stream/IndicesPromoteDataStreamResponse.ts#L22-L25
type Response = json.RawMessage
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias/put_alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias/put_alias.go
index 5eafa9df51..c62a36e2c2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias/put_alias.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias/put_alias.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates or updates an alias.
package putalias
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -373,6 +374,50 @@ func (r *PutAlias) Timeout(duration string) *PutAlias {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutAlias) ErrorTrace(errortrace bool) *PutAlias {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutAlias) FilterPath(filterpaths ...string) *PutAlias {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutAlias) Human(human bool) *PutAlias {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutAlias) Pretty(pretty bool) *PutAlias {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Filter Query used to limit documents the alias can access.
// API name: filter
func (r *PutAlias) Filter(filter *types.Query) *PutAlias {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias/request.go
index 024573a574..0319754ff4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putalias
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package putalias
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/put_alias/IndicesPutAliasRequest.ts#L25-L91
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_alias/IndicesPutAliasRequest.ts#L25-L91
type Request struct {
// Filter Query used to limit documents the alias can access.
@@ -62,6 +62,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -102,7 +103,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "is_write_index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias/response.go
index 461f6f1a20..118a32d669 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putalias
// Response holds the response body struct for the package putalias
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/put_alias/IndicesPutAliasResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_alias/IndicesPutAliasResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putdatalifecycle/put_data_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putdatalifecycle/put_data_lifecycle.go
index 28d8c7abad..19323c71ba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putdatalifecycle/put_data_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putdatalifecycle/put_data_lifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates the data stream lifecycle of the selected data streams.
package putdatalifecycle
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -345,6 +346,50 @@ func (r *PutDataLifecycle) Timeout(duration string) *PutDataLifecycle {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutDataLifecycle) ErrorTrace(errortrace bool) *PutDataLifecycle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutDataLifecycle) FilterPath(filterpaths ...string) *PutDataLifecycle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutDataLifecycle) Human(human bool) *PutDataLifecycle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutDataLifecycle) Pretty(pretty bool) *PutDataLifecycle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// DataRetention If defined, every document added to this data stream will be stored at least
// for this time frame.
// Any time after this duration the document could be deleted.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putdatalifecycle/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putdatalifecycle/request.go
index 4093022a84..560785bd7b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putdatalifecycle/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putdatalifecycle/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putdatalifecycle
@@ -32,7 +32,7 @@ import (
// Request holds the request body struct for the package putdatalifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L75
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L75
type Request struct {
// DataRetention If defined, every document added to this data stream will be stored at least
@@ -49,6 +49,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putdatalifecycle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putdatalifecycle/response.go
index 3031bee2e6..ab8aa5ea61 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putdatalifecycle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putdatalifecycle/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putdatalifecycle
// Response holds the response body struct for the package putdatalifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putindextemplate/put_index_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putindextemplate/put_index_template.go
index 6bfefc62ba..0686eabc80 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putindextemplate/put_index_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putindextemplate/put_index_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates or updates an index template.
package putindextemplate
@@ -321,6 +321,82 @@ func (r *PutIndexTemplate) Create(create bool) *PutIndexTemplate {
return r
}
+// MasterTimeout Period to wait for a connection to the master node.
+// If no response is received before the timeout expires, the request fails and
+// returns an error.
+// API name: master_timeout
+func (r *PutIndexTemplate) MasterTimeout(duration string) *PutIndexTemplate {
+ r.values.Set("master_timeout", duration)
+
+ return r
+}
+
+// Cause User defined reason for creating/updating the index template
+// API name: cause
+func (r *PutIndexTemplate) Cause(cause string) *PutIndexTemplate {
+ r.values.Set("cause", cause)
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutIndexTemplate) ErrorTrace(errortrace bool) *PutIndexTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutIndexTemplate) FilterPath(filterpaths ...string) *PutIndexTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutIndexTemplate) Human(human bool) *PutIndexTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutIndexTemplate) Pretty(pretty bool) *PutIndexTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
+// AllowAutoCreate This setting overrides the value of the `action.auto_create_index` cluster
+// setting.
+// If set to `true` in a template, then indices can be automatically created
+// using that template even if auto-creation of indices is disabled via
+// `actions.auto_create_index`.
+// If set to `false`, then indices or data streams matching the template must
+// always be explicitly created, and may never be automatically created.
+// API name: allow_auto_create
+func (r *PutIndexTemplate) AllowAutoCreate(allowautocreate bool) *PutIndexTemplate {
+ r.req.AllowAutoCreate = &allowautocreate
+
+ return r
+}
+
// ComposedOf An ordered list of component template names.
// Component templates are merged in the order specified, meaning that the last
// component template specified has the highest precedence.
@@ -343,6 +419,27 @@ func (r *PutIndexTemplate) DataStream(datastream *types.DataStreamVisibility) *P
return r
}
+// Deprecated Marks this index template as deprecated. When creating or updating a
+// non-deprecated index template
+// that uses deprecated components, Elasticsearch will emit a deprecation
+// warning.
+// API name: deprecated
+func (r *PutIndexTemplate) Deprecated(deprecated bool) *PutIndexTemplate {
+ r.req.Deprecated = &deprecated
+
+ return r
+}
+
+// IgnoreMissingComponentTemplates The configuration option ignore_missing_component_templates can be used when
+// an index template
+// references a component template that might not exist
+// API name: ignore_missing_component_templates
+func (r *PutIndexTemplate) IgnoreMissingComponentTemplates(ignoremissingcomponenttemplates ...string) *PutIndexTemplate {
+ r.req.IgnoreMissingComponentTemplates = ignoremissingcomponenttemplates
+
+ return r
+}
+
// IndexPatterns Name of the index template to create.
// API name: index_patterns
func (r *PutIndexTemplate) IndexPatterns(indices ...string) *PutIndexTemplate {
@@ -368,7 +465,8 @@ func (r *PutIndexTemplate) Meta_(metadata types.Metadata) *PutIndexTemplate {
// priority 0 (lowest priority).
// This number is not automatically generated by Elasticsearch.
// API name: priority
-func (r *PutIndexTemplate) Priority(priority int) *PutIndexTemplate {
+func (r *PutIndexTemplate) Priority(priority int64) *PutIndexTemplate {
+
r.req.Priority = &priority
return r
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putindextemplate/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putindextemplate/request.go
index 908dd683ec..e5aa310752 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putindextemplate/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putindextemplate/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putindextemplate
@@ -33,9 +33,17 @@ import (
// Request holds the request body struct for the package putindextemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L36-L95
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L37-L119
type Request struct {
+ // AllowAutoCreate This setting overrides the value of the `action.auto_create_index` cluster
+ // setting.
+ // If set to `true` in a template, then indices can be automatically created
+ // using that template even if auto-creation of indices is disabled via
+ // `actions.auto_create_index`.
+ // If set to `false`, then indices or data streams matching the template must
+ // always be explicitly created, and may never be automatically created.
+ AllowAutoCreate *bool `json:"allow_auto_create,omitempty"`
// ComposedOf An ordered list of component template names.
// Component templates are merged in the order specified, meaning that the last
// component template specified has the highest precedence.
@@ -45,6 +53,15 @@ type Request struct {
// Supports an empty object.
// Data streams require a matching index template with a `data_stream` object.
DataStream *types.DataStreamVisibility `json:"data_stream,omitempty"`
+ // Deprecated Marks this index template as deprecated. When creating or updating a
+ // non-deprecated index template
+ // that uses deprecated components, Elasticsearch will emit a deprecation
+ // warning.
+ Deprecated *bool `json:"deprecated,omitempty"`
+ // IgnoreMissingComponentTemplates The configuration option ignore_missing_component_templates can be used when
+ // an index template
+ // references a component template that might not exist
+ IgnoreMissingComponentTemplates []string `json:"ignore_missing_component_templates,omitempty"`
// IndexPatterns Name of the index template to create.
IndexPatterns []string `json:"index_patterns,omitempty"`
// Meta_ Optional user metadata about the index template.
@@ -57,7 +74,7 @@ type Request struct {
// If no priority is specified the template is treated as though it is of
// priority 0 (lowest priority).
// This number is not automatically generated by Elasticsearch.
- Priority *int `json:"priority,omitempty"`
+ Priority *int64 `json:"priority,omitempty"`
// Template Template to be applied.
// It may optionally include an `aliases`, `mappings`, or `settings`
// configuration.
@@ -70,6 +87,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -99,6 +117,20 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
+ case "allow_auto_create":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "AllowAutoCreate", err)
+ }
+ s.AllowAutoCreate = &value
+ case bool:
+ s.AllowAutoCreate = &v
+ }
+
case "composed_of":
if err := dec.Decode(&s.ComposedOf); err != nil {
return fmt.Errorf("%s | %w", "ComposedOf", err)
@@ -109,6 +141,25 @@ func (s *Request) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "DataStream", err)
}
+ case "deprecated":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Deprecated", err)
+ }
+ s.Deprecated = &value
+ case bool:
+ s.Deprecated = &v
+ }
+
+ case "ignore_missing_component_templates":
+ if err := dec.Decode(&s.IgnoreMissingComponentTemplates); err != nil {
+ return fmt.Errorf("%s | %w", "IgnoreMissingComponentTemplates", err)
+ }
+
case "index_patterns":
rawMsg := json.RawMessage{}
dec.Decode(&rawMsg)
@@ -131,18 +182,17 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "priority":
-
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.Atoi(v)
+ value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
return fmt.Errorf("%s | %w", "Priority", err)
}
s.Priority = &value
case float64:
- f := int(v)
+ f := int64(v)
s.Priority = &f
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putindextemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putindextemplate/response.go
index 4a98eb1f1e..bd9175114e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putindextemplate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putindextemplate/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putindextemplate
// Response holds the response body struct for the package putindextemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/put_index_template/IndicesPutIndexTemplateResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_index_template/IndicesPutIndexTemplateResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/put_mapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/put_mapping.go
index 587337bbd0..18b4a01cb8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/put_mapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/put_mapping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates the index mappings.
package putmapping
@@ -380,6 +380,50 @@ func (r *PutMapping) WriteIndexOnly(writeindexonly bool) *PutMapping {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutMapping) ErrorTrace(errortrace bool) *PutMapping {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutMapping) FilterPath(filterpaths ...string) *PutMapping {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutMapping) Human(human bool) *PutMapping {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutMapping) Pretty(pretty bool) *PutMapping {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// DateDetection Controls whether dynamic date detection is enabled.
// API name: date_detection
func (r *PutMapping) DateDetection(datedetection bool) *PutMapping {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/request.go
index 73e32ea224..fb315bea96 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putmapping
@@ -34,7 +34,7 @@ import (
// Request holds the request body struct for the package putmapping
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/put_mapping/IndicesPutMappingRequest.ts#L42-L149
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_mapping/IndicesPutMappingRequest.ts#L42-L149
type Request struct {
// DateDetection Controls whether dynamic date detection is enabled.
@@ -74,6 +74,7 @@ func NewRequest() *Request {
r := &Request{
Properties: make(map[string]types.Property, 0),
}
+
return r
}
@@ -104,7 +105,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "date_detection":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -159,7 +160,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "numeric_detection":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -179,7 +180,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -470,6 +471,12 @@ func (s *Request) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := types.NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(types.Property)
if err := localDec.Decode(&oo); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/response.go
index 868fbedaa5..bdf91ede71 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putmapping
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package putmapping
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/put_mapping/IndicesPutMappingResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_mapping/IndicesPutMappingResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/put_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/put_settings.go
index d2dad3708f..46dd9e7f17 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/put_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/put_settings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates the index settings.
package putsettings
@@ -392,6 +392,50 @@ func (r *PutSettings) Timeout(duration string) *PutSettings {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutSettings) ErrorTrace(errortrace bool) *PutSettings {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutSettings) FilterPath(filterpaths ...string) *PutSettings {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutSettings) Human(human bool) *PutSettings {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutSettings) Pretty(pretty bool) *PutSettings {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: analysis
func (r *PutSettings) Analysis(analysis *types.IndexSettingsAnalysis) *PutSettings {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/request.go
index e22155478d..fef3c37e6e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putsettings
@@ -26,7 +26,7 @@ import (
// Request holds the request body struct for the package putsettings
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/put_settings/IndicesPutSettingsRequest.ts#L25-L92
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_settings/IndicesPutSettingsRequest.ts#L25-L92
type Request = types.IndexSettings
// NewRequest returns a Request
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/response.go
index 1b61ffc8c4..e795b7a081 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putsettings
// Response holds the response body struct for the package putsettings
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/put_settings/IndicesPutSettingsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_settings/IndicesPutSettingsResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/puttemplate/put_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/puttemplate/put_template.go
index e78440e713..222f9ad46b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/puttemplate/put_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/puttemplate/put_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates or updates an index template.
package puttemplate
@@ -321,14 +321,6 @@ func (r *PutTemplate) Create(create bool) *PutTemplate {
return r
}
-// FlatSettings If `true`, returns settings in flat format.
-// API name: flat_settings
-func (r *PutTemplate) FlatSettings(flatsettings bool) *PutTemplate {
- r.values.Set("flat_settings", strconv.FormatBool(flatsettings))
-
- return r
-}
-
// MasterTimeout Period to wait for a connection to the master node. If no response is
// received before the timeout expires, the request fails and returns an error.
// API name: master_timeout
@@ -338,12 +330,53 @@ func (r *PutTemplate) MasterTimeout(duration string) *PutTemplate {
return r
}
-// Timeout Period to wait for a response.
-// If no response is received before the timeout expires, the request fails and
-// returns an error.
-// API name: timeout
-func (r *PutTemplate) Timeout(duration string) *PutTemplate {
- r.values.Set("timeout", duration)
+// API name: cause
+func (r *PutTemplate) Cause(cause string) *PutTemplate {
+ r.values.Set("cause", cause)
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutTemplate) ErrorTrace(errortrace bool) *PutTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutTemplate) FilterPath(filterpaths ...string) *PutTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutTemplate) Human(human bool) *PutTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutTemplate) Pretty(pretty bool) *PutTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
return r
}
@@ -389,7 +422,7 @@ func (r *PutTemplate) Order(order int) *PutTemplate {
// Settings Configuration options for the index.
// API name: settings
-func (r *PutTemplate) Settings(settings map[string]json.RawMessage) *PutTemplate {
+func (r *PutTemplate) Settings(settings *types.IndexSettings) *PutTemplate {
r.req.Settings = settings
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/puttemplate/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/puttemplate/request.go
index 67a5d28395..c93bf8b4f0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/puttemplate/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/puttemplate/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package puttemplate
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package puttemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/put_template/IndicesPutTemplateRequest.ts#L29-L105
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_template/IndicesPutTemplateRequest.ts#L29-L95
type Request struct {
// Aliases Aliases for the index.
@@ -50,7 +50,7 @@ type Request struct {
// 'order' values are merged later, overriding templates with lower values.
Order *int `json:"order,omitempty"`
// Settings Configuration options for the index.
- Settings map[string]json.RawMessage `json:"settings,omitempty"`
+ Settings *types.IndexSettings `json:"settings,omitempty"`
// Version Version number used to manage index templates externally. This number
// is not automatically generated by Elasticsearch.
Version *int64 `json:"version,omitempty"`
@@ -59,9 +59,9 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{
- Aliases: make(map[string]types.Alias, 0),
- Settings: make(map[string]json.RawMessage, 0),
+ Aliases: make(map[string]types.Alias, 0),
}
+
return r
}
@@ -122,7 +122,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "order":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -137,9 +137,6 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "settings":
- if s.Settings == nil {
- s.Settings = make(map[string]json.RawMessage, 0)
- }
if err := dec.Decode(&s.Settings); err != nil {
return fmt.Errorf("%s | %w", "Settings", err)
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/puttemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/puttemplate/response.go
index f2fe8d0d3a..59f21fd3f4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/puttemplate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/puttemplate/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package puttemplate
// Response holds the response body struct for the package puttemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/put_template/IndicesPutTemplateResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_template/IndicesPutTemplateResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/recovery/recovery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/recovery/recovery.go
index e6eb566a3b..b18427ef0a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/recovery/recovery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/recovery/recovery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about ongoing index shard recoveries.
package recovery
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -264,7 +263,7 @@ func (r Recovery) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -320,3 +319,47 @@ func (r *Recovery) Detailed(detailed bool) *Recovery {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Recovery) ErrorTrace(errortrace bool) *Recovery {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Recovery) FilterPath(filterpaths ...string) *Recovery {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Recovery) Human(human bool) *Recovery {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Recovery) Pretty(pretty bool) *Recovery {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/recovery/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/recovery/response.go
index e77b5f17dd..b9d5741577 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/recovery/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/recovery/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package recovery
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package recovery
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/recovery/IndicesRecoveryResponse.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/IndicesRecoveryResponse.ts#L24-L27
type Response map[string]types.RecoveryStatus
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/refresh/refresh.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/refresh/refresh.go
index d9a6ba3935..e8338dfc9a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/refresh/refresh.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/refresh/refresh.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Performs the refresh operation in one or more indices.
package refresh
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r Refresh) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -340,3 +339,47 @@ func (r *Refresh) IgnoreUnavailable(ignoreunavailable bool) *Refresh {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Refresh) ErrorTrace(errortrace bool) *Refresh {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Refresh) FilterPath(filterpaths ...string) *Refresh {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Refresh) Human(human bool) *Refresh {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Refresh) Pretty(pretty bool) *Refresh {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/refresh/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/refresh/response.go
index 815bdaf273..fd8b211790 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/refresh/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/refresh/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package refresh
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package refresh
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/refresh/IndicesRefreshResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/refresh/IndicesRefreshResponse.ts#L22-L24
type Response struct {
Shards_ types.ShardStatistics `json:"_shards"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/reloadsearchanalyzers/reload_search_analyzers.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/reloadsearchanalyzers/reload_search_analyzers.go
index cfab8ec9c9..c1e8f71109 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/reloadsearchanalyzers/reload_search_analyzers.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/reloadsearchanalyzers/reload_search_analyzers.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Reloads an index's search analyzers and their resources.
package reloadsearchanalyzers
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -262,7 +261,7 @@ func (r ReloadSearchAnalyzers) IsSuccess(providedCtx context.Context) (bool, err
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -329,3 +328,47 @@ func (r *ReloadSearchAnalyzers) IgnoreUnavailable(ignoreunavailable bool) *Reloa
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ReloadSearchAnalyzers) ErrorTrace(errortrace bool) *ReloadSearchAnalyzers {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ReloadSearchAnalyzers) FilterPath(filterpaths ...string) *ReloadSearchAnalyzers {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ReloadSearchAnalyzers) Human(human bool) *ReloadSearchAnalyzers {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ReloadSearchAnalyzers) Pretty(pretty bool) *ReloadSearchAnalyzers {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/reloadsearchanalyzers/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/reloadsearchanalyzers/response.go
index fbb73a6c4d..58af100618 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/reloadsearchanalyzers/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/reloadsearchanalyzers/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package reloadsearchanalyzers
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package reloadsearchanalyzers
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts#L22-L24
type Response struct {
ReloadDetails []types.ReloadDetails `json:"reload_details"`
Shards_ types.ShardStatistics `json:"_shards"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolvecluster/resolve_cluster.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolvecluster/resolve_cluster.go
index 670b809035..86ce1dca28 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolvecluster/resolve_cluster.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolvecluster/resolve_cluster.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Resolves the specified index expressions to return information about each
// cluster, including the local cluster, if included.
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -266,7 +265,7 @@ func (r ResolveCluster) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -352,3 +351,47 @@ func (r *ResolveCluster) IgnoreUnavailable(ignoreunavailable bool) *ResolveClust
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ResolveCluster) ErrorTrace(errortrace bool) *ResolveCluster {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ResolveCluster) FilterPath(filterpaths ...string) *ResolveCluster {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ResolveCluster) Human(human bool) *ResolveCluster {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ResolveCluster) Pretty(pretty bool) *ResolveCluster {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolvecluster/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolvecluster/response.go
index 9f9708a983..9ffd1410e2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolvecluster/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolvecluster/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package resolvecluster
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package resolvecluster
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L24-L27
type Response map[string]types.ResolveClusterInfo
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolveindex/resolve_index.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolveindex/resolve_index.go
index 846d519af7..563b8da0fb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolveindex/resolve_index.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolveindex/resolve_index.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about any matching indices, aliases, and data streams
package resolveindex
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -263,7 +263,7 @@ func (r ResolveIndex) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -318,3 +318,47 @@ func (r *ResolveIndex) ExpandWildcards(expandwildcards ...expandwildcard.ExpandW
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ResolveIndex) ErrorTrace(errortrace bool) *ResolveIndex {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ResolveIndex) FilterPath(filterpaths ...string) *ResolveIndex {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ResolveIndex) Human(human bool) *ResolveIndex {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ResolveIndex) Pretty(pretty bool) *ResolveIndex {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolveindex/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolveindex/response.go
index 8ebff7569b..87661da5e3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolveindex/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolveindex/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package resolveindex
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package resolveindex
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/resolve_index/ResolveIndexResponse.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/resolve_index/ResolveIndexResponse.ts#L22-L28
type Response struct {
Aliases []types.ResolveIndexAliasItem `json:"aliases"`
DataStreams []types.ResolveIndexDataStreamsItem `json:"data_streams"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/rollover/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/rollover/request.go
index 7468e3f01f..b1dedcd63a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/rollover/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/rollover/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package rollover
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package rollover
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/rollover/IndicesRolloverRequest.ts#L29-L99
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/rollover/IndicesRolloverRequest.ts#L29-L99
type Request struct {
// Aliases Aliases for the target index.
@@ -60,6 +60,7 @@ func NewRequest() *Request {
Aliases: make(map[string]types.Alias, 0),
Settings: make(map[string]json.RawMessage, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/rollover/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/rollover/response.go
index ffd6a27f5d..dea81dcb4f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/rollover/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/rollover/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package rollover
// Response holds the response body struct for the package rollover
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/rollover/IndicesRolloverResponse.ts#L22-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/rollover/IndicesRolloverResponse.ts#L22-L32
type Response struct {
Acknowledged bool `json:"acknowledged"`
Conditions map[string]bool `json:"conditions"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/rollover/rollover.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/rollover/rollover.go
index a651e35f1e..1a08a8c5fe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/rollover/rollover.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/rollover/rollover.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates an alias to point to a new index when the existing index
// is considered to be too large or too old.
@@ -386,6 +386,50 @@ func (r *Rollover) WaitForActiveShards(waitforactiveshards string) *Rollover {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Rollover) ErrorTrace(errortrace bool) *Rollover {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Rollover) FilterPath(filterpaths ...string) *Rollover {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Rollover) Human(human bool) *Rollover {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Rollover) Pretty(pretty bool) *Rollover {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Aliases Aliases for the target index.
// Data streams do not support this parameter.
// API name: aliases
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/segments/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/segments/response.go
index 54156935ce..75ea23a2c5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/segments/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/segments/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package segments
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package segments
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/segments/IndicesSegmentsResponse.ts#L24-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/segments/IndicesSegmentsResponse.ts#L24-L29
type Response struct {
Indices map[string]types.IndexSegment `json:"indices"`
Shards_ types.ShardStatistics `json:"_shards"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/segments/segments.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/segments/segments.go
index 8ac3f68840..70b2a74a43 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/segments/segments.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/segments/segments.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Provides low-level information about segments in a Lucene index.
package segments
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r Segments) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -348,3 +347,47 @@ func (r *Segments) Verbose(verbose bool) *Segments {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Segments) ErrorTrace(errortrace bool) *Segments {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Segments) FilterPath(filterpaths ...string) *Segments {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Segments) Human(human bool) *Segments {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Segments) Pretty(pretty bool) *Segments {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shardstores/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shardstores/response.go
index 1e5019ef47..a25f9f7bf0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shardstores/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shardstores/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package shardstores
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package shardstores
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/shard_stores/IndicesShardStoresResponse.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/IndicesShardStoresResponse.ts#L24-L26
type Response struct {
Indices map[string]types.IndicesShardStores `json:"indices"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shardstores/shard_stores.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shardstores/shard_stores.go
index b312f3dc11..c32c92b4a5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shardstores/shard_stores.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shardstores/shard_stores.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Provides store information for shard copies of indices.
package shardstores
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -266,7 +265,7 @@ func (r ShardStores) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -349,3 +348,47 @@ func (r *ShardStores) Status(statuses ...shardstorestatus.ShardStoreStatus) *Sha
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ShardStores) ErrorTrace(errortrace bool) *ShardStores {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ShardStores) FilterPath(filterpaths ...string) *ShardStores {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ShardStores) Human(human bool) *ShardStores {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ShardStores) Pretty(pretty bool) *ShardStores {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shrink/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shrink/request.go
index 7fba1e7ce3..823977ea42 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shrink/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shrink/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package shrink
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package shrink
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/shrink/IndicesShrinkRequest.ts#L27-L75
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shrink/IndicesShrinkRequest.ts#L27-L75
type Request struct {
// Aliases The key is the alias name.
@@ -45,6 +45,7 @@ func NewRequest() *Request {
Aliases: make(map[string]types.Alias, 0),
Settings: make(map[string]json.RawMessage, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shrink/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shrink/response.go
index f3dca454b7..9b1054eb1d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shrink/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shrink/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package shrink
// Response holds the response body struct for the package shrink
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/shrink/IndicesShrinkResponse.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shrink/IndicesShrinkResponse.ts#L22-L28
type Response struct {
Acknowledged bool `json:"acknowledged"`
Index string `json:"index"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shrink/shrink.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shrink/shrink.go
index 77bdc633e0..b0b34a0529 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shrink/shrink.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/shrink/shrink.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allow to shrink an existing index into a new index with fewer primary shards.
package shrink
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -363,6 +364,50 @@ func (r *Shrink) WaitForActiveShards(waitforactiveshards string) *Shrink {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Shrink) ErrorTrace(errortrace bool) *Shrink {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Shrink) FilterPath(filterpaths ...string) *Shrink {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Shrink) Human(human bool) *Shrink {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Shrink) Pretty(pretty bool) *Shrink {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Aliases The key is the alias name.
// Index alias names support date math.
// API name: aliases
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulateindextemplate/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulateindextemplate/request.go
deleted file mode 100644
index 9e91059a11..0000000000
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulateindextemplate/request.go
+++ /dev/null
@@ -1,185 +0,0 @@
-// Licensed to Elasticsearch B.V. under one or more contributor
-// license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright
-// ownership. Elasticsearch B.V. licenses this file to you under
-// the Apache License, Version 2.0 (the "License"); you may
-// not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
-
-package simulateindextemplate
-
-import (
- "bytes"
- "encoding/json"
- "errors"
- "fmt"
- "io"
- "strconv"
-
- "github.com/elastic/go-elasticsearch/v8/typedapi/types"
-)
-
-// Request holds the request body struct for the package simulateindextemplate
-//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L33-L115
-type Request struct {
-
- // AllowAutoCreate This setting overrides the value of the `action.auto_create_index` cluster
- // setting.
- // If set to `true` in a template, then indices can be automatically created
- // using that template even if auto-creation of indices is disabled via
- // `actions.auto_create_index`.
- // If set to `false`, then indices or data streams matching the template must
- // always be explicitly created, and may never be automatically created.
- AllowAutoCreate *bool `json:"allow_auto_create,omitempty"`
- // ComposedOf An ordered list of component template names.
- // Component templates are merged in the order specified, meaning that the last
- // component template specified has the highest precedence.
- ComposedOf []string `json:"composed_of,omitempty"`
- // DataStream If this object is included, the template is used to create data streams and
- // their backing indices.
- // Supports an empty object.
- // Data streams require a matching index template with a `data_stream` object.
- DataStream *types.DataStreamVisibility `json:"data_stream,omitempty"`
- // IndexPatterns Array of wildcard (`*`) expressions used to match the names of data streams
- // and indices during creation.
- IndexPatterns []string `json:"index_patterns,omitempty"`
- // Meta_ Optional user metadata about the index template.
- // May have any contents.
- // This map is not automatically generated by Elasticsearch.
- Meta_ types.Metadata `json:"_meta,omitempty"`
- // Priority Priority to determine index template precedence when a new data stream or
- // index is created.
- // The index template with the highest priority is chosen.
- // If no priority is specified the template is treated as though it is of
- // priority 0 (lowest priority).
- // This number is not automatically generated by Elasticsearch.
- Priority *int `json:"priority,omitempty"`
- // Template Template to be applied.
- // It may optionally include an `aliases`, `mappings`, or `settings`
- // configuration.
- Template *types.IndexTemplateMapping `json:"template,omitempty"`
- // Version Version number used to manage index templates externally.
- // This number is not automatically generated by Elasticsearch.
- Version *int64 `json:"version,omitempty"`
-}
-
-// NewRequest returns a Request
-func NewRequest() *Request {
- r := &Request{}
- return r
-}
-
-// FromJSON allows to load an arbitrary json into the request structure
-func (r *Request) FromJSON(data string) (*Request, error) {
- var req Request
- err := json.Unmarshal([]byte(data), &req)
-
- if err != nil {
- return nil, fmt.Errorf("could not deserialise json into Simulateindextemplate request: %w", err)
- }
-
- return &req, nil
-}
-
-func (s *Request) UnmarshalJSON(data []byte) error {
- dec := json.NewDecoder(bytes.NewReader(data))
-
- for {
- t, err := dec.Token()
- if err != nil {
- if errors.Is(err, io.EOF) {
- break
- }
- return err
- }
-
- switch t {
-
- case "allow_auto_create":
- var tmp interface{}
- dec.Decode(&tmp)
- switch v := tmp.(type) {
- case string:
- value, err := strconv.ParseBool(v)
- if err != nil {
- return fmt.Errorf("%s | %w", "AllowAutoCreate", err)
- }
- s.AllowAutoCreate = &value
- case bool:
- s.AllowAutoCreate = &v
- }
-
- case "composed_of":
- if err := dec.Decode(&s.ComposedOf); err != nil {
- return fmt.Errorf("%s | %w", "ComposedOf", err)
- }
-
- case "data_stream":
- if err := dec.Decode(&s.DataStream); err != nil {
- return fmt.Errorf("%s | %w", "DataStream", err)
- }
-
- case "index_patterns":
- rawMsg := json.RawMessage{}
- dec.Decode(&rawMsg)
- if !bytes.HasPrefix(rawMsg, []byte("[")) {
- o := new(string)
- if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
- return fmt.Errorf("%s | %w", "IndexPatterns", err)
- }
-
- s.IndexPatterns = append(s.IndexPatterns, *o)
- } else {
- if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.IndexPatterns); err != nil {
- return fmt.Errorf("%s | %w", "IndexPatterns", err)
- }
- }
-
- case "_meta":
- if err := dec.Decode(&s.Meta_); err != nil {
- return fmt.Errorf("%s | %w", "Meta_", err)
- }
-
- case "priority":
-
- var tmp interface{}
- dec.Decode(&tmp)
- switch v := tmp.(type) {
- case string:
- value, err := strconv.Atoi(v)
- if err != nil {
- return fmt.Errorf("%s | %w", "Priority", err)
- }
- s.Priority = &value
- case float64:
- f := int(v)
- s.Priority = &f
- }
-
- case "template":
- if err := dec.Decode(&s.Template); err != nil {
- return fmt.Errorf("%s | %w", "Template", err)
- }
-
- case "version":
- if err := dec.Decode(&s.Version); err != nil {
- return fmt.Errorf("%s | %w", "Version", err)
- }
-
- }
- }
- return nil
-}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulateindextemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulateindextemplate/response.go
index 401fc452b6..8dfe760918 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulateindextemplate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulateindextemplate/response.go
@@ -16,14 +16,20 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package simulateindextemplate
+import (
+ "github.com/elastic/go-elasticsearch/v8/typedapi/types"
+)
+
// Response holds the response body struct for the package simulateindextemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L25-L30
type Response struct {
+ Overlapping []types.Overlapping `json:"overlapping,omitempty"`
+ Template types.Template `json:"template"`
}
// NewResponse returns a Response
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulateindextemplate/simulate_index_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulateindextemplate/simulate_index_template.go
index d667690860..ad8a6f3f3f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulateindextemplate/simulate_index_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulateindextemplate/simulate_index_template.go
@@ -16,14 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Simulate matching the given index name against the index templates in the
// system
package simulateindextemplate
import (
- gobytes "bytes"
"context"
"encoding/json"
"errors"
@@ -54,10 +53,6 @@ type SimulateIndexTemplate struct {
raw io.Reader
- req *Request
- deferred []func(request *Request) error
- buf *gobytes.Buffer
-
paramSet int
name string
@@ -91,10 +86,6 @@ func New(tp elastictransport.Interface) *SimulateIndexTemplate {
transport: tp,
values: make(url.Values),
headers: make(http.Header),
-
- buf: gobytes.NewBuffer(nil),
-
- req: NewRequest(),
}
if instrumented, ok := r.transport.(elastictransport.Instrumented); ok {
@@ -106,21 +97,6 @@ func New(tp elastictransport.Interface) *SimulateIndexTemplate {
return r
}
-// Raw takes a json payload as input which is then passed to the http.Request
-// If specified Raw takes precedence on Request method.
-func (r *SimulateIndexTemplate) Raw(raw io.Reader) *SimulateIndexTemplate {
- r.raw = raw
-
- return r
-}
-
-// Request allows to set the request property with the appropriate payload.
-func (r *SimulateIndexTemplate) Request(req *Request) *SimulateIndexTemplate {
- r.req = req
-
- return r
-}
-
// HttpRequest returns the http.Request object built from the
// given parameters.
func (r *SimulateIndexTemplate) HttpRequest(ctx context.Context) (*http.Request, error) {
@@ -130,31 +106,6 @@ func (r *SimulateIndexTemplate) HttpRequest(ctx context.Context) (*http.Request,
var err error
- if len(r.deferred) > 0 {
- for _, f := range r.deferred {
- deferredErr := f(r.req)
- if deferredErr != nil {
- return nil, deferredErr
- }
- }
- }
-
- if r.raw == nil && r.req != nil {
-
- data, err := json.Marshal(r.req)
-
- if err != nil {
- return nil, fmt.Errorf("could not serialise request for SimulateIndexTemplate: %w", err)
- }
-
- r.buf.Write(data)
-
- }
-
- if r.buf.Len() > 0 {
- r.raw = r.buf
- }
-
r.path.Scheme = "http"
switch {
@@ -301,6 +252,45 @@ func (r SimulateIndexTemplate) Do(providedCtx context.Context) (*Response, error
return nil, errorResponse
}
+// IsSuccess allows to run a query with a context and retrieve the result as a boolean.
+// This only exists for endpoints without a request payload and allows for quick control flow.
+func (r SimulateIndexTemplate) IsSuccess(providedCtx context.Context) (bool, error) {
+ var ctx context.Context
+ r.spanStarted = true
+ if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
+ ctx = instrument.Start(providedCtx, "indices.simulate_index_template")
+ defer instrument.Close(ctx)
+ }
+ if ctx == nil {
+ ctx = providedCtx
+ }
+
+ res, err := r.Perform(ctx)
+
+ if err != nil {
+ return false, err
+ }
+ io.Copy(io.Discard, res.Body)
+ err = res.Body.Close()
+ if err != nil {
+ return false, err
+ }
+
+ if res.StatusCode >= 200 && res.StatusCode < 300 {
+ return true, nil
+ }
+
+ if res.StatusCode != 404 {
+ err := fmt.Errorf("an error happened during the SimulateIndexTemplate query execution, status code: %d", res.StatusCode)
+ if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return false, err
+ }
+
+ return false, nil
+}
+
// Header set a key, value pair in the SimulateIndexTemplate headers map.
func (r *SimulateIndexTemplate) Header(key, value string) *SimulateIndexTemplate {
r.headers.Set(key, value)
@@ -308,7 +298,7 @@ func (r *SimulateIndexTemplate) Header(key, value string) *SimulateIndexTemplate
return r
}
-// Name Index or template name to simulate
+// Name Name of the index to simulate
// API Name: name
func (r *SimulateIndexTemplate) _name(name string) *SimulateIndexTemplate {
r.paramSet |= nameMask
@@ -317,21 +307,8 @@ func (r *SimulateIndexTemplate) _name(name string) *SimulateIndexTemplate {
return r
}
-// Create If `true`, the template passed in the body is only used if no existing
-// templates match the same index patterns. If `false`, the simulation uses
-// the template with the highest priority. Note that the template is not
-// permanently added or updated in either case; it is only used for the
-// simulation.
-// API name: create
-func (r *SimulateIndexTemplate) Create(create bool) *SimulateIndexTemplate {
- r.values.Set("create", strconv.FormatBool(create))
-
- return r
-}
-
// MasterTimeout Period to wait for a connection to the master node. If no response is
-// received
-// before the timeout expires, the request fails and returns an error.
+// received before the timeout expires, the request fails and returns an error.
// API name: master_timeout
func (r *SimulateIndexTemplate) MasterTimeout(duration string) *SimulateIndexTemplate {
r.values.Set("master_timeout", duration)
@@ -347,90 +324,46 @@ func (r *SimulateIndexTemplate) IncludeDefaults(includedefaults bool) *SimulateI
return r
}
-// AllowAutoCreate This setting overrides the value of the `action.auto_create_index` cluster
-// setting.
-// If set to `true` in a template, then indices can be automatically created
-// using that template even if auto-creation of indices is disabled via
-// `actions.auto_create_index`.
-// If set to `false`, then indices or data streams matching the template must
-// always be explicitly created, and may never be automatically created.
-// API name: allow_auto_create
-func (r *SimulateIndexTemplate) AllowAutoCreate(allowautocreate bool) *SimulateIndexTemplate {
- r.req.AllowAutoCreate = &allowautocreate
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *SimulateIndexTemplate) ErrorTrace(errortrace bool) *SimulateIndexTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
return r
}
-// ComposedOf An ordered list of component template names.
-// Component templates are merged in the order specified, meaning that the last
-// component template specified has the highest precedence.
-// API name: composed_of
-func (r *SimulateIndexTemplate) ComposedOf(composedofs ...string) *SimulateIndexTemplate {
- r.req.ComposedOf = composedofs
-
- return r
-}
-
-// DataStream If this object is included, the template is used to create data streams and
-// their backing indices.
-// Supports an empty object.
-// Data streams require a matching index template with a `data_stream` object.
-// API name: data_stream
-func (r *SimulateIndexTemplate) DataStream(datastream *types.DataStreamVisibility) *SimulateIndexTemplate {
-
- r.req.DataStream = datastream
-
- return r
-}
-
-// IndexPatterns Array of wildcard (`*`) expressions used to match the names of data streams
-// and indices during creation.
-// API name: index_patterns
-func (r *SimulateIndexTemplate) IndexPatterns(indices ...string) *SimulateIndexTemplate {
- r.req.IndexPatterns = indices
-
- return r
-}
-
-// Meta_ Optional user metadata about the index template.
-// May have any contents.
-// This map is not automatically generated by Elasticsearch.
-// API name: _meta
-func (r *SimulateIndexTemplate) Meta_(metadata types.Metadata) *SimulateIndexTemplate {
- r.req.Meta_ = metadata
-
- return r
-}
-
-// Priority Priority to determine index template precedence when a new data stream or
-// index is created.
-// The index template with the highest priority is chosen.
-// If no priority is specified the template is treated as though it is of
-// priority 0 (lowest priority).
-// This number is not automatically generated by Elasticsearch.
-// API name: priority
-func (r *SimulateIndexTemplate) Priority(priority int) *SimulateIndexTemplate {
- r.req.Priority = &priority
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *SimulateIndexTemplate) FilterPath(filterpaths ...string) *SimulateIndexTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
return r
}
-// Template Template to be applied.
-// It may optionally include an `aliases`, `mappings`, or `settings`
-// configuration.
-// API name: template
-func (r *SimulateIndexTemplate) Template(template *types.IndexTemplateMapping) *SimulateIndexTemplate {
-
- r.req.Template = template
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *SimulateIndexTemplate) Human(human bool) *SimulateIndexTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
return r
}
-// Version Version number used to manage index templates externally.
-// This number is not automatically generated by Elasticsearch.
-// API name: version
-func (r *SimulateIndexTemplate) Version(versionnumber int64) *SimulateIndexTemplate {
- r.req.Version = &versionnumber
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *SimulateIndexTemplate) Pretty(pretty bool) *SimulateIndexTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulatetemplate/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulatetemplate/request.go
index 95b1b5bcf8..6e3493ff25 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulatetemplate/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulatetemplate/request.go
@@ -16,22 +16,198 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package simulatetemplate
import (
+ "bytes"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "strconv"
+
"github.com/elastic/go-elasticsearch/v8/typedapi/types"
)
// Request holds the request body struct for the package simulatetemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts#L25-L61
-type Request = types.IndexTemplate
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L119
+type Request struct {
+
+ // AllowAutoCreate This setting overrides the value of the `action.auto_create_index` cluster
+ // setting.
+ // If set to `true` in a template, then indices can be automatically created
+ // using that template even if auto-creation of indices is disabled via
+ // `actions.auto_create_index`.
+ // If set to `false`, then indices or data streams matching the template must
+ // always be explicitly created, and may never be automatically created.
+ AllowAutoCreate *bool `json:"allow_auto_create,omitempty"`
+ // ComposedOf An ordered list of component template names.
+ // Component templates are merged in the order specified, meaning that the last
+ // component template specified has the highest precedence.
+ ComposedOf []string `json:"composed_of,omitempty"`
+ // DataStream If this object is included, the template is used to create data streams and
+ // their backing indices.
+ // Supports an empty object.
+ // Data streams require a matching index template with a `data_stream` object.
+ DataStream *types.DataStreamVisibility `json:"data_stream,omitempty"`
+ // Deprecated Marks this index template as deprecated. When creating or updating a
+ // non-deprecated index template
+ // that uses deprecated components, Elasticsearch will emit a deprecation
+ // warning.
+ Deprecated *bool `json:"deprecated,omitempty"`
+ // IgnoreMissingComponentTemplates The configuration option ignore_missing_component_templates can be used when
+ // an index template
+ // references a component template that might not exist
+ IgnoreMissingComponentTemplates []string `json:"ignore_missing_component_templates,omitempty"`
+ // IndexPatterns Array of wildcard (`*`) expressions used to match the names of data streams
+ // and indices during creation.
+ IndexPatterns []string `json:"index_patterns,omitempty"`
+ // Meta_ Optional user metadata about the index template.
+ // May have any contents.
+ // This map is not automatically generated by Elasticsearch.
+ Meta_ types.Metadata `json:"_meta,omitempty"`
+ // Priority Priority to determine index template precedence when a new data stream or
+ // index is created.
+ // The index template with the highest priority is chosen.
+ // If no priority is specified the template is treated as though it is of
+ // priority 0 (lowest priority).
+ // This number is not automatically generated by Elasticsearch.
+ Priority *int64 `json:"priority,omitempty"`
+ // Template Template to be applied.
+ // It may optionally include an `aliases`, `mappings`, or `settings`
+ // configuration.
+ Template *types.IndexTemplateMapping `json:"template,omitempty"`
+ // Version Version number used to manage index templates externally.
+ // This number is not automatically generated by Elasticsearch.
+ Version *int64 `json:"version,omitempty"`
+}
// NewRequest returns a Request
func NewRequest() *Request {
- r := types.NewIndexTemplate()
+ r := &Request{}
return r
}
+
+// FromJSON allows to load an arbitrary json into the request structure
+func (r *Request) FromJSON(data string) (*Request, error) {
+ var req Request
+ err := json.Unmarshal([]byte(data), &req)
+
+ if err != nil {
+ return nil, fmt.Errorf("could not deserialise json into Simulatetemplate request: %w", err)
+ }
+
+ return &req, nil
+}
+
+func (s *Request) UnmarshalJSON(data []byte) error {
+ dec := json.NewDecoder(bytes.NewReader(data))
+
+ for {
+ t, err := dec.Token()
+ if err != nil {
+ if errors.Is(err, io.EOF) {
+ break
+ }
+ return err
+ }
+
+ switch t {
+
+ case "allow_auto_create":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "AllowAutoCreate", err)
+ }
+ s.AllowAutoCreate = &value
+ case bool:
+ s.AllowAutoCreate = &v
+ }
+
+ case "composed_of":
+ if err := dec.Decode(&s.ComposedOf); err != nil {
+ return fmt.Errorf("%s | %w", "ComposedOf", err)
+ }
+
+ case "data_stream":
+ if err := dec.Decode(&s.DataStream); err != nil {
+ return fmt.Errorf("%s | %w", "DataStream", err)
+ }
+
+ case "deprecated":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Deprecated", err)
+ }
+ s.Deprecated = &value
+ case bool:
+ s.Deprecated = &v
+ }
+
+ case "ignore_missing_component_templates":
+ if err := dec.Decode(&s.IgnoreMissingComponentTemplates); err != nil {
+ return fmt.Errorf("%s | %w", "IgnoreMissingComponentTemplates", err)
+ }
+
+ case "index_patterns":
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := new(string)
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "IndexPatterns", err)
+ }
+
+ s.IndexPatterns = append(s.IndexPatterns, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.IndexPatterns); err != nil {
+ return fmt.Errorf("%s | %w", "IndexPatterns", err)
+ }
+ }
+
+ case "_meta":
+ if err := dec.Decode(&s.Meta_); err != nil {
+ return fmt.Errorf("%s | %w", "Meta_", err)
+ }
+
+ case "priority":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseInt(v, 10, 64)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Priority", err)
+ }
+ s.Priority = &value
+ case float64:
+ f := int64(v)
+ s.Priority = &f
+ }
+
+ case "template":
+ if err := dec.Decode(&s.Template); err != nil {
+ return fmt.Errorf("%s | %w", "Template", err)
+ }
+
+ case "version":
+ if err := dec.Decode(&s.Version); err != nil {
+ return fmt.Errorf("%s | %w", "Version", err)
+ }
+
+ }
+ }
+ return nil
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulatetemplate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulatetemplate/response.go
index 3f0c8446df..cc1c8a903d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulatetemplate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulatetemplate/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package simulatetemplate
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package simulatetemplate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L26-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L26-L31
type Response struct {
Overlapping []types.Overlapping `json:"overlapping,omitempty"`
Template types.Template `json:"template"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulatetemplate/simulate_template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulatetemplate/simulate_template.go
index bad3cd2b13..15ec2f7bbd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulatetemplate/simulate_template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulatetemplate/simulate_template.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Simulate resolving the given template name or body
package simulatetemplate
@@ -350,6 +350,57 @@ func (r *SimulateTemplate) IncludeDefaults(includedefaults bool) *SimulateTempla
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *SimulateTemplate) ErrorTrace(errortrace bool) *SimulateTemplate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *SimulateTemplate) FilterPath(filterpaths ...string) *SimulateTemplate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *SimulateTemplate) Human(human bool) *SimulateTemplate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *SimulateTemplate) Pretty(pretty bool) *SimulateTemplate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
+// AllowAutoCreate This setting overrides the value of the `action.auto_create_index` cluster
+// setting.
+// If set to `true` in a template, then indices can be automatically created
+// using that template even if auto-creation of indices is disabled via
+// `actions.auto_create_index`.
+// If set to `false`, then indices or data streams matching the template must
+// always be explicitly created, and may never be automatically created.
// API name: allow_auto_create
func (r *SimulateTemplate) AllowAutoCreate(allowautocreate bool) *SimulateTemplate {
r.req.AllowAutoCreate = &allowautocreate
@@ -372,22 +423,45 @@ func (r *SimulateTemplate) ComposedOf(composedofs ...string) *SimulateTemplate {
// Supports an empty object.
// Data streams require a matching index template with a `data_stream` object.
// API name: data_stream
-func (r *SimulateTemplate) DataStream(datastream *types.IndexTemplateDataStreamConfiguration) *SimulateTemplate {
+func (r *SimulateTemplate) DataStream(datastream *types.DataStreamVisibility) *SimulateTemplate {
r.req.DataStream = datastream
return r
}
-// IndexPatterns Name of the index template.
+// Deprecated Marks this index template as deprecated. When creating or updating a
+// non-deprecated index template
+// that uses deprecated components, Elasticsearch will emit a deprecation
+// warning.
+// API name: deprecated
+func (r *SimulateTemplate) Deprecated(deprecated bool) *SimulateTemplate {
+ r.req.Deprecated = &deprecated
+
+ return r
+}
+
+// IgnoreMissingComponentTemplates The configuration option ignore_missing_component_templates can be used when
+// an index template
+// references a component template that might not exist
+// API name: ignore_missing_component_templates
+func (r *SimulateTemplate) IgnoreMissingComponentTemplates(ignoremissingcomponenttemplates ...string) *SimulateTemplate {
+ r.req.IgnoreMissingComponentTemplates = ignoremissingcomponenttemplates
+
+ return r
+}
+
+// IndexPatterns Array of wildcard (`*`) expressions used to match the names of data streams
+// and indices during creation.
// API name: index_patterns
-func (r *SimulateTemplate) IndexPatterns(names ...string) *SimulateTemplate {
- r.req.IndexPatterns = names
+func (r *SimulateTemplate) IndexPatterns(indices ...string) *SimulateTemplate {
+ r.req.IndexPatterns = indices
return r
}
-// Meta_ Optional user metadata about the index template. May have any contents.
+// Meta_ Optional user metadata about the index template.
+// May have any contents.
// This map is not automatically generated by Elasticsearch.
// API name: _meta
func (r *SimulateTemplate) Meta_(metadata types.Metadata) *SimulateTemplate {
@@ -414,7 +488,7 @@ func (r *SimulateTemplate) Priority(priority int64) *SimulateTemplate {
// It may optionally include an `aliases`, `mappings`, or `settings`
// configuration.
// API name: template
-func (r *SimulateTemplate) Template(template *types.IndexTemplateSummary) *SimulateTemplate {
+func (r *SimulateTemplate) Template(template *types.IndexTemplateMapping) *SimulateTemplate {
r.req.Template = template
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/split/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/split/request.go
index 0bc42c0c47..1b7c345096 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/split/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/split/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package split
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package split
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/split/IndicesSplitRequest.ts#L27-L74
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/split/IndicesSplitRequest.ts#L27-L74
type Request struct {
// Aliases Aliases for the resulting index.
@@ -44,6 +44,7 @@ func NewRequest() *Request {
Aliases: make(map[string]types.Alias, 0),
Settings: make(map[string]json.RawMessage, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/split/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/split/response.go
index 449aa36902..d2eda2e919 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/split/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/split/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package split
// Response holds the response body struct for the package split
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/split/IndicesSplitResponse.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/split/IndicesSplitResponse.ts#L22-L28
type Response struct {
Acknowledged bool `json:"acknowledged"`
Index string `json:"index"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/split/split.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/split/split.go
index b3504c1304..c0f84c78b3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/split/split.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/split/split.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows you to split an existing index into a new index with more primary
// shards.
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -365,6 +366,50 @@ func (r *Split) WaitForActiveShards(waitforactiveshards string) *Split {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Split) ErrorTrace(errortrace bool) *Split {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Split) FilterPath(filterpaths ...string) *Split {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Split) Human(human bool) *Split {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Split) Pretty(pretty bool) *Split {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Aliases Aliases for the resulting index.
// API name: aliases
func (r *Split) Aliases(aliases map[string]types.Alias) *Split {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/stats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/stats/response.go
index 2154df8b9f..56eefa5c07 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/stats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/stats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package stats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/IndicesStatsResponse.ts#L24-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/IndicesStatsResponse.ts#L24-L30
type Response struct {
All_ types.IndicesStats `json:"_all"`
Indices map[string]types.IndicesStats `json:"indices,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/stats/stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/stats/stats.go
index 11f72c51a0..748913ad6f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/stats/stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/stats/stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Provides statistics on operations happening in an index.
package stats
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -297,7 +296,7 @@ func (r Stats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -433,3 +432,47 @@ func (r *Stats) Level(level level.Level) *Stats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Stats) ErrorTrace(errortrace bool) *Stats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Stats) FilterPath(filterpaths ...string) *Stats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Stats) Human(human bool) *Stats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Stats) Pretty(pretty bool) *Stats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/unfreeze/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/unfreeze/response.go
index 79405bd0c9..a0892d0714 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/unfreeze/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/unfreeze/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package unfreeze
// Response holds the response body struct for the package unfreeze
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/unfreeze/IndicesUnfreezeResponse.ts#L20-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/unfreeze/IndicesUnfreezeResponse.ts#L20-L25
type Response struct {
Acknowledged bool `json:"acknowledged"`
ShardsAcknowledged bool `json:"shards_acknowledged"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/unfreeze/unfreeze.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/unfreeze/unfreeze.go
index 8f61d00c4e..9e25781bcb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/unfreeze/unfreeze.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/unfreeze/unfreeze.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Unfreezes an index. When a frozen index is unfrozen, the index goes through
// the normal recovery process and becomes writeable again.
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -264,7 +263,7 @@ func (r Unfreeze) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -366,3 +365,47 @@ func (r *Unfreeze) WaitForActiveShards(waitforactiveshards string) *Unfreeze {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Unfreeze) ErrorTrace(errortrace bool) *Unfreeze {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Unfreeze) FilterPath(filterpaths ...string) *Unfreeze {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Unfreeze) Human(human bool) *Unfreeze {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Unfreeze) Pretty(pretty bool) *Unfreeze {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases/request.go
index 0530c9aa1d..8c486cc318 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatealiases
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package updatealiases
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L51
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L51
type Request struct {
// Actions Actions to perform.
@@ -39,6 +39,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases/response.go
index 06c03804cc..09bad4896e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatealiases
// Response holds the response body struct for the package updatealiases
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/update_aliases/IndicesUpdateAliasesResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/update_aliases/IndicesUpdateAliasesResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases/update_aliases.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases/update_aliases.go
index e95bce1911..b5bb4ea48e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases/update_aliases.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases/update_aliases.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates index aliases.
package updatealiases
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -309,6 +310,50 @@ func (r *UpdateAliases) Timeout(duration string) *UpdateAliases {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *UpdateAliases) ErrorTrace(errortrace bool) *UpdateAliases {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *UpdateAliases) FilterPath(filterpaths ...string) *UpdateAliases {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *UpdateAliases) Human(human bool) *UpdateAliases {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *UpdateAliases) Pretty(pretty bool) *UpdateAliases {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Actions Actions to perform.
// API name: actions
func (r *UpdateAliases) Actions(actions ...types.IndicesAction) *UpdateAliases {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery/request.go
index c4ce20d364..585339f06e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package validatequery
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package validatequery
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/validate_query/IndicesValidateQueryRequest.ts#L25-L111
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/validate_query/IndicesValidateQueryRequest.ts#L25-L111
type Request struct {
// Query Query in the Lucene query string syntax.
@@ -39,6 +39,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery/response.go
index 38641d6518..86d1daa445 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package validatequery
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package validatequery
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L23-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L23-L30
type Response struct {
Error *string `json:"error,omitempty"`
Explanations []types.IndicesValidationExplanation `json:"explanations,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery/validate_query.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery/validate_query.go
index f80859d2f8..3ad56c3bde 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery/validate_query.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery/validate_query.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows a user to validate a potentially expensive query without executing it.
package validatequery
@@ -440,6 +440,50 @@ func (r *ValidateQuery) Q(q string) *ValidateQuery {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ValidateQuery) ErrorTrace(errortrace bool) *ValidateQuery {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ValidateQuery) FilterPath(filterpaths ...string) *ValidateQuery {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ValidateQuery) Human(human bool) *ValidateQuery {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ValidateQuery) Pretty(pretty bool) *ValidateQuery {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Query Query in the Lucene query string syntax.
// API name: query
func (r *ValidateQuery) Query(query *types.Query) *ValidateQuery {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel/delete_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel/delete_model.go
index 32d9317959..965dbb3100 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel/delete_model.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel/delete_model.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Delete model in the Inference API
package deletemodel
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -280,7 +280,7 @@ func (r DeleteModel) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -325,3 +325,47 @@ func (r *DeleteModel) _inferenceid(inferenceid string) *DeleteModel {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteModel) ErrorTrace(errortrace bool) *DeleteModel {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteModel) FilterPath(filterpaths ...string) *DeleteModel {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteModel) Human(human bool) *DeleteModel {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteModel) Pretty(pretty bool) *DeleteModel {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel/response.go
index 28855abc37..91e797faad 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/deletemodel/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletemodel
// Response holds the response body struct for the package deletemodel
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/inference/delete_model/DeleteModelResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/delete_model/DeleteModelResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel/get_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel/get_model.go
index f18e0ec141..5e096af9b2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel/get_model.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel/get_model.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Get a model in the Inference API
package getmodel
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -280,7 +280,7 @@ func (r GetModel) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -325,3 +325,47 @@ func (r *GetModel) _inferenceid(inferenceid string) *GetModel {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetModel) ErrorTrace(errortrace bool) *GetModel {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetModel) FilterPath(filterpaths ...string) *GetModel {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetModel) Human(human bool) *GetModel {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetModel) Pretty(pretty bool) *GetModel {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel/response.go
index bff12a2a96..59a1729cff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/getmodel/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getmodel
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getmodel
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/inference/get_model/GetModelResponse.ts#L22-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/get_model/GetModelResponse.ts#L22-L26
type Response struct {
Models []types.ModelConfigContainer `json:"models"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference/inference.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference/inference.go
index c6e85803c8..626d6033a5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference/inference.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference/inference.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Perform inference on a model
package inference
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -341,6 +342,58 @@ func (r *Inference) _inferenceid(inferenceid string) *Inference {
return r
}
+// Timeout Specifies the amount of time to wait for the inference request to complete.
+// API name: timeout
+func (r *Inference) Timeout(duration string) *Inference {
+ r.values.Set("timeout", duration)
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Inference) ErrorTrace(errortrace bool) *Inference {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Inference) FilterPath(filterpaths ...string) *Inference {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Inference) Human(human bool) *Inference {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Inference) Pretty(pretty bool) *Inference {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Input Text input to the model.
// Either a string or an array of strings.
// API name: input
@@ -350,6 +403,16 @@ func (r *Inference) Input(inputs ...string) *Inference {
return r
}
+// Query Query input, required for rerank task.
+// Not required for other tasks.
+// API name: query
+func (r *Inference) Query(query string) *Inference {
+
+ r.req.Query = &query
+
+ return r
+}
+
// TaskSettings Optional task settings
// API name: task_settings
func (r *Inference) TaskSettings(tasksettings json.RawMessage) *Inference {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference/request.go
index bb283c6a71..523a5f9043 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package inference
@@ -26,16 +26,20 @@ import (
"errors"
"fmt"
"io"
+ "strconv"
)
// Request holds the request body struct for the package inference
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/inference/inference/InferenceRequest.ts#L25-L53
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/inference/InferenceRequest.ts#L26-L66
type Request struct {
// Input Text input to the model.
// Either a string or an array of strings.
Input []string `json:"input"`
+ // Query Query input, required for rerank task.
+ // Not required for other tasks.
+ Query *string `json:"query,omitempty"`
// TaskSettings Optional task settings
TaskSettings json.RawMessage `json:"task_settings,omitempty"`
}
@@ -43,6 +47,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -88,6 +93,18 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
}
+ case "query":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "Query", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.Query = &o
+
case "task_settings":
if err := dec.Decode(&s.TaskSettings); err != nil {
return fmt.Errorf("%s | %w", "TaskSettings", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference/response.go
index 3283c4ef13..eb4e3217c2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/inference/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package inference
@@ -26,8 +26,10 @@ import (
// Response holds the response body struct for the package inference
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/inference/inference/InferenceResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/inference/InferenceResponse.ts#L22-L24
type Response struct {
+ Completion []types.CompletionResult `json:"completion,omitempty"`
+ Rerank []types.RankedDocument `json:"rerank,omitempty"`
SparseEmbedding []types.SparseEmbeddingResult `json:"sparse_embedding,omitempty"`
TextEmbedding []types.TextEmbeddingResult `json:"text_embedding,omitempty"`
TextEmbeddingBytes []types.TextEmbeddingByteResult `json:"text_embedding_bytes,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/put_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/put_model.go
index 9f57f3ca33..64e033ff2d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/put_model.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/put_model.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Configure a model for use in the Inference API
package putmodel
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -341,6 +342,50 @@ func (r *PutModel) _inferenceid(inferenceid string) *PutModel {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutModel) ErrorTrace(errortrace bool) *PutModel {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutModel) FilterPath(filterpaths ...string) *PutModel {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutModel) Human(human bool) *PutModel {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutModel) Pretty(pretty bool) *PutModel {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Service The service type
// API name: service
func (r *PutModel) Service(service string) *PutModel {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/request.go
index 318b6300fa..0574aa903a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putmodel
@@ -26,7 +26,7 @@ import (
// Request holds the request body struct for the package putmodel
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/inference/put_model/PutModelRequest.ts#L25-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/put_model/PutModelRequest.ts#L25-L44
type Request = types.ModelConfig
// NewRequest returns a Request
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/response.go
index 03378ee51b..bcbd34919c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmodel/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putmodel
@@ -28,7 +28,7 @@ import (
// Response holds the response body struct for the package putmodel
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/inference/put_model/PutModelResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/put_model/PutModelResponse.ts#L22-L24
type Response struct {
// ModelId The model Id
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletepipeline/delete_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletepipeline/delete_pipeline.go
index e5438be7eb..19d9c0a95e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletepipeline/delete_pipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletepipeline/delete_pipeline.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes a pipeline.
package deletepipeline
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r DeletePipeline) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -319,3 +319,47 @@ func (r *DeletePipeline) Timeout(duration string) *DeletePipeline {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeletePipeline) ErrorTrace(errortrace bool) *DeletePipeline {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeletePipeline) FilterPath(filterpaths ...string) *DeletePipeline {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeletePipeline) Human(human bool) *DeletePipeline {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeletePipeline) Pretty(pretty bool) *DeletePipeline {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletepipeline/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletepipeline/response.go
index 82f1e98b69..397074e4ef 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletepipeline/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletepipeline/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletepipeline
// Response holds the response body struct for the package deletepipeline
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/delete_pipeline/DeletePipelineResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/delete_pipeline/DeletePipelineResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/geoipstats/geo_ip_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/geoipstats/geo_ip_stats.go
index fa498cd340..4147a13c61 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/geoipstats/geo_ip_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/geoipstats/geo_ip_stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns statistical information about geoip databases
package geoipstats
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -250,7 +250,7 @@ func (r GeoIpStats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -277,3 +277,47 @@ func (r *GeoIpStats) Header(key, value string) *GeoIpStats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GeoIpStats) ErrorTrace(errortrace bool) *GeoIpStats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GeoIpStats) FilterPath(filterpaths ...string) *GeoIpStats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GeoIpStats) Human(human bool) *GeoIpStats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GeoIpStats) Pretty(pretty bool) *GeoIpStats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/geoipstats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/geoipstats/response.go
index 08f6ba034e..0d7c713123 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/geoipstats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/geoipstats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package geoipstats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package geoipstats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/geo_ip_stats/IngestGeoIpStatsResponse.ts#L24-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/geo_ip_stats/IngestGeoIpStatsResponse.ts#L24-L31
type Response struct {
// Nodes Downloaded GeoIP2 databases for each node.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getpipeline/get_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getpipeline/get_pipeline.go
index 7802792241..73bc2fbd5e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getpipeline/get_pipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getpipeline/get_pipeline.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns a pipeline.
package getpipeline
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -268,7 +267,7 @@ func (r GetPipeline) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -324,3 +323,47 @@ func (r *GetPipeline) Summary(summary bool) *GetPipeline {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetPipeline) ErrorTrace(errortrace bool) *GetPipeline {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetPipeline) FilterPath(filterpaths ...string) *GetPipeline {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetPipeline) Human(human bool) *GetPipeline {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetPipeline) Pretty(pretty bool) *GetPipeline {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getpipeline/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getpipeline/response.go
index 6464644753..e561ab367b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getpipeline/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getpipeline/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getpipeline
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getpipeline
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/get_pipeline/GetPipelineResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/get_pipeline/GetPipelineResponse.ts#L23-L26
type Response map[string]types.IngestPipeline
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/processorgrok/processor_grok.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/processorgrok/processor_grok.go
index 495494deb8..a8d157d0a7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/processorgrok/processor_grok.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/processorgrok/processor_grok.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns a list of the built-in patterns.
package processorgrok
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -250,7 +250,7 @@ func (r ProcessorGrok) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -277,3 +277,47 @@ func (r *ProcessorGrok) Header(key, value string) *ProcessorGrok {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ProcessorGrok) ErrorTrace(errortrace bool) *ProcessorGrok {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ProcessorGrok) FilterPath(filterpaths ...string) *ProcessorGrok {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ProcessorGrok) Human(human bool) *ProcessorGrok {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ProcessorGrok) Pretty(pretty bool) *ProcessorGrok {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/processorgrok/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/processorgrok/response.go
index ce944d1f0e..c66fae2fee 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/processorgrok/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/processorgrok/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package processorgrok
// Response holds the response body struct for the package processorgrok
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/processor_grok/GrokProcessorPatternsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/processor_grok/GrokProcessorPatternsResponse.ts#L22-L24
type Response struct {
Patterns map[string]string `json:"patterns"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline/put_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline/put_pipeline.go
index 0497d19756..b41323ae59 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline/put_pipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline/put_pipeline.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates or updates a pipeline.
package putpipeline
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -340,6 +341,50 @@ func (r *PutPipeline) IfVersion(versionnumber string) *PutPipeline {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutPipeline) ErrorTrace(errortrace bool) *PutPipeline {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutPipeline) FilterPath(filterpaths ...string) *PutPipeline {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutPipeline) Human(human bool) *PutPipeline {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutPipeline) Pretty(pretty bool) *PutPipeline {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Description Description of the ingest pipeline.
// API name: description
func (r *PutPipeline) Description(description string) *PutPipeline {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline/request.go
index 4143c40e8d..ee270b74de 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putpipeline
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package putpipeline
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/put_pipeline/PutPipelineRequest.ts#L25-L77
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/put_pipeline/PutPipelineRequest.ts#L25-L77
type Request struct {
// Description Description of the ingest pipeline.
@@ -60,6 +60,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline/response.go
index 2bccd1d294..3193540c2f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putpipeline
// Response holds the response body struct for the package putpipeline
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/put_pipeline/PutPipelineResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/put_pipeline/PutPipelineResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate/request.go
index 42929fd441..89caf64ab1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package simulate
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package simulate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/simulate/SimulatePipelineRequest.ts#L25-L57
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/simulate/SimulatePipelineRequest.ts#L25-L57
type Request struct {
// Docs Sample documents to test in the pipeline.
@@ -45,6 +45,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate/response.go
index 72d4f30660..a9323e194b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package simulate
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package simulate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/simulate/SimulatePipelineResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/simulate/SimulatePipelineResponse.ts#L22-L24
type Response struct {
Docs []types.PipelineSimulation `json:"docs"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate/simulate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate/simulate.go
index 688f71c829..7caa6be5eb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate/simulate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate/simulate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows to simulate a pipeline with example documents.
package simulate
@@ -335,6 +335,50 @@ func (r *Simulate) Verbose(verbose bool) *Simulate {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Simulate) ErrorTrace(errortrace bool) *Simulate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Simulate) FilterPath(filterpaths ...string) *Simulate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Simulate) Human(human bool) *Simulate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Simulate) Pretty(pretty bool) *Simulate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Docs Sample documents to test in the pipeline.
// API name: docs
func (r *Simulate) Docs(docs ...types.Document) *Simulate {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/delete/delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/delete/delete.go
index 5e797dadc6..89bd85958f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/delete/delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/delete/delete.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes licensing information for the cluster
package delete
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -246,7 +246,7 @@ func (r Delete) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -273,3 +273,47 @@ func (r *Delete) Header(key, value string) *Delete {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Delete) ErrorTrace(errortrace bool) *Delete {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Delete) FilterPath(filterpaths ...string) *Delete {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Delete) Human(human bool) *Delete {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Delete) Pretty(pretty bool) *Delete {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/delete/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/delete/response.go
index abbab94e2f..6b92505f20 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/delete/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/delete/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package delete
// Response holds the response body struct for the package delete
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/license/delete/DeleteLicenseResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/delete/DeleteLicenseResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/get/get.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/get/get.go
index 88304f9f38..92cc33b09d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/get/get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/get/get.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves licensing information for the cluster
package get
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -247,7 +246,7 @@ func (r Get) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -294,3 +293,47 @@ func (r *Get) Local(local bool) *Get {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Get) ErrorTrace(errortrace bool) *Get {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Get) FilterPath(filterpaths ...string) *Get {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Get) Human(human bool) *Get {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Get) Pretty(pretty bool) *Get {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/get/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/get/response.go
index 54addfda55..341e1daa6b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/get/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/get/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package get
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package get
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/license/get/GetLicenseResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/get/GetLicenseResponse.ts#L22-L24
type Response struct {
License types.LicenseInformation `json:"license"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/getbasicstatus/get_basic_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/getbasicstatus/get_basic_status.go
index 344f871fb4..992e0a6bb6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/getbasicstatus/get_basic_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/getbasicstatus/get_basic_status.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information about the status of the basic license.
package getbasicstatus
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r GetBasicStatus) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *GetBasicStatus) Header(key, value string) *GetBasicStatus {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetBasicStatus) ErrorTrace(errortrace bool) *GetBasicStatus {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetBasicStatus) FilterPath(filterpaths ...string) *GetBasicStatus {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetBasicStatus) Human(human bool) *GetBasicStatus {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetBasicStatus) Pretty(pretty bool) *GetBasicStatus {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/getbasicstatus/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/getbasicstatus/response.go
index 4326de4cfb..d7fb2be535 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/getbasicstatus/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/getbasicstatus/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getbasicstatus
// Response holds the response body struct for the package getbasicstatus
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/license/get_basic_status/GetBasicLicenseStatusResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/get_basic_status/GetBasicLicenseStatusResponse.ts#L20-L22
type Response struct {
EligibleToStartBasic bool `json:"eligible_to_start_basic"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/gettrialstatus/get_trial_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/gettrialstatus/get_trial_status.go
index c04be24d30..0f6ea58b15 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/gettrialstatus/get_trial_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/gettrialstatus/get_trial_status.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information about the status of the trial license.
package gettrialstatus
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r GetTrialStatus) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *GetTrialStatus) Header(key, value string) *GetTrialStatus {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetTrialStatus) ErrorTrace(errortrace bool) *GetTrialStatus {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetTrialStatus) FilterPath(filterpaths ...string) *GetTrialStatus {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetTrialStatus) Human(human bool) *GetTrialStatus {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetTrialStatus) Pretty(pretty bool) *GetTrialStatus {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/gettrialstatus/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/gettrialstatus/response.go
index 0beb0b212c..23d13ce60a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/gettrialstatus/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/gettrialstatus/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package gettrialstatus
// Response holds the response body struct for the package gettrialstatus
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/license/get_trial_status/GetTrialLicenseStatusResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/get_trial_status/GetTrialLicenseStatusResponse.ts#L20-L22
type Response struct {
EligibleToStartTrial bool `json:"eligible_to_start_trial"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/post/post.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/post/post.go
index 7a04473f78..a3d45adf0b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/post/post.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/post/post.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates the license for the cluster.
package post
@@ -298,6 +298,50 @@ func (r *Post) Acknowledge(acknowledge bool) *Post {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Post) ErrorTrace(errortrace bool) *Post {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Post) FilterPath(filterpaths ...string) *Post {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Post) Human(human bool) *Post {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Post) Pretty(pretty bool) *Post {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: license
func (r *Post) License(license *types.License) *Post {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/post/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/post/request.go
index 3c750a1b90..ddef8b1061 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/post/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/post/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package post
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package post
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/license/post/PostLicenseRequest.ts#L23-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/post/PostLicenseRequest.ts#L23-L43
type Request struct {
License *types.License `json:"license,omitempty"`
// Licenses A sequence of one or more JSON documents containing the license information.
@@ -39,6 +39,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/post/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/post/response.go
index b625bc5f59..3f239e5f83 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/post/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/post/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package post
@@ -27,7 +27,7 @@ import (
// Response holds the response body struct for the package post
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/license/post/PostLicenseResponse.ts#L23-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/post/PostLicenseResponse.ts#L23-L29
type Response struct {
Acknowledge *types.Acknowledgement `json:"acknowledge,omitempty"`
Acknowledged bool `json:"acknowledged"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststartbasic/post_start_basic.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststartbasic/post_start_basic.go
index 0e39abff0a..c937fe4002 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststartbasic/post_start_basic.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststartbasic/post_start_basic.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Starts an indefinite basic license.
package poststartbasic
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -249,7 +248,7 @@ func (r PostStartBasic) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -284,3 +283,47 @@ func (r *PostStartBasic) Acknowledge(acknowledge bool) *PostStartBasic {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PostStartBasic) ErrorTrace(errortrace bool) *PostStartBasic {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PostStartBasic) FilterPath(filterpaths ...string) *PostStartBasic {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PostStartBasic) Human(human bool) *PostStartBasic {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PostStartBasic) Pretty(pretty bool) *PostStartBasic {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststartbasic/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststartbasic/response.go
index 8037240290..83c6bb22ad 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststartbasic/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststartbasic/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package poststartbasic
@@ -33,7 +33,7 @@ import (
// Response holds the response body struct for the package poststartbasic
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/license/post_start_basic/StartBasicLicenseResponse.ts#L23-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/post_start_basic/StartBasicLicenseResponse.ts#L23-L31
type Response struct {
Acknowledge map[string][]string `json:"acknowledge,omitempty"`
Acknowledged bool `json:"acknowledged"`
@@ -90,7 +90,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "acknowledged":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +104,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "basic_was_started":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststarttrial/post_start_trial.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststarttrial/post_start_trial.go
index 40b5b2ef9c..554ce90171 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststarttrial/post_start_trial.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststarttrial/post_start_trial.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// starts a limited time trial license.
package poststarttrial
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -249,7 +248,7 @@ func (r PostStartTrial) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -291,3 +290,47 @@ func (r *PostStartTrial) TypeQueryString(typequerystring string) *PostStartTrial
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PostStartTrial) ErrorTrace(errortrace bool) *PostStartTrial {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PostStartTrial) FilterPath(filterpaths ...string) *PostStartTrial {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PostStartTrial) Human(human bool) *PostStartTrial {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PostStartTrial) Pretty(pretty bool) *PostStartTrial {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststarttrial/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststarttrial/response.go
index 3334559f8e..95aa698504 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststarttrial/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/license/poststarttrial/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package poststarttrial
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package poststarttrial
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/license/post_start_trial/StartTrialLicenseResponse.ts#L22-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/post_start_trial/StartTrialLicenseResponse.ts#L22-L29
type Response struct {
Acknowledged bool `json:"acknowledged"`
ErrorMessage *string `json:"error_message,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/deletepipeline/delete_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/deletepipeline/delete_pipeline.go
index e1e85e93b8..69f8e860c7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/deletepipeline/delete_pipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/deletepipeline/delete_pipeline.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes Logstash Pipelines used by Central Management
package deletepipeline
@@ -26,9 +26,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -211,7 +211,7 @@ func (r DeletePipeline) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -247,3 +247,47 @@ func (r *DeletePipeline) _id(id string) *DeletePipeline {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeletePipeline) ErrorTrace(errortrace bool) *DeletePipeline {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeletePipeline) FilterPath(filterpaths ...string) *DeletePipeline {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeletePipeline) Human(human bool) *DeletePipeline {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeletePipeline) Pretty(pretty bool) *DeletePipeline {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/getpipeline/get_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/getpipeline/get_pipeline.go
index 0881101963..7533d77f99 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/getpipeline/get_pipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/getpipeline/get_pipeline.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves Logstash Pipelines used by Central Management
package getpipeline
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -267,7 +267,7 @@ func (r GetPipeline) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -303,3 +303,47 @@ func (r *GetPipeline) Id(id string) *GetPipeline {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetPipeline) ErrorTrace(errortrace bool) *GetPipeline {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetPipeline) FilterPath(filterpaths ...string) *GetPipeline {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetPipeline) Human(human bool) *GetPipeline {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetPipeline) Pretty(pretty bool) *GetPipeline {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/getpipeline/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/getpipeline/response.go
index 2f03820b91..0a7c5aeb90 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/getpipeline/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/getpipeline/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getpipeline
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getpipeline
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/logstash/get_pipeline/LogstashGetPipelineResponse.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/logstash/get_pipeline/LogstashGetPipelineResponse.ts#L24-L27
type Response map[string]types.LogstashPipeline
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/putpipeline/put_pipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/putpipeline/put_pipeline.go
index 7bc93787c2..137c3420c0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/putpipeline/put_pipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/putpipeline/put_pipeline.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Adds and updates Logstash Pipelines used for Central Management
package putpipeline
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -260,6 +261,50 @@ func (r *PutPipeline) _id(id string) *PutPipeline {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutPipeline) ErrorTrace(errortrace bool) *PutPipeline {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutPipeline) FilterPath(filterpaths ...string) *PutPipeline {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutPipeline) Human(human bool) *PutPipeline {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutPipeline) Pretty(pretty bool) *PutPipeline {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Description Description of the pipeline.
// This description is not used by Elasticsearch or Logstash.
// API name: description
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/putpipeline/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/putpipeline/request.go
index 73c64e8855..75bd156a1d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/putpipeline/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/logstash/putpipeline/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putpipeline
@@ -26,7 +26,7 @@ import (
// Request holds the request body struct for the package putpipeline
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L39
type Request = types.LogstashPipeline
// NewRequest returns a Request
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/deprecations/deprecations.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/deprecations/deprecations.go
index 9f873b036a..2524d1a30c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/deprecations/deprecations.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/deprecations/deprecations.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information about different cluster, node, and index level settings
// that use deprecated features that will be removed or changed in the next
@@ -29,9 +29,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -271,7 +271,7 @@ func (r Deprecations) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -308,3 +308,47 @@ func (r *Deprecations) Index(index string) *Deprecations {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Deprecations) ErrorTrace(errortrace bool) *Deprecations {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Deprecations) FilterPath(filterpaths ...string) *Deprecations {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Deprecations) Human(human bool) *Deprecations {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Deprecations) Pretty(pretty bool) *Deprecations {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/deprecations/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/deprecations/response.go
index d57678021a..bdb913b1d3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/deprecations/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/deprecations/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deprecations
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package deprecations
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/migration/deprecations/DeprecationInfoResponse.ts#L23-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/deprecations/DeprecationInfoResponse.ts#L23-L30
type Response struct {
ClusterSettings []types.Deprecation `json:"cluster_settings"`
IndexSettings map[string][]types.Deprecation `json:"index_settings"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/getfeatureupgradestatus/get_feature_upgrade_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/getfeatureupgradestatus/get_feature_upgrade_status.go
index 6cf15cc804..6ded8b99d7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/getfeatureupgradestatus/get_feature_upgrade_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/getfeatureupgradestatus/get_feature_upgrade_status.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Find out whether system features need to be upgraded or not
package getfeatureupgradestatus
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r GetFeatureUpgradeStatus) IsSuccess(providedCtx context.Context) (bool, e
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *GetFeatureUpgradeStatus) Header(key, value string) *GetFeatureUpgradeSt
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetFeatureUpgradeStatus) ErrorTrace(errortrace bool) *GetFeatureUpgradeStatus {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetFeatureUpgradeStatus) FilterPath(filterpaths ...string) *GetFeatureUpgradeStatus {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetFeatureUpgradeStatus) Human(human bool) *GetFeatureUpgradeStatus {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetFeatureUpgradeStatus) Pretty(pretty bool) *GetFeatureUpgradeStatus {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/getfeatureupgradestatus/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/getfeatureupgradestatus/response.go
index add344a3d4..4d12c92d17 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/getfeatureupgradestatus/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/getfeatureupgradestatus/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getfeatureupgradestatus
@@ -27,7 +27,7 @@ import (
// Response holds the response body struct for the package getfeatureupgradestatus
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L23-L28
type Response struct {
Features []types.GetMigrationFeature `json:"features"`
MigrationStatus migrationstatus.MigrationStatus `json:"migration_status"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/postfeatureupgrade/post_feature_upgrade.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/postfeatureupgrade/post_feature_upgrade.go
index 84f00ef761..a9e6c85d9d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/postfeatureupgrade/post_feature_upgrade.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/postfeatureupgrade/post_feature_upgrade.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Begin upgrades for system features
package postfeatureupgrade
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r PostFeatureUpgrade) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *PostFeatureUpgrade) Header(key, value string) *PostFeatureUpgrade {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PostFeatureUpgrade) ErrorTrace(errortrace bool) *PostFeatureUpgrade {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PostFeatureUpgrade) FilterPath(filterpaths ...string) *PostFeatureUpgrade {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PostFeatureUpgrade) Human(human bool) *PostFeatureUpgrade {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PostFeatureUpgrade) Pretty(pretty bool) *PostFeatureUpgrade {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/postfeatureupgrade/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/postfeatureupgrade/response.go
index 08ef591a7b..a4b9ff9e59 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/postfeatureupgrade/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/migration/postfeatureupgrade/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package postfeatureupgrade
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package postfeatureupgrade
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L20-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L20-L25
type Response struct {
Accepted bool `json:"accepted"`
Features []types.PostMigrationFeature `json:"features"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/cleartrainedmodeldeploymentcache/clear_trained_model_deployment_cache.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/cleartrainedmodeldeploymentcache/clear_trained_model_deployment_cache.go
index fcdba502ea..c0a86579c2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/cleartrainedmodeldeploymentcache/clear_trained_model_deployment_cache.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/cleartrainedmodeldeploymentcache/clear_trained_model_deployment_cache.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Clear the cached results from a trained model deployment
package cleartrainedmodeldeploymentcache
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -274,7 +274,7 @@ func (r ClearTrainedModelDeploymentCache) IsSuccess(providedCtx context.Context)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -310,3 +310,47 @@ func (r *ClearTrainedModelDeploymentCache) _modelid(modelid string) *ClearTraine
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ClearTrainedModelDeploymentCache) ErrorTrace(errortrace bool) *ClearTrainedModelDeploymentCache {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ClearTrainedModelDeploymentCache) FilterPath(filterpaths ...string) *ClearTrainedModelDeploymentCache {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ClearTrainedModelDeploymentCache) Human(human bool) *ClearTrainedModelDeploymentCache {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ClearTrainedModelDeploymentCache) Pretty(pretty bool) *ClearTrainedModelDeploymentCache {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/cleartrainedmodeldeploymentcache/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/cleartrainedmodeldeploymentcache/response.go
index 5403d43bf2..81fb160dfc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/cleartrainedmodeldeploymentcache/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/cleartrainedmodeldeploymentcache/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package cleartrainedmodeldeploymentcache
// Response holds the response body struct for the package cleartrainedmodeldeploymentcache
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheResponse.ts#L20-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheResponse.ts#L20-L24
type Response struct {
Cleared bool `json:"cleared"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob/close_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob/close_job.go
index 9da3d51f48..453ff35dde 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob/close_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob/close_job.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Closes one or more anomaly detection jobs. A job can be opened and closed
// multiple times throughout its lifecycle.
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -322,6 +323,50 @@ func (r *CloseJob) _jobid(jobid string) *CloseJob {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *CloseJob) ErrorTrace(errortrace bool) *CloseJob {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *CloseJob) FilterPath(filterpaths ...string) *CloseJob {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *CloseJob) Human(human bool) *CloseJob {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *CloseJob) Pretty(pretty bool) *CloseJob {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AllowNoMatch Refer to the description for the `allow_no_match` query parameter.
// API name: allow_no_match
func (r *CloseJob) AllowNoMatch(allownomatch bool) *CloseJob {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob/request.go
index cf09161f2a..3a41b54fe0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package closejob
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package closejob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/close_job/MlCloseJobRequest.ts#L24-L77
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/close_job/MlCloseJobRequest.ts#L24-L77
type Request struct {
// AllowNoMatch Refer to the description for the `allow_no_match` query parameter.
@@ -47,6 +47,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -77,7 +78,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "allow_no_match":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +92,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "force":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob/response.go
index 5aeb99d8c8..227a8b65a2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package closejob
// Response holds the response body struct for the package closejob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/close_job/MlCloseJobResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/close_job/MlCloseJobResponse.ts#L20-L22
type Response struct {
Closed bool `json:"closed"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendar/delete_calendar.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendar/delete_calendar.go
index 3bfe1f5935..2a9fcc97b7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendar/delete_calendar.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendar/delete_calendar.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes a calendar.
package deletecalendar
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r DeleteCalendar) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *DeleteCalendar) _calendarid(calendarid string) *DeleteCalendar {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteCalendar) ErrorTrace(errortrace bool) *DeleteCalendar {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteCalendar) FilterPath(filterpaths ...string) *DeleteCalendar {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteCalendar) Human(human bool) *DeleteCalendar {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteCalendar) Pretty(pretty bool) *DeleteCalendar {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendar/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendar/response.go
index 06ef4e8913..f827945111 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendar/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendar/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletecalendar
// Response holds the response body struct for the package deletecalendar
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/delete_calendar/MlDeleteCalendarResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_calendar/MlDeleteCalendarResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarevent/delete_calendar_event.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarevent/delete_calendar_event.go
index 335fd71da5..63c5f8c9cb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarevent/delete_calendar_event.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarevent/delete_calendar_event.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes scheduled events from a calendar.
package deletecalendarevent
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -275,7 +275,7 @@ func (r DeleteCalendarEvent) IsSuccess(providedCtx context.Context) (bool, error
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -321,3 +321,47 @@ func (r *DeleteCalendarEvent) _eventid(eventid string) *DeleteCalendarEvent {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteCalendarEvent) ErrorTrace(errortrace bool) *DeleteCalendarEvent {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteCalendarEvent) FilterPath(filterpaths ...string) *DeleteCalendarEvent {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteCalendarEvent) Human(human bool) *DeleteCalendarEvent {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteCalendarEvent) Pretty(pretty bool) *DeleteCalendarEvent {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarevent/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarevent/response.go
index bb8f8a95e0..1514799e1f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarevent/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarevent/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletecalendarevent
// Response holds the response body struct for the package deletecalendarevent
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/delete_calendar_event/MlDeleteCalendarEventResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_calendar_event/MlDeleteCalendarEventResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarjob/delete_calendar_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarjob/delete_calendar_job.go
index f3ad8b21f3..ec7099c159 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarjob/delete_calendar_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarjob/delete_calendar_job.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes anomaly detection jobs from a calendar.
package deletecalendarjob
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -275,7 +275,7 @@ func (r DeleteCalendarJob) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -322,3 +322,47 @@ func (r *DeleteCalendarJob) _jobid(jobid string) *DeleteCalendarJob {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteCalendarJob) ErrorTrace(errortrace bool) *DeleteCalendarJob {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteCalendarJob) FilterPath(filterpaths ...string) *DeleteCalendarJob {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteCalendarJob) Human(human bool) *DeleteCalendarJob {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteCalendarJob) Pretty(pretty bool) *DeleteCalendarJob {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarjob/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarjob/response.go
index 0dd4a7a65c..f069da48c5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarjob/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarjob/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletecalendarjob
@@ -31,7 +31,7 @@ import (
// Response holds the response body struct for the package deletecalendarjob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/delete_calendar_job/MlDeleteCalendarJobResponse.ts#L22-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_calendar_job/MlDeleteCalendarJobResponse.ts#L22-L31
type Response struct {
// CalendarId A string that uniquely identifies a calendar.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedatafeed/delete_datafeed.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedatafeed/delete_datafeed.go
index 10c3e08889..0ff62a8e9f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedatafeed/delete_datafeed.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedatafeed/delete_datafeed.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an existing datafeed.
package deletedatafeed
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -263,7 +262,7 @@ func (r DeleteDatafeed) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -311,3 +310,47 @@ func (r *DeleteDatafeed) Force(force bool) *DeleteDatafeed {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteDatafeed) ErrorTrace(errortrace bool) *DeleteDatafeed {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteDatafeed) FilterPath(filterpaths ...string) *DeleteDatafeed {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteDatafeed) Human(human bool) *DeleteDatafeed {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteDatafeed) Pretty(pretty bool) *DeleteDatafeed {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedatafeed/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedatafeed/response.go
index 950bbbb936..d48e7a034a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedatafeed/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedatafeed/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletedatafeed
// Response holds the response body struct for the package deletedatafeed
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/delete_datafeed/MlDeleteDatafeedResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_datafeed/MlDeleteDatafeedResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedataframeanalytics/delete_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedataframeanalytics/delete_data_frame_analytics.go
index 49ff57ff6b..cea3d7c695 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedataframeanalytics/delete_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedataframeanalytics/delete_data_frame_analytics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an existing data frame analytics job.
package deletedataframeanalytics
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r DeleteDataFrameAnalytics) IsSuccess(providedCtx context.Context) (bool,
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -318,3 +317,47 @@ func (r *DeleteDataFrameAnalytics) Timeout(duration string) *DeleteDataFrameAnal
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteDataFrameAnalytics) ErrorTrace(errortrace bool) *DeleteDataFrameAnalytics {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteDataFrameAnalytics) FilterPath(filterpaths ...string) *DeleteDataFrameAnalytics {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteDataFrameAnalytics) Human(human bool) *DeleteDataFrameAnalytics {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteDataFrameAnalytics) Pretty(pretty bool) *DeleteDataFrameAnalytics {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedataframeanalytics/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedataframeanalytics/response.go
index 01cc85a3ea..4073681508 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedataframeanalytics/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedataframeanalytics/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletedataframeanalytics
// Response holds the response body struct for the package deletedataframeanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteexpireddata/delete_expired_data.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteexpireddata/delete_expired_data.go
index 314f737648..566b7d3d2e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteexpireddata/delete_expired_data.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteexpireddata/delete_expired_data.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes expired and unused machine learning data.
package deleteexpireddata
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -320,6 +321,50 @@ func (r *DeleteExpiredData) JobId(jobid string) *DeleteExpiredData {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteExpiredData) ErrorTrace(errortrace bool) *DeleteExpiredData {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteExpiredData) FilterPath(filterpaths ...string) *DeleteExpiredData {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteExpiredData) Human(human bool) *DeleteExpiredData {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteExpiredData) Pretty(pretty bool) *DeleteExpiredData {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// RequestsPerSecond The desired requests per second for the deletion processes. The default
// behavior is no throttling.
// API name: requests_per_second
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteexpireddata/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteexpireddata/request.go
index f93d851a0d..ff4743d371 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteexpireddata/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteexpireddata/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deleteexpireddata
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package deleteexpireddata
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L72
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L72
type Request struct {
// RequestsPerSecond The desired requests per second for the deletion processes. The default
@@ -46,6 +46,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -76,7 +77,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "requests_per_second":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteexpireddata/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteexpireddata/response.go
index 4dbc9f5e96..f9836b90ac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteexpireddata/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteexpireddata/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deleteexpireddata
// Response holds the response body struct for the package deleteexpireddata
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/delete_expired_data/MlDeleteExpiredDataResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_expired_data/MlDeleteExpiredDataResponse.ts#L20-L22
type Response struct {
Deleted bool `json:"deleted"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletefilter/delete_filter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletefilter/delete_filter.go
index dd2d27f2d2..89b49c84d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletefilter/delete_filter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletefilter/delete_filter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes a filter.
package deletefilter
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r DeleteFilter) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *DeleteFilter) _filterid(filterid string) *DeleteFilter {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteFilter) ErrorTrace(errortrace bool) *DeleteFilter {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteFilter) FilterPath(filterpaths ...string) *DeleteFilter {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteFilter) Human(human bool) *DeleteFilter {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteFilter) Pretty(pretty bool) *DeleteFilter {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletefilter/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletefilter/response.go
index 2e6bcfff1b..5f7217636d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletefilter/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletefilter/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletefilter
// Response holds the response body struct for the package deletefilter
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/delete_filter/MlDeleteFilterResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_filter/MlDeleteFilterResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteforecast/delete_forecast.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteforecast/delete_forecast.go
index 865113894f..18c29e16e6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteforecast/delete_forecast.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteforecast/delete_forecast.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes forecasts from a machine learning job.
package deleteforecast
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -289,7 +288,7 @@ func (r DeleteForecast) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -357,3 +356,47 @@ func (r *DeleteForecast) Timeout(duration string) *DeleteForecast {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteForecast) ErrorTrace(errortrace bool) *DeleteForecast {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteForecast) FilterPath(filterpaths ...string) *DeleteForecast {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteForecast) Human(human bool) *DeleteForecast {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteForecast) Pretty(pretty bool) *DeleteForecast {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteforecast/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteforecast/response.go
index 4fea9acea1..3c09a4ea20 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteforecast/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteforecast/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deleteforecast
// Response holds the response body struct for the package deleteforecast
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/delete_forecast/MlDeleteForecastResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_forecast/MlDeleteForecastResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletejob/delete_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletejob/delete_job.go
index aa20db1f75..b497280634 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletejob/delete_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletejob/delete_job.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an existing anomaly detection job.
package deletejob
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -263,7 +262,7 @@ func (r DeleteJob) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -328,3 +327,47 @@ func (r *DeleteJob) WaitForCompletion(waitforcompletion bool) *DeleteJob {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteJob) ErrorTrace(errortrace bool) *DeleteJob {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteJob) FilterPath(filterpaths ...string) *DeleteJob {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteJob) Human(human bool) *DeleteJob {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteJob) Pretty(pretty bool) *DeleteJob {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletejob/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletejob/response.go
index c90ed7cc45..0255173c23 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletejob/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletejob/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletejob
// Response holds the response body struct for the package deletejob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/delete_job/MlDeleteJobResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_job/MlDeleteJobResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletemodelsnapshot/delete_model_snapshot.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletemodelsnapshot/delete_model_snapshot.go
index ef12eb4a09..e9080f09a1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletemodelsnapshot/delete_model_snapshot.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletemodelsnapshot/delete_model_snapshot.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an existing model snapshot.
package deletemodelsnapshot
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -275,7 +275,7 @@ func (r DeleteModelSnapshot) IsSuccess(providedCtx context.Context) (bool, error
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -320,3 +320,47 @@ func (r *DeleteModelSnapshot) _snapshotid(snapshotid string) *DeleteModelSnapsho
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteModelSnapshot) ErrorTrace(errortrace bool) *DeleteModelSnapshot {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteModelSnapshot) FilterPath(filterpaths ...string) *DeleteModelSnapshot {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteModelSnapshot) Human(human bool) *DeleteModelSnapshot {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteModelSnapshot) Pretty(pretty bool) *DeleteModelSnapshot {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletemodelsnapshot/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletemodelsnapshot/response.go
index 19348ddb65..8de97d5453 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletemodelsnapshot/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletemodelsnapshot/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletemodelsnapshot
// Response holds the response body struct for the package deletemodelsnapshot
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodel/delete_trained_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodel/delete_trained_model.go
index f50f0078c0..273396a3b5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodel/delete_trained_model.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodel/delete_trained_model.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an existing trained inference model that is currently not referenced
// by an ingest pipeline.
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r DeleteTrainedModel) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -310,3 +309,47 @@ func (r *DeleteTrainedModel) Force(force bool) *DeleteTrainedModel {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteTrainedModel) ErrorTrace(errortrace bool) *DeleteTrainedModel {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteTrainedModel) FilterPath(filterpaths ...string) *DeleteTrainedModel {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteTrainedModel) Human(human bool) *DeleteTrainedModel {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteTrainedModel) Pretty(pretty bool) *DeleteTrainedModel {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodel/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodel/response.go
index 1df931a0a3..3e568d462d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodel/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodel/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletetrainedmodel
// Response holds the response body struct for the package deletetrainedmodel
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/delete_trained_model/MlDeleteTrainedModelResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_trained_model/MlDeleteTrainedModelResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodelalias/delete_trained_model_alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodelalias/delete_trained_model_alias.go
index e20af0bb44..339888c34e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodelalias/delete_trained_model_alias.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodelalias/delete_trained_model_alias.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes a model alias that refers to the trained model
package deletetrainedmodelalias
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -281,7 +281,7 @@ func (r DeleteTrainedModelAlias) IsSuccess(providedCtx context.Context) (bool, e
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -326,3 +326,47 @@ func (r *DeleteTrainedModelAlias) _modelid(modelid string) *DeleteTrainedModelAl
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteTrainedModelAlias) ErrorTrace(errortrace bool) *DeleteTrainedModelAlias {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteTrainedModelAlias) FilterPath(filterpaths ...string) *DeleteTrainedModelAlias {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteTrainedModelAlias) Human(human bool) *DeleteTrainedModelAlias {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteTrainedModelAlias) Pretty(pretty bool) *DeleteTrainedModelAlias {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodelalias/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodelalias/response.go
index 8f8c4c8094..8c43545592 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodelalias/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodelalias/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletetrainedmodelalias
// Response holds the response body struct for the package deletetrainedmodelalias
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/estimatemodelmemory/estimate_model_memory.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/estimatemodelmemory/estimate_model_memory.go
index 5f6808800c..07db16ee48 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/estimatemodelmemory/estimate_model_memory.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/estimatemodelmemory/estimate_model_memory.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Estimates the model memory
package estimatemodelmemory
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -293,6 +294,50 @@ func (r *EstimateModelMemory) Header(key, value string) *EstimateModelMemory {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *EstimateModelMemory) ErrorTrace(errortrace bool) *EstimateModelMemory {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *EstimateModelMemory) FilterPath(filterpaths ...string) *EstimateModelMemory {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *EstimateModelMemory) Human(human bool) *EstimateModelMemory {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *EstimateModelMemory) Pretty(pretty bool) *EstimateModelMemory {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AnalysisConfig For a list of the properties that you can specify in the
// `analysis_config` component of the body of this API.
// API name: analysis_config
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/estimatemodelmemory/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/estimatemodelmemory/request.go
index 2b9a1e514e..6bf7e256c6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/estimatemodelmemory/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/estimatemodelmemory/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package estimatemodelmemory
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package estimatemodelmemory
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L61
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L61
type Request struct {
// AnalysisConfig For a list of the properties that you can specify in the
@@ -57,6 +57,7 @@ func NewRequest() *Request {
MaxBucketCardinality: make(map[string]int64, 0),
OverallCardinality: make(map[string]int64, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/estimatemodelmemory/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/estimatemodelmemory/response.go
index c30013b807..074731e715 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/estimatemodelmemory/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/estimatemodelmemory/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package estimatemodelmemory
// Response holds the response body struct for the package estimatemodelmemory
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/estimate_model_memory/MlEstimateModelMemoryResponse.ts#L20-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/estimate_model_memory/MlEstimateModelMemoryResponse.ts#L20-L24
type Response struct {
ModelMemoryEstimate string `json:"model_memory_estimate"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe/evaluate_data_frame.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe/evaluate_data_frame.go
index c93d6d7091..d3348aecd5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe/evaluate_data_frame.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe/evaluate_data_frame.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Evaluates the data frame analytics for an annotated index.
package evaluatedataframe
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -293,6 +294,50 @@ func (r *EvaluateDataFrame) Header(key, value string) *EvaluateDataFrame {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *EvaluateDataFrame) ErrorTrace(errortrace bool) *EvaluateDataFrame {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *EvaluateDataFrame) FilterPath(filterpaths ...string) *EvaluateDataFrame {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *EvaluateDataFrame) Human(human bool) *EvaluateDataFrame {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *EvaluateDataFrame) Pretty(pretty bool) *EvaluateDataFrame {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Evaluation Defines the type of evaluation you want to perform.
// API name: evaluation
func (r *EvaluateDataFrame) Evaluation(evaluation *types.DataframeEvaluationContainer) *EvaluateDataFrame {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe/request.go
index acbfc5a88a..6ff08a6a19 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package evaluatedataframe
@@ -32,7 +32,7 @@ import (
// Request holds the request body struct for the package evaluatedataframe
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L52
type Request struct {
// Evaluation Defines the type of evaluation you want to perform.
@@ -46,6 +46,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe/response.go
index 5163f40549..0da75c5788 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package evaluatedataframe
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package evaluatedataframe
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/MlEvaluateDataFrameResponse.ts#L26-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/MlEvaluateDataFrameResponse.ts#L26-L33
type Response struct {
Classification *types.DataframeClassificationSummary `json:"classification,omitempty"`
OutlierDetection *types.DataframeOutlierDetectionSummary `json:"outlier_detection,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/explaindataframeanalytics/explain_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/explaindataframeanalytics/explain_data_frame_analytics.go
index a6e9ea21e8..b5ae088c1b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/explaindataframeanalytics/explain_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/explaindataframeanalytics/explain_data_frame_analytics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Explains a data frame analytics config.
package explaindataframeanalytics
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -329,6 +330,50 @@ func (r *ExplainDataFrameAnalytics) Id(id string) *ExplainDataFrameAnalytics {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ExplainDataFrameAnalytics) ErrorTrace(errortrace bool) *ExplainDataFrameAnalytics {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ExplainDataFrameAnalytics) FilterPath(filterpaths ...string) *ExplainDataFrameAnalytics {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ExplainDataFrameAnalytics) Human(human bool) *ExplainDataFrameAnalytics {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ExplainDataFrameAnalytics) Pretty(pretty bool) *ExplainDataFrameAnalytics {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AllowLazyStart Specifies whether this job can start when there is insufficient machine
// learning node capacity for it to be immediately assigned to a node.
// API name: allow_lazy_start
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/explaindataframeanalytics/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/explaindataframeanalytics/request.go
index adb1cc14e8..28cb7810b9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/explaindataframeanalytics/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/explaindataframeanalytics/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package explaindataframeanalytics
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package explaindataframeanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L107
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L107
type Request struct {
// AllowLazyStart Specifies whether this job can start when there is insufficient machine
@@ -69,6 +69,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/explaindataframeanalytics/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/explaindataframeanalytics/response.go
index 4cf5894592..d1a4575ba4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/explaindataframeanalytics/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/explaindataframeanalytics/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package explaindataframeanalytics
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package explaindataframeanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsResponse.ts#L25-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsResponse.ts#L25-L32
type Response struct {
// FieldSelection An array of objects that explain selection for each field, sorted by the
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob/flush_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob/flush_job.go
index cf148988a7..6dd062cd23 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob/flush_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob/flush_job.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Forces any buffered data to be processed by the job.
package flushjob
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -316,6 +317,50 @@ func (r *FlushJob) _jobid(jobid string) *FlushJob {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *FlushJob) ErrorTrace(errortrace bool) *FlushJob {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *FlushJob) FilterPath(filterpaths ...string) *FlushJob {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *FlushJob) Human(human bool) *FlushJob {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *FlushJob) Pretty(pretty bool) *FlushJob {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AdvanceTime Refer to the description for the `advance_time` query parameter.
// API name: advance_time
func (r *FlushJob) AdvanceTime(datetime types.DateTime) *FlushJob {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob/request.go
index c1ae0446f0..4da9514af9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package flushjob
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package flushjob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/flush_job/MlFlushJobRequest.ts#L24-L99
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/flush_job/MlFlushJobRequest.ts#L24-L99
type Request struct {
// AdvanceTime Refer to the description for the `advance_time` query parameter.
@@ -51,6 +51,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -86,7 +87,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "calc_interim":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob/response.go
index 871df8079d..4c13487cd4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package flushjob
// Response holds the response body struct for the package flushjob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/flush_job/MlFlushJobResponse.ts#L22-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/flush_job/MlFlushJobResponse.ts#L22-L31
type Response struct {
Flushed bool `json:"flushed"`
// LastFinalizedBucketEnd Provides the timestamp (in milliseconds since the epoch) of the end of
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/forecast/forecast.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/forecast/forecast.go
index e23e81eef9..3ad564f2d4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/forecast/forecast.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/forecast/forecast.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Predicts the future behavior of a time series by using its historical
// behavior.
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -319,6 +320,50 @@ func (r *Forecast) _jobid(jobid string) *Forecast {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Forecast) ErrorTrace(errortrace bool) *Forecast {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Forecast) FilterPath(filterpaths ...string) *Forecast {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Forecast) Human(human bool) *Forecast {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Forecast) Pretty(pretty bool) *Forecast {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Duration Refer to the description for the `duration` query parameter.
// API name: duration
func (r *Forecast) Duration(duration types.Duration) *Forecast {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/forecast/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/forecast/request.go
index 229eb13132..dfc0c7ddd2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/forecast/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/forecast/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package forecast
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package forecast
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/forecast/MlForecastJobRequest.ts#L24-L87
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/forecast/MlForecastJobRequest.ts#L24-L87
type Request struct {
// Duration Refer to the description for the `duration` query parameter.
@@ -47,6 +47,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/forecast/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/forecast/response.go
index 4290bc63aa..4c28debe3e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/forecast/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/forecast/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package forecast
// Response holds the response body struct for the package forecast
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/forecast/MlForecastJobResponse.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/forecast/MlForecastJobResponse.ts#L22-L27
type Response struct {
Acknowledged bool `json:"acknowledged"`
ForecastId string `json:"forecast_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets/get_buckets.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets/get_buckets.go
index f7da158620..e8ddeefdb1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets/get_buckets.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets/get_buckets.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves anomaly detection job results for one or more buckets.
package getbuckets
@@ -371,6 +371,50 @@ func (r *GetBuckets) Size(size int) *GetBuckets {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetBuckets) ErrorTrace(errortrace bool) *GetBuckets {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetBuckets) FilterPath(filterpaths ...string) *GetBuckets {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetBuckets) Human(human bool) *GetBuckets {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetBuckets) Pretty(pretty bool) *GetBuckets {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AnomalyScore Refer to the description for the `anomaly_score` query parameter.
// API name: anomaly_score
func (r *GetBuckets) AnomalyScore(anomalyscore types.Float64) *GetBuckets {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets/request.go
index 184c3ba4ea..60f6310685 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getbuckets
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package getbuckets
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_buckets/MlGetBucketsRequest.ts#L26-L133
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_buckets/MlGetBucketsRequest.ts#L26-L133
type Request struct {
// AnomalyScore Refer to the description for the `anomaly_score` query parameter.
@@ -56,6 +56,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -86,7 +87,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "anomaly_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -102,7 +103,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "desc":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -121,7 +122,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "exclude_interim":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -135,7 +136,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "expand":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets/response.go
index 5b8a5abba6..ae948db308 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getbuckets
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getbuckets
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_buckets/MlGetBucketsResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_buckets/MlGetBucketsResponse.ts#L23-L28
type Response struct {
Buckets []types.BucketSummary `json:"buckets"`
Count int64 `json:"count"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendarevents/get_calendar_events.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendarevents/get_calendar_events.go
index c8bfff301c..cf28e185fb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendarevents/get_calendar_events.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendarevents/get_calendar_events.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information about the scheduled events in calendars.
package getcalendarevents
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r GetCalendarEvents) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -345,3 +344,47 @@ func (r *GetCalendarEvents) Start(datetime string) *GetCalendarEvents {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetCalendarEvents) ErrorTrace(errortrace bool) *GetCalendarEvents {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetCalendarEvents) FilterPath(filterpaths ...string) *GetCalendarEvents {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetCalendarEvents) Human(human bool) *GetCalendarEvents {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetCalendarEvents) Pretty(pretty bool) *GetCalendarEvents {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendarevents/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendarevents/response.go
index 6ced55e806..8e5e4f05b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendarevents/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendarevents/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getcalendarevents
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getcalendarevents
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_calendar_events/MlGetCalendarEventsResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_calendar_events/MlGetCalendarEventsResponse.ts#L23-L28
type Response struct {
Count int64 `json:"count"`
Events []types.CalendarEvent `json:"events"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars/get_calendars.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars/get_calendars.go
index 71849cfcdb..7718689932 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars/get_calendars.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars/get_calendars.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves configuration information for calendars.
package getcalendars
@@ -341,6 +341,50 @@ func (r *GetCalendars) Size(size int) *GetCalendars {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetCalendars) ErrorTrace(errortrace bool) *GetCalendars {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetCalendars) FilterPath(filterpaths ...string) *GetCalendars {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetCalendars) Human(human bool) *GetCalendars {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetCalendars) Pretty(pretty bool) *GetCalendars {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Page This object is supported only when you omit the calendar identifier.
// API name: page
func (r *GetCalendars) Page(page *types.Page) *GetCalendars {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars/request.go
index 2ff79cda05..8fafc5233a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getcalendars
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package getcalendars
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_calendars/MlGetCalendarsRequest.ts#L25-L51
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_calendars/MlGetCalendarsRequest.ts#L25-L51
type Request struct {
// Page This object is supported only when you omit the calendar identifier.
@@ -39,6 +39,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars/response.go
index 83f79f5026..28b6b1b02c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getcalendars
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getcalendars
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_calendars/MlGetCalendarsResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_calendars/MlGetCalendarsResponse.ts#L23-L25
type Response struct {
Calendars []types.Calendar `json:"calendars"`
Count int64 `json:"count"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories/get_categories.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories/get_categories.go
index 34abe459d1..1517c1431a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories/get_categories.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories/get_categories.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves anomaly detection job results for one or more categories.
package getcategories
@@ -382,6 +382,50 @@ func (r *GetCategories) Size(size int) *GetCategories {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetCategories) ErrorTrace(errortrace bool) *GetCategories {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetCategories) FilterPath(filterpaths ...string) *GetCategories {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetCategories) Human(human bool) *GetCategories {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetCategories) Pretty(pretty bool) *GetCategories {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Page Configures pagination.
// This parameter has the `from` and `size` properties.
// API name: page
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories/request.go
index 238b44a4ba..4a1c566a07 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getcategories
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package getcategories
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_categories/MlGetCategoriesRequest.ts#L25-L70
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_categories/MlGetCategoriesRequest.ts#L25-L70
type Request struct {
// Page Configures pagination.
@@ -40,6 +40,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories/response.go
index 52a1fbf226..caea6f4d89 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getcategories
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getcategories
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_categories/MlGetCategoriesResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_categories/MlGetCategoriesResponse.ts#L23-L28
type Response struct {
Categories []types.Category `json:"categories"`
Count int64 `json:"count"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeeds/get_datafeeds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeeds/get_datafeeds.go
index 88fc41cdca..7e49c315a4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeeds/get_datafeeds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeeds/get_datafeeds.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves configuration information for datafeeds.
package getdatafeeds
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -268,7 +267,7 @@ func (r GetDatafeeds) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -333,3 +332,47 @@ func (r *GetDatafeeds) ExcludeGenerated(excludegenerated bool) *GetDatafeeds {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetDatafeeds) ErrorTrace(errortrace bool) *GetDatafeeds {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetDatafeeds) FilterPath(filterpaths ...string) *GetDatafeeds {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetDatafeeds) Human(human bool) *GetDatafeeds {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetDatafeeds) Pretty(pretty bool) *GetDatafeeds {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeeds/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeeds/response.go
index 99525b699b..e4917fa8e1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeeds/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeeds/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getdatafeeds
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getdatafeeds
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_datafeeds/MlGetDatafeedsResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_datafeeds/MlGetDatafeedsResponse.ts#L23-L28
type Response struct {
Count int64 `json:"count"`
Datafeeds []types.MLDatafeed `json:"datafeeds"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeedstats/get_datafeed_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeedstats/get_datafeed_stats.go
index de23a175c8..b50af2e18f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeedstats/get_datafeed_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeedstats/get_datafeed_stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves usage information for datafeeds.
package getdatafeedstats
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -272,7 +271,7 @@ func (r GetDatafeedStats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -327,3 +326,47 @@ func (r *GetDatafeedStats) AllowNoMatch(allownomatch bool) *GetDatafeedStats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetDatafeedStats) ErrorTrace(errortrace bool) *GetDatafeedStats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetDatafeedStats) FilterPath(filterpaths ...string) *GetDatafeedStats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetDatafeedStats) Human(human bool) *GetDatafeedStats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetDatafeedStats) Pretty(pretty bool) *GetDatafeedStats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeedstats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeedstats/response.go
index 3b609b5eda..c37ff63167 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeedstats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeedstats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getdatafeedstats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getdatafeedstats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_datafeed_stats/MlGetDatafeedStatsResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_datafeed_stats/MlGetDatafeedStatsResponse.ts#L23-L28
type Response struct {
Count int64 `json:"count"`
Datafeeds []types.DatafeedStats `json:"datafeeds"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalytics/get_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalytics/get_data_frame_analytics.go
index 4f2e0b2049..dc59b5b813 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalytics/get_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalytics/get_data_frame_analytics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves configuration information for data frame analytics jobs.
package getdataframeanalytics
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -272,7 +271,7 @@ func (r GetDataFrameAnalytics) IsSuccess(providedCtx context.Context) (bool, err
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -354,3 +353,47 @@ func (r *GetDataFrameAnalytics) ExcludeGenerated(excludegenerated bool) *GetData
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetDataFrameAnalytics) ErrorTrace(errortrace bool) *GetDataFrameAnalytics {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetDataFrameAnalytics) FilterPath(filterpaths ...string) *GetDataFrameAnalytics {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetDataFrameAnalytics) Human(human bool) *GetDataFrameAnalytics {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetDataFrameAnalytics) Pretty(pretty bool) *GetDataFrameAnalytics {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalytics/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalytics/response.go
index 3ff54548c1..be608bb874 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalytics/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalytics/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getdataframeanalytics
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getdataframeanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsResponse.ts#L23-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsResponse.ts#L23-L29
type Response struct {
Count int `json:"count"`
// DataFrameAnalytics An array of data frame analytics job resources, which are sorted by the id
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalyticsstats/get_data_frame_analytics_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalyticsstats/get_data_frame_analytics_stats.go
index 3be9f7006a..a885740864 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalyticsstats/get_data_frame_analytics_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalyticsstats/get_data_frame_analytics_stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves usage information for data frame analytics jobs.
package getdataframeanalyticsstats
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -276,7 +275,7 @@ func (r GetDataFrameAnalyticsStats) IsSuccess(providedCtx context.Context) (bool
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -356,3 +355,47 @@ func (r *GetDataFrameAnalyticsStats) Verbose(verbose bool) *GetDataFrameAnalytic
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetDataFrameAnalyticsStats) ErrorTrace(errortrace bool) *GetDataFrameAnalyticsStats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetDataFrameAnalyticsStats) FilterPath(filterpaths ...string) *GetDataFrameAnalyticsStats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetDataFrameAnalyticsStats) Human(human bool) *GetDataFrameAnalyticsStats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetDataFrameAnalyticsStats) Pretty(pretty bool) *GetDataFrameAnalyticsStats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalyticsstats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalyticsstats/response.go
index b657010b6b..5aad55706d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalyticsstats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalyticsstats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getdataframeanalyticsstats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getdataframeanalyticsstats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsResponse.ts#L24-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsResponse.ts#L24-L30
type Response struct {
Count int64 `json:"count"`
// DataFrameAnalytics An array of objects that contain usage information for data frame analytics
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getfilters/get_filters.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getfilters/get_filters.go
index ad1b7e699b..045b5b0574 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getfilters/get_filters.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getfilters/get_filters.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves filters.
package getfilters
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -268,7 +267,7 @@ func (r GetFilters) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -320,3 +319,47 @@ func (r *GetFilters) Size(size int) *GetFilters {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetFilters) ErrorTrace(errortrace bool) *GetFilters {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetFilters) FilterPath(filterpaths ...string) *GetFilters {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetFilters) Human(human bool) *GetFilters {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetFilters) Pretty(pretty bool) *GetFilters {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getfilters/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getfilters/response.go
index 87b996ef0d..af64e29d1e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getfilters/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getfilters/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getfilters
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getfilters
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_filters/MlGetFiltersResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_filters/MlGetFiltersResponse.ts#L23-L28
type Response struct {
Count int64 `json:"count"`
Filters []types.MLFilter `json:"filters"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getinfluencers/get_influencers.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getinfluencers/get_influencers.go
index 37c66a42cf..3cf77b27f2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getinfluencers/get_influencers.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getinfluencers/get_influencers.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves anomaly detection job results for one or more influencers.
package getinfluencers
@@ -389,6 +389,50 @@ func (r *GetInfluencers) Start(datetime string) *GetInfluencers {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetInfluencers) ErrorTrace(errortrace bool) *GetInfluencers {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetInfluencers) FilterPath(filterpaths ...string) *GetInfluencers {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetInfluencers) Human(human bool) *GetInfluencers {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetInfluencers) Pretty(pretty bool) *GetInfluencers {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Page Configures pagination.
// This parameter has the `from` and `size` properties.
// API name: page
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getinfluencers/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getinfluencers/request.go
index c85fea7d2c..131448a63a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getinfluencers/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getinfluencers/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getinfluencers
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package getinfluencers
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_influencers/MlGetInfluencersRequest.ts#L26-L97
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_influencers/MlGetInfluencersRequest.ts#L26-L97
type Request struct {
// Page Configures pagination.
@@ -40,6 +40,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getinfluencers/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getinfluencers/response.go
index e070a4e707..a5b5fca5f9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getinfluencers/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getinfluencers/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getinfluencers
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getinfluencers
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_influencers/MlGetInfluencersResponse.ts#L23-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_influencers/MlGetInfluencersResponse.ts#L23-L29
type Response struct {
Count int64 `json:"count"`
// Influencers Array of influencer objects
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobs/get_jobs.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobs/get_jobs.go
index deb9c83c27..f8deb870f2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobs/get_jobs.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobs/get_jobs.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves configuration information for anomaly detection jobs.
package getjobs
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -268,7 +267,7 @@ func (r GetJobs) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -333,3 +332,47 @@ func (r *GetJobs) ExcludeGenerated(excludegenerated bool) *GetJobs {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetJobs) ErrorTrace(errortrace bool) *GetJobs {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetJobs) FilterPath(filterpaths ...string) *GetJobs {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetJobs) Human(human bool) *GetJobs {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetJobs) Pretty(pretty bool) *GetJobs {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobs/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobs/response.go
index 263ac1a3c9..fc4d49678d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobs/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobs/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getjobs
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getjobs
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_jobs/MlGetJobsResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_jobs/MlGetJobsResponse.ts#L23-L28
type Response struct {
Count int64 `json:"count"`
Jobs []types.Job `json:"jobs"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobstats/get_job_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobstats/get_job_stats.go
index ec475f330a..a55da8b50e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobstats/get_job_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobstats/get_job_stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves usage information for anomaly detection jobs.
package getjobstats
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -272,7 +271,7 @@ func (r GetJobStats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -328,3 +327,47 @@ func (r *GetJobStats) AllowNoMatch(allownomatch bool) *GetJobStats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetJobStats) ErrorTrace(errortrace bool) *GetJobStats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetJobStats) FilterPath(filterpaths ...string) *GetJobStats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetJobStats) Human(human bool) *GetJobStats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetJobStats) Pretty(pretty bool) *GetJobStats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobstats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobstats/response.go
index 16fa6b58a9..7270e6fe30 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobstats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobstats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getjobstats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getjobstats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_job_stats/MlGetJobStatsResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_job_stats/MlGetJobStatsResponse.ts#L23-L28
type Response struct {
Count int64 `json:"count"`
Jobs []types.JobStats `json:"jobs"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmemorystats/get_memory_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmemorystats/get_memory_stats.go
index 32fae28576..c718841065 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmemorystats/get_memory_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmemorystats/get_memory_stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information on how ML is using memory.
package getmemorystats
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -272,7 +271,7 @@ func (r GetMemoryStats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -340,3 +339,34 @@ func (r *GetMemoryStats) Timeout(duration string) *GetMemoryStats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetMemoryStats) ErrorTrace(errortrace bool) *GetMemoryStats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetMemoryStats) FilterPath(filterpaths ...string) *GetMemoryStats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetMemoryStats) Pretty(pretty bool) *GetMemoryStats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmemorystats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmemorystats/response.go
index 398abf3a84..68800af24e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmemorystats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmemorystats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getmemorystats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getmemorystats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_memory_stats/MlGetMemoryStatsResponse.ts#L25-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_memory_stats/MlGetMemoryStatsResponse.ts#L25-L31
type Response struct {
ClusterName string `json:"cluster_name"`
NodeStats types.NodeStatistics `json:"_nodes"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots/get_model_snapshots.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots/get_model_snapshots.go
index 64a8e753a8..c5a4b520c2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots/get_model_snapshots.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots/get_model_snapshots.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information about model snapshots.
package getmodelsnapshots
@@ -370,6 +370,50 @@ func (r *GetModelSnapshots) Size(size int) *GetModelSnapshots {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetModelSnapshots) ErrorTrace(errortrace bool) *GetModelSnapshots {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetModelSnapshots) FilterPath(filterpaths ...string) *GetModelSnapshots {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetModelSnapshots) Human(human bool) *GetModelSnapshots {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetModelSnapshots) Pretty(pretty bool) *GetModelSnapshots {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Desc Refer to the description for the `desc` query parameter.
// API name: desc
func (r *GetModelSnapshots) Desc(desc bool) *GetModelSnapshots {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots/request.go
index 4e431b13c0..c9a9f1d524 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getmodelsnapshots
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package getmodelsnapshots
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L96
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L96
type Request struct {
// Desc Refer to the description for the `desc` query parameter.
@@ -50,6 +50,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -80,7 +81,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "desc":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots/response.go
index fc4c6b0d3a..e62a898f71 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getmodelsnapshots
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getmodelsnapshots
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_model_snapshots/MlGetModelSnapshotsResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_model_snapshots/MlGetModelSnapshotsResponse.ts#L23-L28
type Response struct {
Count int64 `json:"count"`
ModelSnapshots []types.ModelSnapshot `json:"model_snapshots"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshotupgradestats/get_model_snapshot_upgrade_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshotupgradestats/get_model_snapshot_upgrade_stats.go
index 1da052b53f..a07fa2c526 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshotupgradestats/get_model_snapshot_upgrade_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshotupgradestats/get_model_snapshot_upgrade_stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Gets stats for anomaly detection job model snapshot upgrades that are in
// progress.
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -282,7 +281,7 @@ func (r GetModelSnapshotUpgradeStats) IsSuccess(providedCtx context.Context) (bo
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -349,3 +348,47 @@ func (r *GetModelSnapshotUpgradeStats) AllowNoMatch(allownomatch bool) *GetModel
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetModelSnapshotUpgradeStats) ErrorTrace(errortrace bool) *GetModelSnapshotUpgradeStats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetModelSnapshotUpgradeStats) FilterPath(filterpaths ...string) *GetModelSnapshotUpgradeStats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetModelSnapshotUpgradeStats) Human(human bool) *GetModelSnapshotUpgradeStats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetModelSnapshotUpgradeStats) Pretty(pretty bool) *GetModelSnapshotUpgradeStats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshotupgradestats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshotupgradestats/response.go
index 79cf50d836..c6417c8908 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshotupgradestats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshotupgradestats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getmodelsnapshotupgradestats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getmodelsnapshotupgradestats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsResponse.ts#L23-L28
type Response struct {
Count int64 `json:"count"`
ModelSnapshotUpgrades []types.ModelSnapshotUpgrade `json:"model_snapshot_upgrades"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets/get_overall_buckets.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets/get_overall_buckets.go
index 7265045570..f5cc79dcb1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets/get_overall_buckets.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets/get_overall_buckets.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves overall bucket results that summarize the bucket results of
// multiple anomaly detection jobs.
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -325,6 +326,50 @@ func (r *GetOverallBuckets) _jobid(jobid string) *GetOverallBuckets {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetOverallBuckets) ErrorTrace(errortrace bool) *GetOverallBuckets {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetOverallBuckets) FilterPath(filterpaths ...string) *GetOverallBuckets {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetOverallBuckets) Human(human bool) *GetOverallBuckets {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetOverallBuckets) Pretty(pretty bool) *GetOverallBuckets {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AllowNoMatch Refer to the description for the `allow_no_match` query parameter.
// API name: allow_no_match
func (r *GetOverallBuckets) AllowNoMatch(allownomatch bool) *GetOverallBuckets {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets/request.go
index e0309694ad..44a239658b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getoverallbuckets
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package getoverallbuckets
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L143
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L143
type Request struct {
// AllowNoMatch Refer to the description for the `allow_no_match` query parameter.
@@ -55,6 +55,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -85,7 +86,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "allow_no_match":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -109,7 +110,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "exclude_interim":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -141,7 +142,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "top_n":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets/response.go
index 7d18f75f23..dd9d158fd0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getoverallbuckets
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getoverallbuckets
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_overall_buckets/MlGetOverallBucketsResponse.ts#L23-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_overall_buckets/MlGetOverallBucketsResponse.ts#L23-L29
type Response struct {
Count int64 `json:"count"`
// OverallBuckets Array of overall bucket objects
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords/get_records.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords/get_records.go
index eaa36ca21e..476569343e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords/get_records.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords/get_records.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves anomaly records for an anomaly detection job.
package getrecords
@@ -335,6 +335,50 @@ func (r *GetRecords) Size(size int) *GetRecords {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetRecords) ErrorTrace(errortrace bool) *GetRecords {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetRecords) FilterPath(filterpaths ...string) *GetRecords {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetRecords) Human(human bool) *GetRecords {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetRecords) Pretty(pretty bool) *GetRecords {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Desc Refer to the description for the `desc` query parameter.
// API name: desc
func (r *GetRecords) Desc(desc bool) *GetRecords {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords/request.go
index 076f32e51e..75048716ab 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getrecords
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package getrecords
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L127
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L127
type Request struct {
// Desc Refer to the description for the `desc` query parameter.
@@ -54,6 +54,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -84,7 +85,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "desc":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -103,7 +104,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "exclude_interim":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -122,7 +123,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "record_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords/response.go
index 9ad8556ca5..28af5a73ba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getrecords
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getrecords
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_records/MlGetAnomalyRecordsResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_records/MlGetAnomalyRecordsResponse.ts#L23-L28
type Response struct {
Count int64 `json:"count"`
Records []types.Anomaly `json:"records"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodels/get_trained_models.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodels/get_trained_models.go
index 07b4df2906..752e5fa0a6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodels/get_trained_models.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodels/get_trained_models.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves configuration information for a trained inference model.
package gettrainedmodels
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -269,7 +268,7 @@ func (r GetTrainedModels) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -374,3 +373,47 @@ func (r *GetTrainedModels) Tags(tags string) *GetTrainedModels {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetTrainedModels) ErrorTrace(errortrace bool) *GetTrainedModels {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetTrainedModels) FilterPath(filterpaths ...string) *GetTrainedModels {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetTrainedModels) Human(human bool) *GetTrainedModels {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetTrainedModels) Pretty(pretty bool) *GetTrainedModels {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodels/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodels/response.go
index 21d34bedba..115e0f2a53 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodels/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodels/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package gettrainedmodels
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package gettrainedmodels
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_trained_models/MlGetTrainedModelResponse.ts#L23-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_trained_models/MlGetTrainedModelResponse.ts#L23-L34
type Response struct {
Count int `json:"count"`
// TrainedModelConfigs An array of trained model resources, which are sorted by the model_id value
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodelsstats/get_trained_models_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodelsstats/get_trained_models_stats.go
index 8078ada9f9..b3c652a670 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodelsstats/get_trained_models_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodelsstats/get_trained_models_stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves usage information for trained inference models.
package gettrainedmodelsstats
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -272,7 +271,7 @@ func (r GetTrainedModelsStats) IsSuccess(providedCtx context.Context) (bool, err
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -340,3 +339,47 @@ func (r *GetTrainedModelsStats) Size(size int) *GetTrainedModelsStats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetTrainedModelsStats) ErrorTrace(errortrace bool) *GetTrainedModelsStats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetTrainedModelsStats) FilterPath(filterpaths ...string) *GetTrainedModelsStats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetTrainedModelsStats) Human(human bool) *GetTrainedModelsStats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetTrainedModelsStats) Pretty(pretty bool) *GetTrainedModelsStats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodelsstats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodelsstats/response.go
index 1680ba032a..8cace761b0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodelsstats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodelsstats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package gettrainedmodelsstats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package gettrainedmodelsstats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsResponse.ts#L23-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsResponse.ts#L23-L33
type Response struct {
// Count The total number of trained model statistics that matched the requested ID
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/infertrainedmodel/infer_trained_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/infertrainedmodel/infer_trained_model.go
index 9b6fe9a8c0..7f7d79387e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/infertrainedmodel/infer_trained_model.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/infertrainedmodel/infer_trained_model.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Evaluate a trained model.
package infertrainedmodel
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -341,6 +342,50 @@ func (r *InferTrainedModel) Timeout(duration string) *InferTrainedModel {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *InferTrainedModel) ErrorTrace(errortrace bool) *InferTrainedModel {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *InferTrainedModel) FilterPath(filterpaths ...string) *InferTrainedModel {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *InferTrainedModel) Human(human bool) *InferTrainedModel {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *InferTrainedModel) Pretty(pretty bool) *InferTrainedModel {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Docs An array of objects to pass to the model for inference. The objects should
// contain a fields matching your
// configured trained model input. Typically, for NLP models, the field name is
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/infertrainedmodel/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/infertrainedmodel/request.go
index b6660007cc..92a14332bd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/infertrainedmodel/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/infertrainedmodel/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package infertrainedmodel
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package infertrainedmodel
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L59
type Request struct {
// Docs An array of objects to pass to the model for inference. The objects should
@@ -45,6 +45,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/infertrainedmodel/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/infertrainedmodel/response.go
index 7f46d4ed90..00e35cbd50 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/infertrainedmodel/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/infertrainedmodel/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package infertrainedmodel
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package infertrainedmodel
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/infer_trained_model/MlInferTrainedModelResponse.ts#L22-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/infer_trained_model/MlInferTrainedModelResponse.ts#L22-L26
type Response struct {
InferenceResults []types.InferenceResponseResult `json:"inference_results"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/info/info.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/info/info.go
index 9ba28e2d71..0fb354571d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/info/info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/info/info.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns defaults and limits used by machine learning.
package info
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r Info) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *Info) Header(key, value string) *Info {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Info) ErrorTrace(errortrace bool) *Info {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Info) FilterPath(filterpaths ...string) *Info {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Info) Human(human bool) *Info {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Info) Pretty(pretty bool) *Info {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/info/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/info/response.go
index a19bfa7d63..67b6a364d7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/info/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/info/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package info
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package info
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/info/MlInfoResponse.ts#L22-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/info/MlInfoResponse.ts#L22-L29
type Response struct {
Defaults types.Defaults `json:"defaults"`
Limits types.Limits `json:"limits"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob/open_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob/open_job.go
index e902bce580..95d82103ff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob/open_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob/open_job.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Opens one or more anomaly detection jobs.
package openjob
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -316,6 +317,50 @@ func (r *OpenJob) _jobid(jobid string) *OpenJob {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *OpenJob) ErrorTrace(errortrace bool) *OpenJob {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *OpenJob) FilterPath(filterpaths ...string) *OpenJob {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *OpenJob) Human(human bool) *OpenJob {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *OpenJob) Pretty(pretty bool) *OpenJob {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Timeout Refer to the description for the `timeout` query parameter.
// API name: timeout
func (r *OpenJob) Timeout(duration types.Duration) *OpenJob {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob/request.go
index 329756f6b0..e69628d7f9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package openjob
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package openjob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/open_job/MlOpenJobRequest.ts#L24-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/open_job/MlOpenJobRequest.ts#L24-L59
type Request struct {
// Timeout Refer to the description for the `timeout` query parameter.
@@ -39,6 +39,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob/response.go
index d9d1776b79..3efdd0cd01 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package openjob
// Response holds the response body struct for the package openjob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/open_job/MlOpenJobResponse.ts#L22-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/open_job/MlOpenJobResponse.ts#L22-L31
type Response struct {
// Node The ID of the node that the job was started on. In serverless this will be
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postcalendarevents/post_calendar_events.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postcalendarevents/post_calendar_events.go
index d863e1ddea..3ac4b38f5a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postcalendarevents/post_calendar_events.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postcalendarevents/post_calendar_events.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Posts scheduled events in a calendar.
package postcalendarevents
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -316,6 +317,50 @@ func (r *PostCalendarEvents) _calendarid(calendarid string) *PostCalendarEvents
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PostCalendarEvents) ErrorTrace(errortrace bool) *PostCalendarEvents {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PostCalendarEvents) FilterPath(filterpaths ...string) *PostCalendarEvents {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PostCalendarEvents) Human(human bool) *PostCalendarEvents {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PostCalendarEvents) Pretty(pretty bool) *PostCalendarEvents {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Events A list of one of more scheduled events. The event’s start and end times can
// be specified as integer milliseconds since the epoch or as a string in ISO
// 8601 format.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postcalendarevents/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postcalendarevents/request.go
index bee92aab34..9b2d532190 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postcalendarevents/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postcalendarevents/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package postcalendarevents
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package postcalendarevents
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L40
type Request struct {
// Events A list of one of more scheduled events. The event’s start and end times can
@@ -41,6 +41,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postcalendarevents/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postcalendarevents/response.go
index c4ff257c38..88ae4effa7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postcalendarevents/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postcalendarevents/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package postcalendarevents
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package postcalendarevents
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/post_calendar_events/MlPostCalendarEventsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/post_calendar_events/MlPostCalendarEventsResponse.ts#L22-L24
type Response struct {
Events []types.CalendarEvent `json:"events"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata/post_data.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata/post_data.go
index 1a2eec1280..654864719c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata/post_data.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata/post_data.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Sends data to an anomaly detection job for analysis.
package postdata
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -332,3 +333,47 @@ func (r *PostData) ResetStart(datetime string) *PostData {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PostData) ErrorTrace(errortrace bool) *PostData {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PostData) FilterPath(filterpaths ...string) *PostData {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PostData) Human(human bool) *PostData {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PostData) Pretty(pretty bool) *PostData {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata/request.go
index 695f4afc65..d5453d0ed6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package postdata
@@ -26,7 +26,7 @@ import (
// Request holds the request body struct for the package postdata
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/post_data/MlPostJobDataRequest.ts#L24-L68
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/post_data/MlPostJobDataRequest.ts#L24-L68
type Request = []json.RawMessage
// NewRequest returns a Request
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata/response.go
index 5b4736ea7c..12272a99ff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package postdata
// Response holds the response body struct for the package postdata
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/post_data/MlPostJobDataResponse.ts#L23-L41
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/post_data/MlPostJobDataResponse.ts#L23-L41
type Response struct {
BucketCount int64 `json:"bucket_count"`
EarliestRecordTimestamp int64 `json:"earliest_record_timestamp"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed/preview_datafeed.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed/preview_datafeed.go
index 83d602fb1d..4903551972 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed/preview_datafeed.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed/preview_datafeed.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Previews a datafeed.
package previewdatafeed
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -345,6 +346,50 @@ func (r *PreviewDatafeed) End(datetime string) *PreviewDatafeed {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PreviewDatafeed) ErrorTrace(errortrace bool) *PreviewDatafeed {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PreviewDatafeed) FilterPath(filterpaths ...string) *PreviewDatafeed {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PreviewDatafeed) Human(human bool) *PreviewDatafeed {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PreviewDatafeed) Pretty(pretty bool) *PreviewDatafeed {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// DatafeedConfig The datafeed definition to preview.
// API name: datafeed_config
func (r *PreviewDatafeed) DatafeedConfig(datafeedconfig *types.DatafeedConfig) *PreviewDatafeed {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed/request.go
index efc8657d87..3bc4f7e252 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package previewdatafeed
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package previewdatafeed
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L69
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L69
type Request struct {
// DatafeedConfig The datafeed definition to preview.
@@ -48,6 +48,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed/response.go
index e4d2cf8901..218c01805f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package previewdatafeed
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package previewdatafeed
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/preview_datafeed/MlPreviewDatafeedResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/preview_datafeed/MlPreviewDatafeedResponse.ts#L20-L23
type Response []json.RawMessage
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdataframeanalytics/preview_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdataframeanalytics/preview_data_frame_analytics.go
index 341d11a2c3..699932b18a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdataframeanalytics/preview_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdataframeanalytics/preview_data_frame_analytics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Previews that will be analyzed given a data frame analytics config.
package previewdataframeanalytics
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -327,6 +328,50 @@ func (r *PreviewDataFrameAnalytics) Id(id string) *PreviewDataFrameAnalytics {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PreviewDataFrameAnalytics) ErrorTrace(errortrace bool) *PreviewDataFrameAnalytics {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PreviewDataFrameAnalytics) FilterPath(filterpaths ...string) *PreviewDataFrameAnalytics {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PreviewDataFrameAnalytics) Human(human bool) *PreviewDataFrameAnalytics {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PreviewDataFrameAnalytics) Pretty(pretty bool) *PreviewDataFrameAnalytics {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Config A data frame analytics config as described in create data frame analytics
// jobs. Note that `id` and `dest` don’t need to be provided in the context of
// this API.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdataframeanalytics/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdataframeanalytics/request.go
index f0fda0d90e..341946dd66 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdataframeanalytics/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdataframeanalytics/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package previewdataframeanalytics
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package previewdataframeanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L47
type Request struct {
// Config A data frame analytics config as described in create data frame analytics
@@ -41,6 +41,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdataframeanalytics/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdataframeanalytics/response.go
index fdf453bbf2..1dbec69c28 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdataframeanalytics/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdataframeanalytics/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package previewdataframeanalytics
// Response holds the response body struct for the package previewdataframeanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsResponse.ts#L23-L28
type Response struct {
// FeatureValues An array of objects that contain feature name and value pairs. The features
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendar/put_calendar.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendar/put_calendar.go
index 5dad25869c..165fa6f05b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendar/put_calendar.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendar/put_calendar.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Instantiates a calendar.
package putcalendar
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -314,6 +315,50 @@ func (r *PutCalendar) _calendarid(calendarid string) *PutCalendar {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutCalendar) ErrorTrace(errortrace bool) *PutCalendar {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutCalendar) FilterPath(filterpaths ...string) *PutCalendar {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutCalendar) Human(human bool) *PutCalendar {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutCalendar) Pretty(pretty bool) *PutCalendar {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Description A description of the calendar.
// API name: description
func (r *PutCalendar) Description(description string) *PutCalendar {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendar/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendar/request.go
index 2828ffdbc9..8605430fd5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendar/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendar/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putcalendar
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package putcalendar
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_calendar/MlPutCalendarRequest.ts#L23-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_calendar/MlPutCalendarRequest.ts#L23-L43
type Request struct {
// Description A description of the calendar.
@@ -39,6 +39,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendar/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendar/response.go
index ae4dcd273c..1ef060ba49 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendar/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendar/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putcalendar
@@ -31,7 +31,7 @@ import (
// Response holds the response body struct for the package putcalendar
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_calendar/MlPutCalendarResponse.ts#L22-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_calendar/MlPutCalendarResponse.ts#L22-L31
type Response struct {
// CalendarId A string that uniquely identifies a calendar.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendarjob/put_calendar_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendarjob/put_calendar_job.go
index 40fe587f5a..ec98143c4f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendarjob/put_calendar_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendarjob/put_calendar_job.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Adds an anomaly detection job to a calendar.
package putcalendarjob
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -275,7 +275,7 @@ func (r PutCalendarJob) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -321,3 +321,47 @@ func (r *PutCalendarJob) _jobid(jobid string) *PutCalendarJob {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutCalendarJob) ErrorTrace(errortrace bool) *PutCalendarJob {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutCalendarJob) FilterPath(filterpaths ...string) *PutCalendarJob {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutCalendarJob) Human(human bool) *PutCalendarJob {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutCalendarJob) Pretty(pretty bool) *PutCalendarJob {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendarjob/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendarjob/response.go
index 39cc278a2e..d924060640 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendarjob/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendarjob/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putcalendarjob
@@ -31,7 +31,7 @@ import (
// Response holds the response body struct for the package putcalendarjob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_calendar_job/MlPutCalendarJobResponse.ts#L22-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_calendar_job/MlPutCalendarJobResponse.ts#L22-L31
type Response struct {
// CalendarId A string that uniquely identifies a calendar.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdatafeed/put_datafeed.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdatafeed/put_datafeed.go
index 72f162c9fe..71328c0e4a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdatafeed/put_datafeed.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdatafeed/put_datafeed.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Instantiates a datafeed.
package putdatafeed
@@ -360,6 +360,50 @@ func (r *PutDatafeed) IgnoreUnavailable(ignoreunavailable bool) *PutDatafeed {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutDatafeed) ErrorTrace(errortrace bool) *PutDatafeed {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutDatafeed) FilterPath(filterpaths ...string) *PutDatafeed {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutDatafeed) Human(human bool) *PutDatafeed {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutDatafeed) Pretty(pretty bool) *PutDatafeed {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Aggregations If set, the datafeed performs aggregation searches.
// Support for aggregations is limited and should be used only with low
// cardinality data.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdatafeed/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdatafeed/request.go
index 733beead48..87223fab19 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdatafeed/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdatafeed/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putdatafeed
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package putdatafeed
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L172
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L172
type Request struct {
// Aggregations If set, the datafeed performs aggregation searches.
@@ -121,6 +121,7 @@ func NewRequest() *Request {
Aggregations: make(map[string]types.Aggregations, 0),
ScriptFields: make(map[string]types.ScriptField, 0),
}
+
return r
}
@@ -206,7 +207,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "max_empty_searches":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -245,7 +246,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "scroll_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdatafeed/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdatafeed/response.go
index 6a895305de..138bc1e59d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdatafeed/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdatafeed/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putdatafeed
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package putdatafeed
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_datafeed/MlPutDatafeedResponse.ts#L31-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_datafeed/MlPutDatafeedResponse.ts#L31-L49
type Response struct {
Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"`
Authorization *types.DatafeedAuthorization `json:"authorization,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdataframeanalytics/put_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdataframeanalytics/put_data_frame_analytics.go
index 7851510a68..415b624af3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdataframeanalytics/put_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdataframeanalytics/put_data_frame_analytics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Instantiates a data frame analytics job.
package putdataframeanalytics
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -318,6 +319,50 @@ func (r *PutDataFrameAnalytics) _id(id string) *PutDataFrameAnalytics {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutDataFrameAnalytics) ErrorTrace(errortrace bool) *PutDataFrameAnalytics {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutDataFrameAnalytics) FilterPath(filterpaths ...string) *PutDataFrameAnalytics {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutDataFrameAnalytics) Human(human bool) *PutDataFrameAnalytics {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutDataFrameAnalytics) Pretty(pretty bool) *PutDataFrameAnalytics {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AllowLazyStart Specifies whether this job can start when there is insufficient machine
// learning node capacity for it to be immediately assigned to a node. If
// set to `false` and a machine learning node with capacity to run the job
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdataframeanalytics/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdataframeanalytics/request.go
index 78dc112ffc..1214929fe5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdataframeanalytics/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdataframeanalytics/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putdataframeanalytics
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package putdataframeanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L141
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L141
type Request struct {
// AllowLazyStart Specifies whether this job can start when there is insufficient machine
@@ -102,6 +102,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -132,7 +133,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "allow_lazy_start":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -179,7 +180,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "max_num_threads":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdataframeanalytics/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdataframeanalytics/response.go
index ee46a119bf..29164462f4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdataframeanalytics/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdataframeanalytics/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putdataframeanalytics
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package putdataframeanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsResponse.ts#L31-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsResponse.ts#L31-L46
type Response struct {
AllowLazyStart bool `json:"allow_lazy_start"`
Analysis types.DataframeAnalysisContainer `json:"analysis"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter/put_filter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter/put_filter.go
index d549f86fab..fb98b5dea6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter/put_filter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter/put_filter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Instantiates a filter.
package putfilter
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -314,6 +315,50 @@ func (r *PutFilter) _filterid(filterid string) *PutFilter {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutFilter) ErrorTrace(errortrace bool) *PutFilter {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutFilter) FilterPath(filterpaths ...string) *PutFilter {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutFilter) Human(human bool) *PutFilter {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutFilter) Pretty(pretty bool) *PutFilter {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Description A description of the filter.
// API name: description
func (r *PutFilter) Description(description string) *PutFilter {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter/request.go
index eae93223b7..0d223cb27e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putfilter
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package putfilter
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_filter/MlPutFilterRequest.ts#L23-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_filter/MlPutFilterRequest.ts#L23-L50
type Request struct {
// Description A description of the filter.
@@ -41,6 +41,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter/response.go
index def6610d13..36fc65c254 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putfilter
// Response holds the response body struct for the package putfilter
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_filter/MlPutFilterResponse.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_filter/MlPutFilterResponse.ts#L22-L28
type Response struct {
Description string `json:"description"`
FilterId string `json:"filter_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putjob/put_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putjob/put_job.go
index 380fa9414d..e42b101345 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putjob/put_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putjob/put_job.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Instantiates an anomaly detection job.
package putjob
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -316,6 +317,50 @@ func (r *PutJob) _jobid(jobid string) *PutJob {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutJob) ErrorTrace(errortrace bool) *PutJob {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutJob) FilterPath(filterpaths ...string) *PutJob {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutJob) Human(human bool) *PutJob {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutJob) Pretty(pretty bool) *PutJob {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AllowLazyOpen Advanced configuration option. Specifies whether this job can open when there
// is insufficient machine learning node capacity for it to be immediately
// assigned to a node. By default, if a machine learning node with capacity to
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putjob/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putjob/request.go
index c606ed6095..0e85cd5b79 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putjob/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putjob/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putjob
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package putjob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_job/MlPutJobRequest.ts#L30-L111
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_job/MlPutJobRequest.ts#L30-L111
type Request struct {
// AllowLazyOpen Advanced configuration option. Specifies whether this job can open when there
@@ -120,6 +120,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -150,7 +151,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "allow_lazy_open":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -184,7 +185,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "daily_model_snapshot_retention_after_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -231,7 +232,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "model_snapshot_retention_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -246,7 +247,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "renormalization_window_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -266,7 +267,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "results_retention_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putjob/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putjob/response.go
index e4d0049260..98bb6dca54 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putjob/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/putjob/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putjob
@@ -28,7 +28,7 @@ import (
// Response holds the response body struct for the package putjob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_job/MlPutJobResponse.ts#L29-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_job/MlPutJobResponse.ts#L29-L52
type Response struct {
AllowLazyOpen bool `json:"allow_lazy_open"`
AnalysisConfig types.AnalysisConfigRead `json:"analysis_config"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodel/put_trained_model.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodel/put_trained_model.go
index 6e8662a790..b873a4c4b8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodel/put_trained_model.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodel/put_trained_model.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates an inference trained model.
package puttrainedmodel
@@ -335,6 +335,50 @@ func (r *PutTrainedModel) WaitForCompletion(waitforcompletion bool) *PutTrainedM
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutTrainedModel) ErrorTrace(errortrace bool) *PutTrainedModel {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutTrainedModel) FilterPath(filterpaths ...string) *PutTrainedModel {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutTrainedModel) Human(human bool) *PutTrainedModel {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutTrainedModel) Pretty(pretty bool) *PutTrainedModel {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// CompressedDefinition The compressed (GZipped and Base64 encoded) inference definition of the
// model. If compressed_definition is specified, then definition cannot be
// specified.
@@ -392,7 +436,7 @@ func (r *PutTrainedModel) Input(input *types.Input) *PutTrainedModel {
// metadata should be a json.RawMessage or a structure
// if a structure is provided, the client will defer a json serialization
// prior to sending the payload to Elasticsearch.
-func (r *PutTrainedModel) Metadata(metadata interface{}) *PutTrainedModel {
+func (r *PutTrainedModel) Metadata(metadata any) *PutTrainedModel {
switch casted := metadata.(type) {
case json.RawMessage:
r.req.Metadata = casted
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodel/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodel/request.go
index c92f090878..eb2dfa6f11 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodel/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodel/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package puttrainedmodel
@@ -30,7 +30,7 @@ import (
// Request holds the request body struct for the package puttrainedmodel
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts#L29-L124
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts#L29-L124
type Request struct {
// CompressedDefinition The compressed (GZipped and Base64 encoded) inference definition of the
@@ -77,6 +77,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodel/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodel/response.go
index 5e02aea79d..6ca6eee8f8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodel/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodel/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package puttrainedmodel
@@ -27,7 +27,7 @@ import (
// Response holds the response body struct for the package puttrainedmodel
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model/MlPutTrainedModelResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/MlPutTrainedModelResponse.ts#L22-L24
type Response struct {
CompressedDefinition *string `json:"compressed_definition,omitempty"`
// CreateTime The time when the trained model was created.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelalias/put_trained_model_alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelalias/put_trained_model_alias.go
index a7fb0c0781..a9f1dd498b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelalias/put_trained_model_alias.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelalias/put_trained_model_alias.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a new model alias (or reassigns an existing one) to refer to the
// trained model
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -284,7 +283,7 @@ func (r PutTrainedModelAlias) IsSuccess(providedCtx context.Context) (bool, erro
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -339,3 +338,47 @@ func (r *PutTrainedModelAlias) Reassign(reassign bool) *PutTrainedModelAlias {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutTrainedModelAlias) ErrorTrace(errortrace bool) *PutTrainedModelAlias {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutTrainedModelAlias) FilterPath(filterpaths ...string) *PutTrainedModelAlias {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutTrainedModelAlias) Human(human bool) *PutTrainedModelAlias {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutTrainedModelAlias) Pretty(pretty bool) *PutTrainedModelAlias {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelalias/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelalias/response.go
index c7a40364b4..dd7618834e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelalias/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelalias/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package puttrainedmodelalias
// Response holds the response body struct for the package puttrainedmodelalias
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodeldefinitionpart/put_trained_model_definition_part.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodeldefinitionpart/put_trained_model_definition_part.go
index f36eec4483..acf4fa0037 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodeldefinitionpart/put_trained_model_definition_part.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodeldefinitionpart/put_trained_model_definition_part.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates part of a trained model definition
package puttrainedmodeldefinitionpart
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -339,6 +340,50 @@ func (r *PutTrainedModelDefinitionPart) _part(part string) *PutTrainedModelDefin
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutTrainedModelDefinitionPart) ErrorTrace(errortrace bool) *PutTrainedModelDefinitionPart {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutTrainedModelDefinitionPart) FilterPath(filterpaths ...string) *PutTrainedModelDefinitionPart {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutTrainedModelDefinitionPart) Human(human bool) *PutTrainedModelDefinitionPart {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutTrainedModelDefinitionPart) Pretty(pretty bool) *PutTrainedModelDefinitionPart {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Definition The definition part for the model. Must be a base64 encoded string.
// API name: definition
func (r *PutTrainedModelDefinitionPart) Definition(definition string) *PutTrainedModelDefinitionPart {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodeldefinitionpart/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodeldefinitionpart/request.go
index 5061f1b2bd..8ec6f25110 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodeldefinitionpart/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodeldefinitionpart/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package puttrainedmodeldefinitionpart
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package puttrainedmodeldefinitionpart
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L57
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L57
type Request struct {
// Definition The definition part for the model. Must be a base64 encoded string.
@@ -41,6 +41,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodeldefinitionpart/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodeldefinitionpart/response.go
index 5bfe0fa83c..d5e0b5b431 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodeldefinitionpart/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodeldefinitionpart/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package puttrainedmodeldefinitionpart
// Response holds the response body struct for the package puttrainedmodeldefinitionpart
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary/put_trained_model_vocabulary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary/put_trained_model_vocabulary.go
index 3cbff39527..52ba487187 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary/put_trained_model_vocabulary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary/put_trained_model_vocabulary.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a trained model vocabulary
package puttrainedmodelvocabulary
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -316,6 +317,50 @@ func (r *PutTrainedModelVocabulary) _modelid(modelid string) *PutTrainedModelVoc
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutTrainedModelVocabulary) ErrorTrace(errortrace bool) *PutTrainedModelVocabulary {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutTrainedModelVocabulary) FilterPath(filterpaths ...string) *PutTrainedModelVocabulary {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutTrainedModelVocabulary) Human(human bool) *PutTrainedModelVocabulary {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutTrainedModelVocabulary) Pretty(pretty bool) *PutTrainedModelVocabulary {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Merges The optional model merges if required by the tokenizer.
// API name: merges
func (r *PutTrainedModelVocabulary) Merges(merges ...string) *PutTrainedModelVocabulary {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary/request.go
index 6ade0ce1b8..918cb0ae8a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package puttrainedmodelvocabulary
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package puttrainedmodelvocabulary
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L60
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L60
type Request struct {
// Merges The optional model merges if required by the tokenizer.
@@ -43,6 +43,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary/response.go
index 95e5fe6eef..e1a7f6a0df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package puttrainedmodelvocabulary
// Response holds the response body struct for the package puttrainedmodelvocabulary
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/resetjob/reset_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/resetjob/reset_job.go
index d9ddaa7604..f7cd9c3d2c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/resetjob/reset_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/resetjob/reset_job.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Resets an existing anomaly detection job.
package resetjob
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r ResetJob) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -321,3 +320,47 @@ func (r *ResetJob) DeleteUserAnnotations(deleteuserannotations bool) *ResetJob {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ResetJob) ErrorTrace(errortrace bool) *ResetJob {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ResetJob) FilterPath(filterpaths ...string) *ResetJob {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ResetJob) Human(human bool) *ResetJob {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ResetJob) Pretty(pretty bool) *ResetJob {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/resetjob/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/resetjob/response.go
index 37777e7dde..c62d500b87 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/resetjob/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/resetjob/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package resetjob
// Response holds the response body struct for the package resetjob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/reset_job/MlResetJobResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/reset_job/MlResetJobResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/revertmodelsnapshot/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/revertmodelsnapshot/request.go
index f9de4a9a66..4339ae587a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/revertmodelsnapshot/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/revertmodelsnapshot/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package revertmodelsnapshot
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package revertmodelsnapshot
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L69
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L69
type Request struct {
// DeleteInterveningResults Refer to the description for the `delete_intervening_results` query
@@ -38,6 +38,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/revertmodelsnapshot/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/revertmodelsnapshot/response.go
index ce1d049ef6..fcbd3e9897 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/revertmodelsnapshot/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/revertmodelsnapshot/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package revertmodelsnapshot
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package revertmodelsnapshot
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/revert_model_snapshot/MlRevertModelSnapshotResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/revert_model_snapshot/MlRevertModelSnapshotResponse.ts#L22-L24
type Response struct {
Model types.ModelSnapshot `json:"model"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/revertmodelsnapshot/revert_model_snapshot.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/revertmodelsnapshot/revert_model_snapshot.go
index bcc04cbeda..b326cdd13e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/revertmodelsnapshot/revert_model_snapshot.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/revertmodelsnapshot/revert_model_snapshot.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Reverts to a specific snapshot.
package revertmodelsnapshot
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -340,6 +341,50 @@ func (r *RevertModelSnapshot) _snapshotid(snapshotid string) *RevertModelSnapsho
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *RevertModelSnapshot) ErrorTrace(errortrace bool) *RevertModelSnapshot {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *RevertModelSnapshot) FilterPath(filterpaths ...string) *RevertModelSnapshot {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *RevertModelSnapshot) Human(human bool) *RevertModelSnapshot {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *RevertModelSnapshot) Pretty(pretty bool) *RevertModelSnapshot {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// DeleteInterveningResults Refer to the description for the `delete_intervening_results` query
// parameter.
// API name: delete_intervening_results
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/setupgrademode/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/setupgrademode/response.go
index a441190d09..136351f14e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/setupgrademode/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/setupgrademode/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package setupgrademode
// Response holds the response body struct for the package setupgrademode
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/set_upgrade_mode/MlSetUpgradeModeResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/set_upgrade_mode/MlSetUpgradeModeResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/setupgrademode/set_upgrade_mode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/setupgrademode/set_upgrade_mode.go
index d9893a9249..bf5a0a0c5a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/setupgrademode/set_upgrade_mode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/setupgrademode/set_upgrade_mode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Sets a cluster wide upgrade_mode setting that prepares machine learning
// indices for an upgrade.
@@ -28,7 +28,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -251,7 +250,7 @@ func (r SetUpgradeMode) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -296,3 +295,47 @@ func (r *SetUpgradeMode) Timeout(duration string) *SetUpgradeMode {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *SetUpgradeMode) ErrorTrace(errortrace bool) *SetUpgradeMode {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *SetUpgradeMode) FilterPath(filterpaths ...string) *SetUpgradeMode {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *SetUpgradeMode) Human(human bool) *SetUpgradeMode {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *SetUpgradeMode) Pretty(pretty bool) *SetUpgradeMode {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdatafeed/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdatafeed/request.go
index df98f83c94..030aca38e0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdatafeed/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdatafeed/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package startdatafeed
@@ -32,7 +32,7 @@ import (
// Request holds the request body struct for the package startdatafeed
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L91
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L91
type Request struct {
// End Refer to the description for the `end` query parameter.
@@ -46,6 +46,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdatafeed/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdatafeed/response.go
index 9b04f6ebf6..ad82d43987 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdatafeed/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdatafeed/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package startdatafeed
@@ -31,7 +31,7 @@ import (
// Response holds the response body struct for the package startdatafeed
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/start_datafeed/MlStartDatafeedResponse.ts#L22-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/start_datafeed/MlStartDatafeedResponse.ts#L22-L34
type Response struct {
// Node The ID of the node that the job was started on. In serverless this will be
@@ -81,7 +81,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "started":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdatafeed/start_datafeed.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdatafeed/start_datafeed.go
index f770657c2d..af7c824cc7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdatafeed/start_datafeed.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdatafeed/start_datafeed.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Starts one or more datafeeds.
package startdatafeed
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -320,6 +321,50 @@ func (r *StartDatafeed) _datafeedid(datafeedid string) *StartDatafeed {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *StartDatafeed) ErrorTrace(errortrace bool) *StartDatafeed {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *StartDatafeed) FilterPath(filterpaths ...string) *StartDatafeed {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *StartDatafeed) Human(human bool) *StartDatafeed {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *StartDatafeed) Pretty(pretty bool) *StartDatafeed {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// End Refer to the description for the `end` query parameter.
// API name: end
func (r *StartDatafeed) End(datetime types.DateTime) *StartDatafeed {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdataframeanalytics/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdataframeanalytics/response.go
index 10c3838eaf..7efc56c038 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdataframeanalytics/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdataframeanalytics/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package startdataframeanalytics
// Response holds the response body struct for the package startdataframeanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsResponse.ts#L22-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsResponse.ts#L22-L34
type Response struct {
Acknowledged bool `json:"acknowledged"`
// Node The ID of the node that the job was started on. If the job is allowed to open
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdataframeanalytics/start_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdataframeanalytics/start_data_frame_analytics.go
index 60687c60ea..1c5285381d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdataframeanalytics/start_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdataframeanalytics/start_data_frame_analytics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Starts a data frame analytics job.
package startdataframeanalytics
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -272,7 +272,7 @@ func (r StartDataFrameAnalytics) IsSuccess(providedCtx context.Context) (bool, e
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -319,3 +319,47 @@ func (r *StartDataFrameAnalytics) Timeout(duration string) *StartDataFrameAnalyt
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *StartDataFrameAnalytics) ErrorTrace(errortrace bool) *StartDataFrameAnalytics {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *StartDataFrameAnalytics) FilterPath(filterpaths ...string) *StartDataFrameAnalytics {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *StartDataFrameAnalytics) Human(human bool) *StartDataFrameAnalytics {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *StartDataFrameAnalytics) Pretty(pretty bool) *StartDataFrameAnalytics {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/starttrainedmodeldeployment/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/starttrainedmodeldeployment/response.go
index d4242f4ad0..4a059ccc62 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/starttrainedmodeldeployment/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/starttrainedmodeldeployment/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package starttrainedmodeldeployment
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package starttrainedmodeldeployment
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentResponse.ts#L22-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentResponse.ts#L22-L26
type Response struct {
Assignment types.TrainedModelAssignment `json:"assignment"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/starttrainedmodeldeployment/start_trained_model_deployment.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/starttrainedmodeldeployment/start_trained_model_deployment.go
index 376bc99470..553f5ccb82 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/starttrainedmodeldeployment/start_trained_model_deployment.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/starttrainedmodeldeployment/start_trained_model_deployment.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Start a trained model deployment.
package starttrainedmodeldeployment
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -275,7 +274,7 @@ func (r StartTrainedModelDeployment) IsSuccess(providedCtx context.Context) (boo
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -397,3 +396,47 @@ func (r *StartTrainedModelDeployment) WaitFor(waitfor deploymentallocationstate.
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *StartTrainedModelDeployment) ErrorTrace(errortrace bool) *StartTrainedModelDeployment {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *StartTrainedModelDeployment) FilterPath(filterpaths ...string) *StartTrainedModelDeployment {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *StartTrainedModelDeployment) Human(human bool) *StartTrainedModelDeployment {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *StartTrainedModelDeployment) Pretty(pretty bool) *StartTrainedModelDeployment {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdatafeed/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdatafeed/request.go
index efc236040a..60b36fcf06 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdatafeed/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdatafeed/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stopdatafeed
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package stopdatafeed
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L78
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L78
type Request struct {
// AllowNoMatch Refer to the description for the `allow_no_match` query parameter.
@@ -47,6 +47,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -77,7 +78,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "allow_no_match":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +92,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "force":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdatafeed/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdatafeed/response.go
index ae3fa6544a..b74cff306a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdatafeed/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdatafeed/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stopdatafeed
// Response holds the response body struct for the package stopdatafeed
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/stop_datafeed/MlStopDatafeedResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/stop_datafeed/MlStopDatafeedResponse.ts#L20-L22
type Response struct {
Stopped bool `json:"stopped"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdatafeed/stop_datafeed.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdatafeed/stop_datafeed.go
index cce7dae07a..47b87c88f1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdatafeed/stop_datafeed.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdatafeed/stop_datafeed.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Stops one or more datafeeds.
package stopdatafeed
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -320,6 +321,50 @@ func (r *StopDatafeed) _datafeedid(datafeedid string) *StopDatafeed {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *StopDatafeed) ErrorTrace(errortrace bool) *StopDatafeed {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *StopDatafeed) FilterPath(filterpaths ...string) *StopDatafeed {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *StopDatafeed) Human(human bool) *StopDatafeed {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *StopDatafeed) Pretty(pretty bool) *StopDatafeed {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AllowNoMatch Refer to the description for the `allow_no_match` query parameter.
// API name: allow_no_match
func (r *StopDatafeed) AllowNoMatch(allownomatch bool) *StopDatafeed {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdataframeanalytics/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdataframeanalytics/response.go
index 64f8a14b45..2cd54c1440 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdataframeanalytics/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdataframeanalytics/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stopdataframeanalytics
// Response holds the response body struct for the package stopdataframeanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsResponse.ts#L20-L22
type Response struct {
Stopped bool `json:"stopped"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdataframeanalytics/stop_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdataframeanalytics/stop_data_frame_analytics.go
index 53851cde55..f85080523c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdataframeanalytics/stop_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdataframeanalytics/stop_data_frame_analytics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Stops one or more data frame analytics jobs.
package stopdataframeanalytics
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -273,7 +272,7 @@ func (r StopDataFrameAnalytics) IsSuccess(providedCtx context.Context) (bool, er
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -346,3 +345,47 @@ func (r *StopDataFrameAnalytics) Timeout(duration string) *StopDataFrameAnalytic
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *StopDataFrameAnalytics) ErrorTrace(errortrace bool) *StopDataFrameAnalytics {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *StopDataFrameAnalytics) FilterPath(filterpaths ...string) *StopDataFrameAnalytics {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *StopDataFrameAnalytics) Human(human bool) *StopDataFrameAnalytics {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *StopDataFrameAnalytics) Pretty(pretty bool) *StopDataFrameAnalytics {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stoptrainedmodeldeployment/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stoptrainedmodeldeployment/response.go
index 25497e606a..598c065707 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stoptrainedmodeldeployment/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stoptrainedmodeldeployment/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stoptrainedmodeldeployment
// Response holds the response body struct for the package stoptrainedmodeldeployment
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentResponse.ts#L20-L22
type Response struct {
Stopped bool `json:"stopped"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stoptrainedmodeldeployment/stop_trained_model_deployment.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stoptrainedmodeldeployment/stop_trained_model_deployment.go
index ddb7861109..962156b17f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stoptrainedmodeldeployment/stop_trained_model_deployment.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/stoptrainedmodeldeployment/stop_trained_model_deployment.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Stop a trained model deployment.
package stoptrainedmodeldeployment
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -273,7 +272,7 @@ func (r StopTrainedModelDeployment) IsSuccess(providedCtx context.Context) (bool
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -335,3 +334,47 @@ func (r *StopTrainedModelDeployment) Force(force bool) *StopTrainedModelDeployme
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *StopTrainedModelDeployment) ErrorTrace(errortrace bool) *StopTrainedModelDeployment {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *StopTrainedModelDeployment) FilterPath(filterpaths ...string) *StopTrainedModelDeployment {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *StopTrainedModelDeployment) Human(human bool) *StopTrainedModelDeployment {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *StopTrainedModelDeployment) Pretty(pretty bool) *StopTrainedModelDeployment {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedatafeed/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedatafeed/request.go
index adfd27bb61..9a3134cf0f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedatafeed/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedatafeed/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatedatafeed
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package updatedatafeed
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L162
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L162
type Request struct {
// Aggregations If set, the datafeed performs aggregation searches. Support for aggregations
@@ -123,6 +123,7 @@ func NewRequest() *Request {
Aggregations: make(map[string]types.Aggregations, 0),
ScriptFields: make(map[string]types.ScriptField, 0),
}
+
return r
}
@@ -192,7 +193,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "max_empty_searches":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -231,7 +232,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "scroll_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedatafeed/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedatafeed/response.go
index cc62f441fd..a959640ccf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedatafeed/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedatafeed/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatedatafeed
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package updatedatafeed
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts#L31-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts#L31-L49
type Response struct {
Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"`
Authorization *types.DatafeedAuthorization `json:"authorization,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedatafeed/update_datafeed.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedatafeed/update_datafeed.go
index 6444bf79f2..a30e861ea6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedatafeed/update_datafeed.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedatafeed/update_datafeed.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates certain properties of a datafeed.
package updatedatafeed
@@ -371,6 +371,50 @@ func (r *UpdateDatafeed) IgnoreUnavailable(ignoreunavailable bool) *UpdateDatafe
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *UpdateDatafeed) ErrorTrace(errortrace bool) *UpdateDatafeed {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *UpdateDatafeed) FilterPath(filterpaths ...string) *UpdateDatafeed {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *UpdateDatafeed) Human(human bool) *UpdateDatafeed {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *UpdateDatafeed) Pretty(pretty bool) *UpdateDatafeed {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Aggregations If set, the datafeed performs aggregation searches. Support for aggregations
// is limited and should be used only
// with low cardinality data.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedataframeanalytics/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedataframeanalytics/request.go
index 55376f185c..eef8fb9b59 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedataframeanalytics/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedataframeanalytics/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatedataframeanalytics
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package updatedataframeanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L72
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L72
type Request struct {
// AllowLazyStart Specifies whether this job can start when there is insufficient machine
@@ -51,6 +51,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedataframeanalytics/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedataframeanalytics/response.go
index 69064b4b1c..f9e85cc044 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedataframeanalytics/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedataframeanalytics/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatedataframeanalytics
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package updatedataframeanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsResponse.ts#L30-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsResponse.ts#L30-L45
type Response struct {
AllowLazyStart bool `json:"allow_lazy_start"`
Analysis types.DataframeAnalysisContainer `json:"analysis"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedataframeanalytics/update_data_frame_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedataframeanalytics/update_data_frame_analytics.go
index c10e4387be..4337400e5a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedataframeanalytics/update_data_frame_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedataframeanalytics/update_data_frame_analytics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates certain properties of a data frame analytics job.
package updatedataframeanalytics
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -320,6 +321,50 @@ func (r *UpdateDataFrameAnalytics) _id(id string) *UpdateDataFrameAnalytics {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *UpdateDataFrameAnalytics) ErrorTrace(errortrace bool) *UpdateDataFrameAnalytics {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *UpdateDataFrameAnalytics) FilterPath(filterpaths ...string) *UpdateDataFrameAnalytics {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *UpdateDataFrameAnalytics) Human(human bool) *UpdateDataFrameAnalytics {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *UpdateDataFrameAnalytics) Pretty(pretty bool) *UpdateDataFrameAnalytics {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AllowLazyStart Specifies whether this job can start when there is insufficient machine
// learning node capacity for it to be immediately assigned to a node.
// API name: allow_lazy_start
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter/request.go
index 7f5e05ec13..f962200633 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatefilter
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package updatefilter
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/update_filter/MlUpdateFilterRequest.ts#L23-L51
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_filter/MlUpdateFilterRequest.ts#L23-L51
type Request struct {
// AddItems The items to add to the filter.
@@ -41,6 +41,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter/response.go
index 31f283a5af..2345b5d405 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatefilter
// Response holds the response body struct for the package updatefilter
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/update_filter/MlUpdateFilterResponse.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_filter/MlUpdateFilterResponse.ts#L22-L28
type Response struct {
Description string `json:"description"`
FilterId string `json:"filter_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter/update_filter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter/update_filter.go
index 8acd86bf41..22a3b3d4a9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter/update_filter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter/update_filter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates the description of a filter, adds items, or removes items.
package updatefilter
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -316,6 +317,50 @@ func (r *UpdateFilter) _filterid(filterid string) *UpdateFilter {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *UpdateFilter) ErrorTrace(errortrace bool) *UpdateFilter {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *UpdateFilter) FilterPath(filterpaths ...string) *UpdateFilter {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *UpdateFilter) Human(human bool) *UpdateFilter {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *UpdateFilter) Pretty(pretty bool) *UpdateFilter {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AddItems The items to add to the filter.
// API name: add_items
func (r *UpdateFilter) AddItems(additems ...string) *UpdateFilter {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/request.go
index 18361038c6..58b68d2702 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatejob
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package updatejob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/update_job/MlUpdateJobRequest.ts#L33-L138
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_job/MlUpdateJobRequest.ts#L33-L138
type Request struct {
// AllowLazyOpen Advanced configuration option. Specifies whether this job can open when
@@ -103,6 +103,7 @@ func NewRequest() *Request {
r := &Request{
CustomSettings: make(map[string]json.RawMessage, 0),
}
+
return r
}
@@ -133,7 +134,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "allow_lazy_open":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -170,7 +171,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "daily_model_snapshot_retention_after_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -217,7 +218,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "model_snapshot_retention_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -237,7 +238,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "renormalization_window_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -252,7 +253,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "results_retention_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/response.go
index f683abbb2d..9e6c9c5e57 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatejob
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package updatejob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/update_job/MlUpdateJobResponse.ts#L29-L53
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_job/MlUpdateJobResponse.ts#L29-L53
type Response struct {
AllowLazyOpen bool `json:"allow_lazy_open"`
AnalysisConfig types.AnalysisConfigRead `json:"analysis_config"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/update_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/update_job.go
index 544b38d8f3..777d349d2c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/update_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob/update_job.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates certain properties of an anomaly detection job.
package updatejob
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -316,6 +317,50 @@ func (r *UpdateJob) _jobid(jobid string) *UpdateJob {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *UpdateJob) ErrorTrace(errortrace bool) *UpdateJob {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *UpdateJob) FilterPath(filterpaths ...string) *UpdateJob {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *UpdateJob) Human(human bool) *UpdateJob {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *UpdateJob) Pretty(pretty bool) *UpdateJob {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AllowLazyOpen Advanced configuration option. Specifies whether this job can open when
// there is insufficient machine learning node capacity for it to be
// immediately assigned to a node. If `false` and a machine learning node
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot/request.go
index ac210d26a7..1093c20713 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatemodelsnapshot
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package updatemodelsnapshot
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L54
type Request struct {
// Description A description of the model snapshot.
@@ -41,6 +41,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot/response.go
index f06f32fe75..916fcc86e9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatemodelsnapshot
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package updatemodelsnapshot
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/update_model_snapshot/MlUpdateModelSnapshotResponse.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_model_snapshot/MlUpdateModelSnapshotResponse.ts#L22-L27
type Response struct {
Acknowledged bool `json:"acknowledged"`
Model types.ModelSnapshot `json:"model"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot/update_model_snapshot.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot/update_model_snapshot.go
index 4506301608..86df1a428a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot/update_model_snapshot.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot/update_model_snapshot.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates certain properties of a snapshot.
package updatemodelsnapshot
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -338,6 +339,50 @@ func (r *UpdateModelSnapshot) _snapshotid(snapshotid string) *UpdateModelSnapsho
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *UpdateModelSnapshot) ErrorTrace(errortrace bool) *UpdateModelSnapshot {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *UpdateModelSnapshot) FilterPath(filterpaths ...string) *UpdateModelSnapshot {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *UpdateModelSnapshot) Human(human bool) *UpdateModelSnapshot {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *UpdateModelSnapshot) Pretty(pretty bool) *UpdateModelSnapshot {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Description A description of the model snapshot.
// API name: description
func (r *UpdateModelSnapshot) Description(description string) *UpdateModelSnapshot {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment/request.go
new file mode 100644
index 0000000000..8aa4306e6c
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment/request.go
@@ -0,0 +1,60 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Code generated from the elasticsearch-specification DO NOT EDIT.
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
+
+package updatetrainedmodeldeployment
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// Request holds the request body struct for the package updatetrainedmodeldeployment
+//
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L24-L50
+type Request struct {
+
+ // NumberOfAllocations The number of model allocations on each node where the model is deployed.
+ // All allocations on a node share the same copy of the model in memory but use
+ // a separate set of threads to evaluate the model.
+ // Increasing this value generally increases the throughput.
+ // If this setting is greater than the number of hardware threads
+ // it will automatically be changed to a value less than the number of hardware
+ // threads.
+ NumberOfAllocations *int `json:"number_of_allocations,omitempty"`
+}
+
+// NewRequest returns a Request
+func NewRequest() *Request {
+ r := &Request{}
+
+ return r
+}
+
+// FromJSON allows to load an arbitrary json into the request structure
+func (r *Request) FromJSON(data string) (*Request, error) {
+ var req Request
+ err := json.Unmarshal([]byte(data), &req)
+
+ if err != nil {
+ return nil, fmt.Errorf("could not deserialise json into Updatetrainedmodeldeployment request: %w", err)
+ }
+
+ return &req, nil
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment/response.go
new file mode 100644
index 0000000000..25553bb794
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment/response.go
@@ -0,0 +1,38 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Code generated from the elasticsearch-specification DO NOT EDIT.
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
+
+package updatetrainedmodeldeployment
+
+import (
+ "github.com/elastic/go-elasticsearch/v8/typedapi/types"
+)
+
+// Response holds the response body struct for the package updatetrainedmodeldeployment
+//
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentResponse.ts#L22-L26
+type Response struct {
+ Assignment types.TrainedModelAssignment `json:"assignment"`
+}
+
+// NewResponse returns a Response
+func NewResponse() *Response {
+ r := &Response{}
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment/update_trained_model_deployment.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment/update_trained_model_deployment.go
new file mode 100644
index 0000000000..22f0716072
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment/update_trained_model_deployment.go
@@ -0,0 +1,379 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Code generated from the elasticsearch-specification DO NOT EDIT.
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
+
+// Updates certain properties of trained model deployment.
+package updatetrainedmodeldeployment
+
+import (
+ gobytes "bytes"
+ "context"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "net/http"
+ "net/url"
+ "strconv"
+ "strings"
+
+ "github.com/elastic/elastic-transport-go/v8/elastictransport"
+ "github.com/elastic/go-elasticsearch/v8/typedapi/types"
+)
+
+const (
+ modelidMask = iota + 1
+)
+
+// ErrBuildPath is returned in case of missing parameters within the build of the request.
+var ErrBuildPath = errors.New("cannot build path, check for missing path parameters")
+
+type UpdateTrainedModelDeployment struct {
+ transport elastictransport.Interface
+
+ headers http.Header
+ values url.Values
+ path url.URL
+
+ raw io.Reader
+
+ req *Request
+ deferred []func(request *Request) error
+ buf *gobytes.Buffer
+
+ paramSet int
+
+ modelid string
+
+ spanStarted bool
+
+ instrument elastictransport.Instrumentation
+}
+
+// NewUpdateTrainedModelDeployment type alias for index.
+type NewUpdateTrainedModelDeployment func(modelid string) *UpdateTrainedModelDeployment
+
+// NewUpdateTrainedModelDeploymentFunc returns a new instance of UpdateTrainedModelDeployment with the provided transport.
+// Used in the index of the library this allows to retrieve every apis in once place.
+func NewUpdateTrainedModelDeploymentFunc(tp elastictransport.Interface) NewUpdateTrainedModelDeployment {
+ return func(modelid string) *UpdateTrainedModelDeployment {
+ n := New(tp)
+
+ n._modelid(modelid)
+
+ return n
+ }
+}
+
+// Updates certain properties of trained model deployment.
+//
+// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-trained-model-deployment.html
+func New(tp elastictransport.Interface) *UpdateTrainedModelDeployment {
+ r := &UpdateTrainedModelDeployment{
+ transport: tp,
+ values: make(url.Values),
+ headers: make(http.Header),
+
+ buf: gobytes.NewBuffer(nil),
+
+ req: NewRequest(),
+ }
+
+ if instrumented, ok := r.transport.(elastictransport.Instrumented); ok {
+ if instrument := instrumented.InstrumentationEnabled(); instrument != nil {
+ r.instrument = instrument
+ }
+ }
+
+ return r
+}
+
+// Raw takes a json payload as input which is then passed to the http.Request
+// If specified Raw takes precedence on Request method.
+func (r *UpdateTrainedModelDeployment) Raw(raw io.Reader) *UpdateTrainedModelDeployment {
+ r.raw = raw
+
+ return r
+}
+
+// Request allows to set the request property with the appropriate payload.
+func (r *UpdateTrainedModelDeployment) Request(req *Request) *UpdateTrainedModelDeployment {
+ r.req = req
+
+ return r
+}
+
+// HttpRequest returns the http.Request object built from the
+// given parameters.
+func (r *UpdateTrainedModelDeployment) HttpRequest(ctx context.Context) (*http.Request, error) {
+ var path strings.Builder
+ var method string
+ var req *http.Request
+
+ var err error
+
+ if len(r.deferred) > 0 {
+ for _, f := range r.deferred {
+ deferredErr := f(r.req)
+ if deferredErr != nil {
+ return nil, deferredErr
+ }
+ }
+ }
+
+ if r.raw == nil && r.req != nil {
+
+ data, err := json.Marshal(r.req)
+
+ if err != nil {
+ return nil, fmt.Errorf("could not serialise request for UpdateTrainedModelDeployment: %w", err)
+ }
+
+ r.buf.Write(data)
+
+ }
+
+ if r.buf.Len() > 0 {
+ r.raw = r.buf
+ }
+
+ r.path.Scheme = "http"
+
+ switch {
+ case r.paramSet == modelidMask:
+ path.WriteString("/")
+ path.WriteString("_ml")
+ path.WriteString("/")
+ path.WriteString("trained_models")
+ path.WriteString("/")
+
+ if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
+ instrument.RecordPathPart(ctx, "modelid", r.modelid)
+ }
+ path.WriteString(r.modelid)
+ path.WriteString("/")
+ path.WriteString("deployment")
+ path.WriteString("/")
+ path.WriteString("_update")
+
+ method = http.MethodPost
+ }
+
+ r.path.Path = path.String()
+ r.path.RawQuery = r.values.Encode()
+
+ if r.path.Path == "" {
+ return nil, ErrBuildPath
+ }
+
+ if ctx != nil {
+ req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw)
+ } else {
+ req, err = http.NewRequest(method, r.path.String(), r.raw)
+ }
+
+ req.Header = r.headers.Clone()
+
+ if req.Header.Get("Content-Type") == "" {
+ if r.raw != nil {
+ req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8")
+ }
+ }
+
+ if req.Header.Get("Accept") == "" {
+ req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8")
+ }
+
+ if err != nil {
+ return req, fmt.Errorf("could not build http.Request: %w", err)
+ }
+
+ return req, nil
+}
+
+// Perform runs the http.Request through the provided transport and returns an http.Response.
+func (r UpdateTrainedModelDeployment) Perform(providedCtx context.Context) (*http.Response, error) {
+ var ctx context.Context
+ if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
+ if r.spanStarted == false {
+ ctx := instrument.Start(providedCtx, "ml.update_trained_model_deployment")
+ defer instrument.Close(ctx)
+ }
+ }
+ if ctx == nil {
+ ctx = providedCtx
+ }
+
+ req, err := r.HttpRequest(ctx)
+ if err != nil {
+ if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return nil, err
+ }
+
+ if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
+ instrument.BeforeRequest(req, "ml.update_trained_model_deployment")
+ if reader := instrument.RecordRequestBody(ctx, "ml.update_trained_model_deployment", r.raw); reader != nil {
+ req.Body = reader
+ }
+ }
+ res, err := r.transport.Perform(req)
+ if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
+ instrument.AfterRequest(req, "elasticsearch", "ml.update_trained_model_deployment")
+ }
+ if err != nil {
+ localErr := fmt.Errorf("an error happened during the UpdateTrainedModelDeployment query execution: %w", err)
+ if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
+ instrument.RecordError(ctx, localErr)
+ }
+ return nil, localErr
+ }
+
+ return res, nil
+}
+
+// Do runs the request through the transport, handle the response and returns a updatetrainedmodeldeployment.Response
+func (r UpdateTrainedModelDeployment) Do(providedCtx context.Context) (*Response, error) {
+ var ctx context.Context
+ r.spanStarted = true
+ if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
+ ctx = instrument.Start(providedCtx, "ml.update_trained_model_deployment")
+ defer instrument.Close(ctx)
+ }
+ if ctx == nil {
+ ctx = providedCtx
+ }
+
+ response := NewResponse()
+
+ res, err := r.Perform(ctx)
+ if err != nil {
+ if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return nil, err
+ }
+ defer res.Body.Close()
+
+ if res.StatusCode < 299 {
+ err = json.NewDecoder(res.Body).Decode(response)
+ if err != nil {
+ if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return nil, err
+ }
+
+ return response, nil
+ }
+
+ errorResponse := types.NewElasticsearchError()
+ err = json.NewDecoder(res.Body).Decode(errorResponse)
+ if err != nil {
+ if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
+ instrument.RecordError(ctx, err)
+ }
+ return nil, err
+ }
+
+ if errorResponse.Status == 0 {
+ errorResponse.Status = res.StatusCode
+ }
+
+ if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
+ instrument.RecordError(ctx, errorResponse)
+ }
+ return nil, errorResponse
+}
+
+// Header set a key, value pair in the UpdateTrainedModelDeployment headers map.
+func (r *UpdateTrainedModelDeployment) Header(key, value string) *UpdateTrainedModelDeployment {
+ r.headers.Set(key, value)
+
+ return r
+}
+
+// ModelId The unique identifier of the trained model. Currently, only PyTorch models
+// are supported.
+// API Name: modelid
+func (r *UpdateTrainedModelDeployment) _modelid(modelid string) *UpdateTrainedModelDeployment {
+ r.paramSet |= modelidMask
+ r.modelid = modelid
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *UpdateTrainedModelDeployment) ErrorTrace(errortrace bool) *UpdateTrainedModelDeployment {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *UpdateTrainedModelDeployment) FilterPath(filterpaths ...string) *UpdateTrainedModelDeployment {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *UpdateTrainedModelDeployment) Human(human bool) *UpdateTrainedModelDeployment {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *UpdateTrainedModelDeployment) Pretty(pretty bool) *UpdateTrainedModelDeployment {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
+// NumberOfAllocations The number of model allocations on each node where the model is deployed.
+// All allocations on a node share the same copy of the model in memory but use
+// a separate set of threads to evaluate the model.
+// Increasing this value generally increases the throughput.
+// If this setting is greater than the number of hardware threads
+// it will automatically be changed to a value less than the number of hardware
+// threads.
+// API name: number_of_allocations
+func (r *UpdateTrainedModelDeployment) NumberOfAllocations(numberofallocations int) *UpdateTrainedModelDeployment {
+ r.req.NumberOfAllocations = &numberofallocations
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/upgradejobsnapshot/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/upgradejobsnapshot/response.go
index 971e00f447..15bd4c5f3f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/upgradejobsnapshot/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/upgradejobsnapshot/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package upgradejobsnapshot
// Response holds the response body struct for the package upgradejobsnapshot
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotResponse.ts#L22-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotResponse.ts#L22-L31
type Response struct {
// Completed When true, this means the task is complete. When false, it is still running.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/upgradejobsnapshot/upgrade_job_snapshot.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/upgradejobsnapshot/upgrade_job_snapshot.go
index e35d11510e..02a5e1a286 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/upgradejobsnapshot/upgrade_job_snapshot.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/upgradejobsnapshot/upgrade_job_snapshot.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Upgrades a given job snapshot to the current major version.
package upgradejobsnapshot
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -278,7 +277,7 @@ func (r UpgradeJobSnapshot) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -340,3 +339,47 @@ func (r *UpgradeJobSnapshot) Timeout(duration string) *UpgradeJobSnapshot {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *UpgradeJobSnapshot) ErrorTrace(errortrace bool) *UpgradeJobSnapshot {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *UpgradeJobSnapshot) FilterPath(filterpaths ...string) *UpgradeJobSnapshot {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *UpgradeJobSnapshot) Human(human bool) *UpgradeJobSnapshot {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *UpgradeJobSnapshot) Pretty(pretty bool) *UpgradeJobSnapshot {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate/request.go
index 73cd587ff7..982a77cb13 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package validate
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package validate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/validate/MlValidateJobRequest.ts#L27-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/validate/MlValidateJobRequest.ts#L27-L44
type Request struct {
AnalysisConfig *types.AnalysisConfig `json:"analysis_config,omitempty"`
AnalysisLimits *types.AnalysisLimits `json:"analysis_limits,omitempty"`
@@ -49,6 +49,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -121,7 +122,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "model_snapshot_retention_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate/response.go
index 2c64565351..60db7eb69d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package validate
// Response holds the response body struct for the package validate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/validate/MlValidateJobResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/validate/MlValidateJobResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate/validate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate/validate.go
index 7955631cd0..61ef3fe93a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate/validate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate/validate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Validates an anomaly detection job.
package validate
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -293,6 +294,50 @@ func (r *Validate) Header(key, value string) *Validate {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Validate) ErrorTrace(errortrace bool) *Validate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Validate) FilterPath(filterpaths ...string) *Validate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Validate) Human(human bool) *Validate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Validate) Pretty(pretty bool) *Validate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: analysis_config
func (r *Validate) AnalysisConfig(analysisconfig *types.AnalysisConfig) *Validate {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector/request.go
index 51a8e4568e..7c386e3763 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package validatedetector
@@ -26,7 +26,7 @@ import (
// Request holds the request body struct for the package validatedetector
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/validate_detector/MlValidateDetectorRequest.ts#L23-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/validate_detector/MlValidateDetectorRequest.ts#L23-L31
type Request = types.Detector
// NewRequest returns a Request
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector/response.go
index 230e6a015d..32912b964a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package validatedetector
// Response holds the response body struct for the package validatedetector
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/validate_detector/MlValidateDetectorResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/validate_detector/MlValidateDetectorResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector/validate_detector.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector/validate_detector.go
index 582a52be5c..2d69c72672 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector/validate_detector.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector/validate_detector.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Validates an anomaly detection detector.
package validatedetector
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -296,6 +297,50 @@ func (r *ValidateDetector) Header(key, value string) *ValidateDetector {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ValidateDetector) ErrorTrace(errortrace bool) *ValidateDetector {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ValidateDetector) FilterPath(filterpaths ...string) *ValidateDetector {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ValidateDetector) Human(human bool) *ValidateDetector {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ValidateDetector) Pretty(pretty bool) *ValidateDetector {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// ByFieldName The field used to split the data. In particular, this property is used for
// analyzing the splits with respect to their own history. It is used for
// finding unusual values in the context of the split.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/monitoring/bulk/bulk.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/monitoring/bulk/bulk.go
index dcd29d9c88..92247ea8df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/monitoring/bulk/bulk.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/monitoring/bulk/bulk.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Used by the monitoring features to send monitoring data.
package bulk
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -344,3 +345,47 @@ func (r *Bulk) Interval(duration string) *Bulk {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Bulk) ErrorTrace(errortrace bool) *Bulk {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Bulk) FilterPath(filterpaths ...string) *Bulk {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Bulk) Human(human bool) *Bulk {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Bulk) Pretty(pretty bool) *Bulk {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/monitoring/bulk/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/monitoring/bulk/request.go
index a629b20ea5..37b845e152 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/monitoring/bulk/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/monitoring/bulk/request.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package bulk
// Request holds the request body struct for the package bulk
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/monitoring/bulk/BulkMonitoringRequest.ts#L24-L59
-type Request = []interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/monitoring/bulk/BulkMonitoringRequest.ts#L24-L59
+type Request = []any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/monitoring/bulk/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/monitoring/bulk/response.go
index c171c38528..5721991e70 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/monitoring/bulk/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/monitoring/bulk/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package bulk
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package bulk
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/monitoring/bulk/BulkMonitoringResponse.ts#L23-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/monitoring/bulk/BulkMonitoringResponse.ts#L23-L32
type Response struct {
Error *types.ErrorCause `json:"error,omitempty"`
// Errors True if there is was an error
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/clearrepositoriesmeteringarchive/clear_repositories_metering_archive.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/clearrepositoriesmeteringarchive/clear_repositories_metering_archive.go
index 1c45ed76f2..ddbf839302 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/clearrepositoriesmeteringarchive/clear_repositories_metering_archive.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/clearrepositoriesmeteringarchive/clear_repositories_metering_archive.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Removes the archived repositories metering information present in the
// cluster.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -275,7 +275,7 @@ func (r ClearRepositoriesMeteringArchive) IsSuccess(providedCtx context.Context)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -324,3 +324,47 @@ func (r *ClearRepositoriesMeteringArchive) _maxarchiveversion(maxarchiveversion
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ClearRepositoriesMeteringArchive) ErrorTrace(errortrace bool) *ClearRepositoriesMeteringArchive {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ClearRepositoriesMeteringArchive) FilterPath(filterpaths ...string) *ClearRepositoriesMeteringArchive {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ClearRepositoriesMeteringArchive) Human(human bool) *ClearRepositoriesMeteringArchive {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ClearRepositoriesMeteringArchive) Pretty(pretty bool) *ClearRepositoriesMeteringArchive {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/clearrepositoriesmeteringarchive/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/clearrepositoriesmeteringarchive/response.go
index 75985d8386..275f21d8ea 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/clearrepositoriesmeteringarchive/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/clearrepositoriesmeteringarchive/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clearrepositoriesmeteringarchive
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package clearrepositoriesmeteringarchive
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L36-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L36-L38
type Response struct {
// ClusterName Name of the cluster. Based on the [Cluster name
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/getrepositoriesmeteringinfo/get_repositories_metering_info.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/getrepositoriesmeteringinfo/get_repositories_metering_info.go
index f959c6c2e3..33c6061922 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/getrepositoriesmeteringinfo/get_repositories_metering_info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/getrepositoriesmeteringinfo/get_repositories_metering_info.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns cluster repositories metering information.
package getrepositoriesmeteringinfo
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r GetRepositoriesMeteringInfo) IsSuccess(providedCtx context.Context) (boo
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -300,3 +300,47 @@ func (r *GetRepositoriesMeteringInfo) _nodeid(nodeid string) *GetRepositoriesMet
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetRepositoriesMeteringInfo) ErrorTrace(errortrace bool) *GetRepositoriesMeteringInfo {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetRepositoriesMeteringInfo) FilterPath(filterpaths ...string) *GetRepositoriesMeteringInfo {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetRepositoriesMeteringInfo) Human(human bool) *GetRepositoriesMeteringInfo {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetRepositoriesMeteringInfo) Pretty(pretty bool) *GetRepositoriesMeteringInfo {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/getrepositoriesmeteringinfo/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/getrepositoriesmeteringinfo/response.go
index 4f2c3bef4e..9959f0a331 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/getrepositoriesmeteringinfo/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/getrepositoriesmeteringinfo/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getrepositoriesmeteringinfo
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getrepositoriesmeteringinfo
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L36-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L36-L38
type Response struct {
// ClusterName Name of the cluster. Based on the [Cluster name
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/hotthreads/hot_threads.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/hotthreads/hot_threads.go
index bcaaa9b406..7acfccc607 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/hotthreads/hot_threads.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/hotthreads/hot_threads.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about hot threads on each node in the cluster.
package hotthreads
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -269,7 +268,7 @@ func (r HotThreads) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -373,3 +372,47 @@ func (r *HotThreads) Sort(sort threadtype.ThreadType) *HotThreads {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *HotThreads) ErrorTrace(errortrace bool) *HotThreads {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *HotThreads) FilterPath(filterpaths ...string) *HotThreads {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *HotThreads) Human(human bool) *HotThreads {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *HotThreads) Pretty(pretty bool) *HotThreads {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/hotthreads/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/hotthreads/response.go
index 108db59f91..fa42e1b5e2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/hotthreads/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/hotthreads/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package hotthreads
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package hotthreads
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/hot_threads/NodesHotThreadsResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/hot_threads/NodesHotThreadsResponse.ts#L22-L24
type Response struct {
HotThreads []types.HotThread `json:"hot_threads"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/info/info.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/info/info.go
index ce8ca039e9..b345b2ac49 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/info/info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/info/info.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about nodes in the cluster.
package info
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -295,7 +294,7 @@ func (r Info) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -367,3 +366,47 @@ func (r *Info) Timeout(duration string) *Info {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Info) ErrorTrace(errortrace bool) *Info {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Info) FilterPath(filterpaths ...string) *Info {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Info) Human(human bool) *Info {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Info) Pretty(pretty bool) *Info {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/info/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/info/response.go
index 727edbb098..43e6c61b9a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/info/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/info/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package info
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package info
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/NodesInfoResponse.ts#L30-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/NodesInfoResponse.ts#L30-L32
type Response struct {
ClusterName string `json:"cluster_name"`
// NodeStats Contains statistics about the number of nodes selected by the request’s node
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings/reload_secure_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings/reload_secure_settings.go
index dad7f787e3..02b7a21771 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings/reload_secure_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings/reload_secure_settings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Reloads secure settings.
package reloadsecuresettings
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -329,6 +330,50 @@ func (r *ReloadSecureSettings) Timeout(duration string) *ReloadSecureSettings {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ReloadSecureSettings) ErrorTrace(errortrace bool) *ReloadSecureSettings {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ReloadSecureSettings) FilterPath(filterpaths ...string) *ReloadSecureSettings {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ReloadSecureSettings) Human(human bool) *ReloadSecureSettings {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ReloadSecureSettings) Pretty(pretty bool) *ReloadSecureSettings {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// SecureSettingsPassword The password for the Elasticsearch keystore.
// API name: secure_settings_password
func (r *ReloadSecureSettings) SecureSettingsPassword(password string) *ReloadSecureSettings {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings/request.go
index 598c6ea180..59f37fe553 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package reloadsecuresettings
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package reloadsecuresettings
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L50
type Request struct {
// SecureSettingsPassword The password for the Elasticsearch keystore.
@@ -37,6 +37,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings/response.go
index bf3336c1c3..1e37d0507e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package reloadsecuresettings
@@ -32,7 +32,7 @@ import (
// Response holds the response body struct for the package reloadsecuresettings
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/reload_secure_settings/ReloadSecureSettingsResponse.ts#L30-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/reload_secure_settings/ReloadSecureSettingsResponse.ts#L30-L32
type Response struct {
ClusterName string `json:"cluster_name"`
// NodeStats Contains statistics about the number of nodes selected by the request’s node
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/stats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/stats/response.go
index dc3ac666d0..44ccd07fc2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/stats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/stats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package stats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/stats/NodesStatsResponse.ts#L30-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/stats/NodesStatsResponse.ts#L30-L32
type Response struct {
ClusterName *string `json:"cluster_name,omitempty"`
// NodeStats Contains statistics about the number of nodes selected by the request’s node
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/stats/stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/stats/stats.go
index 617d56df84..a32740e090 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/stats/stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/stats/stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns statistical information about nodes in the cluster.
package stats
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -351,7 +350,7 @@ func (r Stats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -498,3 +497,47 @@ func (r *Stats) IncludeUnloadedSegments(includeunloadedsegments bool) *Stats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Stats) ErrorTrace(errortrace bool) *Stats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Stats) FilterPath(filterpaths ...string) *Stats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Stats) Human(human bool) *Stats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Stats) Pretty(pretty bool) *Stats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/usage/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/usage/response.go
index 8207d0eb4f..4c4e5eac7a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/usage/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/usage/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package usage
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package usage
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/usage/NodesUsageResponse.ts#L30-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/usage/NodesUsageResponse.ts#L30-L32
type Response struct {
ClusterName string `json:"cluster_name"`
// NodeStats Contains statistics about the number of nodes selected by the request’s node
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/usage/usage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/usage/usage.go
index 9d3fb8355f..15469fe72b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/usage/usage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/nodes/usage/usage.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns low-level information about REST actions usage on nodes.
package usage
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -302,7 +302,7 @@ func (r Usage) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -360,3 +360,47 @@ func (r *Usage) Timeout(duration string) *Usage {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Usage) ErrorTrace(errortrace bool) *Usage {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Usage) FilterPath(filterpaths ...string) *Usage {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Usage) Human(human bool) *Usage {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Usage) Pretty(pretty bool) *Usage {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete/delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete/delete.go
index c0d9231fb6..a0a59f09e5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete/delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete/delete.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes a query ruleset.
package delete
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -260,7 +260,7 @@ func (r Delete) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -296,3 +296,47 @@ func (r *Delete) _rulesetid(rulesetid string) *Delete {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Delete) ErrorTrace(errortrace bool) *Delete {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Delete) FilterPath(filterpaths ...string) *Delete {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Delete) Human(human bool) *Delete {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Delete) Pretty(pretty bool) *Delete {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete/response.go
index efe28747ff..09bef6e6c7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/delete/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package delete
// Response holds the response body struct for the package delete
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/query_ruleset/delete/QueryRulesetDeleteResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/delete/QueryRulesetDeleteResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get/get.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get/get.go
index e2ed7d8eb4..599f312421 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get/get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get/get.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the details about a query ruleset.
package get
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -260,7 +260,7 @@ func (r Get) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -296,3 +296,47 @@ func (r *Get) _rulesetid(rulesetid string) *Get {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Get) ErrorTrace(errortrace bool) *Get {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Get) FilterPath(filterpaths ...string) *Get {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Get) Human(human bool) *Get {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Get) Pretty(pretty bool) *Get {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get/response.go
index f67a2a864c..dfffa07a74 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/get/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package get
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package get
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/query_ruleset/get/QueryRulesetGetResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/get/QueryRulesetGetResponse.ts#L22-L24
type Response struct {
// Rules Rules associated with the query ruleset
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list/list.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list/list.go
index f79489b116..5d7e2de650 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list/list.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list/list.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Lists query rulesets.
package list
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -247,7 +246,7 @@ func (r List) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -290,3 +289,47 @@ func (r *List) Size(size int) *List {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *List) ErrorTrace(errortrace bool) *List {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *List) FilterPath(filterpaths ...string) *List {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *List) Human(human bool) *List {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *List) Pretty(pretty bool) *List {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list/response.go
index 916263c9cf..9db74e87c3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/list/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package list
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package list
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/query_ruleset/list/QueryRulesetListResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/list/QueryRulesetListResponse.ts#L23-L28
type Response struct {
Count int64 `json:"count"`
Results []types.QueryRulesetListItem `json:"results"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/put.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/put.go
index 83208a8786..9e1feab9f5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/put.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/put.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates or updates a query ruleset.
package put
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -312,6 +313,50 @@ func (r *Put) _rulesetid(rulesetid string) *Put {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Put) ErrorTrace(errortrace bool) *Put {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Put) FilterPath(filterpaths ...string) *Put {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Put) Human(human bool) *Put {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Put) Pretty(pretty bool) *Put {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: rules
func (r *Put) Rules(rules ...types.QueryRule) *Put {
r.req.Rules = rules
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/request.go
index 6882116494..071df71a1f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package put
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package put
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/query_ruleset/put/QueryRulesetPutRequest.ts#L23-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/put/QueryRulesetPutRequest.ts#L23-L43
type Request struct {
Rules []types.QueryRule `json:"rules"`
}
@@ -37,6 +37,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/response.go
index 938446b9ba..1cce282c31 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/queryruleset/put/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package put
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package put
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/query_ruleset/put/QueryRulesetPutResponse.ts#L22-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/put/QueryRulesetPutResponse.ts#L22-L26
type Response struct {
Result result.Result `json:"result"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/deletejob/delete_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/deletejob/delete_job.go
index b8dfd686cd..992fd70d92 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/deletejob/delete_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/deletejob/delete_job.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an existing rollup job.
package deletejob
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r DeleteJob) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *DeleteJob) _id(id string) *DeleteJob {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteJob) ErrorTrace(errortrace bool) *DeleteJob {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteJob) FilterPath(filterpaths ...string) *DeleteJob {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteJob) Human(human bool) *DeleteJob {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteJob) Pretty(pretty bool) *DeleteJob {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/deletejob/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/deletejob/response.go
index 1be1882b23..b88cd3fbd7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/deletejob/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/deletejob/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletejob
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package deletejob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/delete_job/DeleteRollupJobResponse.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/delete_job/DeleteRollupJobResponse.ts#L22-L27
type Response struct {
Acknowledged bool `json:"acknowledged"`
TaskFailures []types.TaskFailure `json:"task_failures,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getjobs/get_jobs.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getjobs/get_jobs.go
index 5ff7b0cf58..26fc7508fc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getjobs/get_jobs.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getjobs/get_jobs.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves the configuration, stats, and status of rollup jobs.
package getjobs
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -267,7 +267,7 @@ func (r GetJobs) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -304,3 +304,47 @@ func (r *GetJobs) Id(id string) *GetJobs {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetJobs) ErrorTrace(errortrace bool) *GetJobs {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetJobs) FilterPath(filterpaths ...string) *GetJobs {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetJobs) Human(human bool) *GetJobs {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetJobs) Pretty(pretty bool) *GetJobs {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getjobs/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getjobs/response.go
index fc594a5183..7acfea9150 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getjobs/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getjobs/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getjobs
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getjobs
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/get_jobs/GetRollupJobResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_jobs/GetRollupJobResponse.ts#L22-L24
type Response struct {
Jobs []types.RollupJob `json:"jobs"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupcaps/get_rollup_caps.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupcaps/get_rollup_caps.go
index 7e42f1b59f..d8bb309fa1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupcaps/get_rollup_caps.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupcaps/get_rollup_caps.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the capabilities of any rollup jobs that have been configured for a
// specific index or index pattern.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -269,7 +269,7 @@ func (r GetRollupCaps) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -306,3 +306,47 @@ func (r *GetRollupCaps) Id(id string) *GetRollupCaps {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetRollupCaps) ErrorTrace(errortrace bool) *GetRollupCaps {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetRollupCaps) FilterPath(filterpaths ...string) *GetRollupCaps {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetRollupCaps) Human(human bool) *GetRollupCaps {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetRollupCaps) Pretty(pretty bool) *GetRollupCaps {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupcaps/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupcaps/response.go
index 244a3143fe..64f606c1ee 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupcaps/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupcaps/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getrollupcaps
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getrollupcaps
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/get_rollup_caps/GetRollupCapabilitiesResponse.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_caps/GetRollupCapabilitiesResponse.ts#L24-L27
type Response map[string]types.RollupCapabilities
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupindexcaps/get_rollup_index_caps.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupindexcaps/get_rollup_index_caps.go
index 3f8c277d56..72fe32ac43 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupindexcaps/get_rollup_index_caps.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupindexcaps/get_rollup_index_caps.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the rollup capabilities of all jobs inside of a rollup index (e.g.
// the index where rollup data is stored).
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r GetRollupIndexCaps) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -301,3 +301,47 @@ func (r *GetRollupIndexCaps) _index(index string) *GetRollupIndexCaps {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetRollupIndexCaps) ErrorTrace(errortrace bool) *GetRollupIndexCaps {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetRollupIndexCaps) FilterPath(filterpaths ...string) *GetRollupIndexCaps {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetRollupIndexCaps) Human(human bool) *GetRollupIndexCaps {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetRollupIndexCaps) Pretty(pretty bool) *GetRollupIndexCaps {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupindexcaps/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupindexcaps/response.go
index 69b1585d3a..a85d020af2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupindexcaps/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupindexcaps/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getrollupindexcaps
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getrollupindexcaps
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesResponse.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesResponse.ts#L24-L27
type Response map[string]types.IndexCapabilities
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/putjob/put_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/putjob/put_job.go
index 96f1a0d453..084e01b995 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/putjob/put_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/putjob/put_job.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a rollup job.
package putjob
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -322,6 +323,50 @@ func (r *PutJob) _id(id string) *PutJob {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutJob) ErrorTrace(errortrace bool) *PutJob {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutJob) FilterPath(filterpaths ...string) *PutJob {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutJob) Human(human bool) *PutJob {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutJob) Pretty(pretty bool) *PutJob {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Cron A cron string which defines the intervals when the rollup job should be
// executed. When the interval
// triggers, the indexer attempts to rollup the data in the index pattern. The
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/putjob/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/putjob/request.go
index 0dfdc02fcc..872137525c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/putjob/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/putjob/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putjob
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package putjob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/put_job/CreateRollupJobRequest.ts#L27-L89
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/put_job/CreateRollupJobRequest.ts#L27-L89
type Request struct {
// Cron A cron string which defines the intervals when the rollup job should be
@@ -87,6 +87,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -157,7 +158,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "page_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/putjob/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/putjob/response.go
index 7900b15d6a..92a87dcff7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/putjob/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/putjob/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putjob
// Response holds the response body struct for the package putjob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/put_job/CreateRollupJobResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/put_job/CreateRollupJobResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/rollupsearch/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/rollupsearch/request.go
index 3d08e2b8d4..b55472484d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/rollupsearch/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/rollupsearch/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package rollupsearch
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package rollupsearch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/rollup_search/RollupSearchRequest.ts#L27-L57
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/rollup_search/RollupSearchRequest.ts#L27-L57
type Request struct {
// Aggregations Specifies aggregations.
@@ -49,6 +49,7 @@ func NewRequest() *Request {
r := &Request{
Aggregations: make(map[string]types.Aggregations, 0),
}
+
return r
}
@@ -93,7 +94,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/rollupsearch/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/rollupsearch/response.go
index 92d5c07d5b..3389a24e56 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/rollupsearch/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/rollupsearch/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package rollupsearch
@@ -34,7 +34,7 @@ import (
// Response holds the response body struct for the package rollupsearch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/rollup_search/RollupSearchResponse.ts#L27-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/rollup_search/RollupSearchResponse.ts#L27-L36
type Response struct {
Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"`
Hits types.HitsMetadata `json:"hits"`
@@ -522,7 +522,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := types.NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -572,7 +572,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -582,7 +582,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -602,7 +602,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "terminated_early":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -616,7 +616,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "timed_out":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -630,7 +630,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "took":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/rollupsearch/rollup_search.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/rollupsearch/rollup_search.go
index 0da5cbf492..1a67641b37 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/rollupsearch/rollup_search.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/rollupsearch/rollup_search.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Enables searching rolled-up data using the standard query DSL.
package rollupsearch
@@ -333,6 +333,50 @@ func (r *RollupSearch) TypedKeys(typedkeys bool) *RollupSearch {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *RollupSearch) ErrorTrace(errortrace bool) *RollupSearch {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *RollupSearch) FilterPath(filterpaths ...string) *RollupSearch {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *RollupSearch) Human(human bool) *RollupSearch {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *RollupSearch) Pretty(pretty bool) *RollupSearch {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Aggregations Specifies aggregations.
// API name: aggregations
func (r *RollupSearch) Aggregations(aggregations map[string]types.Aggregations) *RollupSearch {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/startjob/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/startjob/response.go
index 80d58f0658..d39dc49f9f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/startjob/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/startjob/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package startjob
// Response holds the response body struct for the package startjob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/start_job/StartRollupJobResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/start_job/StartRollupJobResponse.ts#L20-L22
type Response struct {
Started bool `json:"started"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/startjob/start_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/startjob/start_job.go
index 590e4d6f92..8ab539753d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/startjob/start_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/startjob/start_job.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Starts an existing, stopped rollup job.
package startjob
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r StartJob) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -300,3 +300,47 @@ func (r *StartJob) _id(id string) *StartJob {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *StartJob) ErrorTrace(errortrace bool) *StartJob {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *StartJob) FilterPath(filterpaths ...string) *StartJob {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *StartJob) Human(human bool) *StartJob {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *StartJob) Pretty(pretty bool) *StartJob {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/stopjob/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/stopjob/response.go
index 3d405d1433..f4928f06f1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/stopjob/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/stopjob/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stopjob
// Response holds the response body struct for the package stopjob
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/stop_job/StopRollupJobResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/stop_job/StopRollupJobResponse.ts#L20-L22
type Response struct {
Stopped bool `json:"stopped"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/stopjob/stop_job.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/stopjob/stop_job.go
index 7dc5a04f5e..4a8e6fcb5d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/stopjob/stop_job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/rollup/stopjob/stop_job.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Stops an existing, started rollup job.
package stopjob
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -265,7 +264,7 @@ func (r StopJob) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -322,3 +321,47 @@ func (r *StopJob) WaitForCompletion(waitforcompletion bool) *StopJob {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *StopJob) ErrorTrace(errortrace bool) *StopJob {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *StopJob) FilterPath(filterpaths ...string) *StopJob {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *StopJob) Human(human bool) *StopJob {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *StopJob) Pretty(pretty bool) *StopJob {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/cachestats/cache_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/cachestats/cache_stats.go
index 27e6f0d25f..b4f260c7b5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/cachestats/cache_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/cachestats/cache_stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieve node-level cache statistics about searchable snapshots.
package cachestats
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -271,7 +271,7 @@ func (r CacheStats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -316,3 +316,47 @@ func (r *CacheStats) MasterTimeout(duration string) *CacheStats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *CacheStats) ErrorTrace(errortrace bool) *CacheStats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *CacheStats) FilterPath(filterpaths ...string) *CacheStats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *CacheStats) Human(human bool) *CacheStats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *CacheStats) Pretty(pretty bool) *CacheStats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/cachestats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/cachestats/response.go
index 9a9f124192..c1e5f52780 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/cachestats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/cachestats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package cachestats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package cachestats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/searchable_snapshots/cache_stats/Response.ts#L24-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/cache_stats/Response.ts#L24-L28
type Response struct {
Nodes map[string]types.Node `json:"nodes"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/clearcache/clear_cache.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/clearcache/clear_cache.go
index 7c77bf3257..ff6ff97da1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/clearcache/clear_cache.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/clearcache/clear_cache.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Clear the cache of searchable snapshots.
package clearcache
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -273,7 +272,7 @@ func (r ClearCache) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -354,3 +353,25 @@ func (r *ClearCache) Human(human bool) *ClearCache {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ClearCache) ErrorTrace(errortrace bool) *ClearCache {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ClearCache) FilterPath(filterpaths ...string) *ClearCache {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/clearcache/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/clearcache/response.go
index 9b10838afd..684d9ab24c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/clearcache/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/clearcache/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clearcache
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package clearcache
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheResponse.ts#L22-L25
type Response = json.RawMessage
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/mount/mount.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/mount/mount.go
index 8204636842..6eee0a6e01 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/mount/mount.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/mount/mount.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Mount a snapshot as a searchable index.
package mount
@@ -360,6 +360,50 @@ func (r *Mount) Storage(storage string) *Mount {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Mount) ErrorTrace(errortrace bool) *Mount {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Mount) FilterPath(filterpaths ...string) *Mount {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Mount) Human(human bool) *Mount {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Mount) Pretty(pretty bool) *Mount {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: ignore_index_settings
func (r *Mount) IgnoreIndexSettings(ignoreindexsettings ...string) *Mount {
r.req.IgnoreIndexSettings = ignoreindexsettings
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/mount/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/mount/request.go
index 8355e5675d..f6e337942c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/mount/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/mount/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package mount
@@ -30,7 +30,7 @@ import (
// Request holds the request body struct for the package mount
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L49
type Request struct {
IgnoreIndexSettings []string `json:"ignore_index_settings,omitempty"`
Index string `json:"index"`
@@ -43,6 +43,7 @@ func NewRequest() *Request {
r := &Request{
IndexSettings: make(map[string]json.RawMessage, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/mount/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/mount/response.go
index f3c80297c0..329a0dece9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/mount/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/mount/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package mount
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package mount
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/searchable_snapshots/mount/SearchableSnapshotsMountResponse.ts#L22-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/mount/SearchableSnapshotsMountResponse.ts#L22-L26
type Response struct {
Snapshot types.MountedSnapshot `json:"snapshot"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/stats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/stats/response.go
index 93ab92fc38..179bb6fbe6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/stats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/stats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package stats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/searchable_snapshots/stats/SearchableSnapshotsStatsResponse.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/stats/SearchableSnapshotsStatsResponse.ts#L22-L27
type Response struct {
Stats json.RawMessage `json:"stats,omitempty"`
Total json.RawMessage `json:"total,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/stats/stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/stats/stats.go
index 31d72cc243..b3ee06c2f4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/stats/stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/stats/stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieve shard-level statistics about searchable snapshots.
package stats
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -268,7 +268,7 @@ func (r Stats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -312,3 +312,47 @@ func (r *Stats) Level(level statslevel.StatsLevel) *Stats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Stats) ErrorTrace(errortrace bool) *Stats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Stats) FilterPath(filterpaths ...string) *Stats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Stats) Human(human bool) *Stats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Stats) Pretty(pretty bool) *Stats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/delete/delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/delete/delete.go
index 601d2091be..169fc8d7c6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/delete/delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/delete/delete.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes a search application.
package delete
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r Delete) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *Delete) _name(name string) *Delete {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Delete) ErrorTrace(errortrace bool) *Delete {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Delete) FilterPath(filterpaths ...string) *Delete {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Delete) Human(human bool) *Delete {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Delete) Pretty(pretty bool) *Delete {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/delete/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/delete/response.go
index 5d64627e2b..f753af9cfa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/delete/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/delete/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package delete
// Response holds the response body struct for the package delete
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/delete/SearchApplicationsDeleteResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/delete/SearchApplicationsDeleteResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/deletebehavioralanalytics/delete_behavioral_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/deletebehavioralanalytics/delete_behavioral_analytics.go
index a2792c92bb..1d7c2de883 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/deletebehavioralanalytics/delete_behavioral_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/deletebehavioralanalytics/delete_behavioral_analytics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Delete a behavioral analytics collection.
package deletebehavioralanalytics
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r DeleteBehavioralAnalytics) IsSuccess(providedCtx context.Context) (bool,
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *DeleteBehavioralAnalytics) _name(name string) *DeleteBehavioralAnalytic
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteBehavioralAnalytics) ErrorTrace(errortrace bool) *DeleteBehavioralAnalytics {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteBehavioralAnalytics) FilterPath(filterpaths ...string) *DeleteBehavioralAnalytics {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteBehavioralAnalytics) Human(human bool) *DeleteBehavioralAnalytics {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteBehavioralAnalytics) Pretty(pretty bool) *DeleteBehavioralAnalytics {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/deletebehavioralanalytics/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/deletebehavioralanalytics/response.go
index 8f0183caee..182212364b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/deletebehavioralanalytics/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/deletebehavioralanalytics/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletebehavioralanalytics
// Response holds the response body struct for the package deletebehavioralanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/get/get.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/get/get.go
index a72b4871c6..259979914b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/get/get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/get/get.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the details about a search application.
package get
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r Get) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *Get) _name(name string) *Get {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Get) ErrorTrace(errortrace bool) *Get {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Get) FilterPath(filterpaths ...string) *Get {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Get) Human(human bool) *Get {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Get) Pretty(pretty bool) *Get {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/get/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/get/response.go
index 720ea8838d..b4076e5ac6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/get/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/get/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package get
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package get
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/get/SearchApplicationsGetResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/get/SearchApplicationsGetResponse.ts#L22-L24
type Response struct {
// AnalyticsCollectionName Analytics collection associated to the Search Application.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/getbehavioralanalytics/get_behavioral_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/getbehavioralanalytics/get_behavioral_analytics.go
index ec07ffb96d..df352c39b7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/getbehavioralanalytics/get_behavioral_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/getbehavioralanalytics/get_behavioral_analytics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the existing behavioral analytics collections.
package getbehavioralanalytics
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -267,7 +267,7 @@ func (r GetBehavioralAnalytics) IsSuccess(providedCtx context.Context) (bool, er
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -303,3 +303,47 @@ func (r *GetBehavioralAnalytics) Name(name string) *GetBehavioralAnalytics {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetBehavioralAnalytics) ErrorTrace(errortrace bool) *GetBehavioralAnalytics {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetBehavioralAnalytics) FilterPath(filterpaths ...string) *GetBehavioralAnalytics {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetBehavioralAnalytics) Human(human bool) *GetBehavioralAnalytics {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetBehavioralAnalytics) Pretty(pretty bool) *GetBehavioralAnalytics {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/getbehavioralanalytics/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/getbehavioralanalytics/response.go
index de4a292878..92f8fcc838 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/getbehavioralanalytics/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/getbehavioralanalytics/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getbehavioralanalytics
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getbehavioralanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetResponse.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetResponse.ts#L24-L27
type Response map[string]types.AnalyticsCollection
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/list/list.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/list/list.go
index e1de727d9d..815d3a024a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/list/list.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/list/list.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the existing search applications.
package list
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -249,7 +248,7 @@ func (r List) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -300,3 +299,47 @@ func (r *List) Size(size int) *List {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *List) ErrorTrace(errortrace bool) *List {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *List) FilterPath(filterpaths ...string) *List {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *List) Human(human bool) *List {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *List) Pretty(pretty bool) *List {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/list/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/list/response.go
index 8c81b457f4..9f8c821603 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/list/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/list/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package list
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package list
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/list/SearchApplicationsListResponse.ts#L24-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/list/SearchApplicationsListResponse.ts#L24-L29
type Response struct {
Count int64 `json:"count"`
Results []types.SearchApplicationListItem `json:"results"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put/put.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put/put.go
index 964f9fdb17..09cecbff01 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put/put.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put/put.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates or updates a search application.
package put
@@ -324,6 +324,50 @@ func (r *Put) Create(create bool) *Put {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Put) ErrorTrace(errortrace bool) *Put {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Put) FilterPath(filterpaths ...string) *Put {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Put) Human(human bool) *Put {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Put) Pretty(pretty bool) *Put {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AnalyticsCollectionName Analytics collection associated to the Search Application.
// API name: analytics_collection_name
func (r *Put) AnalyticsCollectionName(name string) *Put {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put/request.go
index 6bbf759e1f..5eddb05aea 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package put
@@ -26,7 +26,7 @@ import (
// Request holds the request body struct for the package put
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/put/SearchApplicationsPutRequest.ts#L23-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/put/SearchApplicationsPutRequest.ts#L23-L48
type Request = types.SearchApplication
// NewRequest returns a Request
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put/response.go
index 7f04e6bd37..4c451c2df9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package put
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package put
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/put/SearchApplicationsPutResponse.ts#L22-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/put/SearchApplicationsPutResponse.ts#L22-L26
type Response struct {
Result result.Result `json:"result"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/putbehavioralanalytics/put_behavioral_analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/putbehavioralanalytics/put_behavioral_analytics.go
index 3bd5811089..2f650e5a65 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/putbehavioralanalytics/put_behavioral_analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/putbehavioralanalytics/put_behavioral_analytics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a behavioral analytics collection.
package putbehavioralanalytics
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r PutBehavioralAnalytics) IsSuccess(providedCtx context.Context) (bool, er
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *PutBehavioralAnalytics) _name(name string) *PutBehavioralAnalytics {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutBehavioralAnalytics) ErrorTrace(errortrace bool) *PutBehavioralAnalytics {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutBehavioralAnalytics) FilterPath(filterpaths ...string) *PutBehavioralAnalytics {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutBehavioralAnalytics) Human(human bool) *PutBehavioralAnalytics {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutBehavioralAnalytics) Pretty(pretty bool) *PutBehavioralAnalytics {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/putbehavioralanalytics/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/putbehavioralanalytics/response.go
index c3d66cb9ee..83c5c5a0a9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/putbehavioralanalytics/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/putbehavioralanalytics/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putbehavioralanalytics
// Response holds the response body struct for the package putbehavioralanalytics
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L24-L26
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search/request.go
index 3bef0c0806..f4a213b9c3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package search
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package search
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/search/SearchApplicationsSearchRequest.ts#L24-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/search/SearchApplicationsSearchRequest.ts#L24-L52
type Request struct {
// Params Query parameters specific to this request, which will override any defaults
@@ -40,6 +40,7 @@ func NewRequest() *Request {
r := &Request{
Params: make(map[string]json.RawMessage, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search/response.go
index 619e961373..e0e446817b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package search
@@ -34,7 +34,7 @@ import (
// Response holds the response body struct for the package search
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/search/SearchApplicationsSearchResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/search/SearchApplicationsSearchResponse.ts#L23-L25
type Response struct {
Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"`
Clusters_ *types.ClusterStatistics `json:"_clusters,omitempty"`
@@ -532,7 +532,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := types.NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -582,7 +582,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -592,7 +592,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -620,7 +620,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "max_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -636,7 +636,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "num_reduce_phases":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -714,7 +714,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
s.Suggest[elems[1]] = append(s.Suggest[elems[1]], o)
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -724,7 +724,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Suggest")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -734,7 +734,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "terminated_early":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -748,7 +748,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "timed_out":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -762,7 +762,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "took":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search/search.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search/search.go
index 405ad95639..528af964cf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search/search.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search/search.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Perform a search against a search application
package search
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -260,6 +261,8 @@ func (r Search) Do(providedCtx context.Context) (*Response, error) {
response := NewResponse()
+ r.TypedKeys(true)
+
res, err := r.Perform(ctx)
if err != nil {
if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok {
@@ -316,6 +319,59 @@ func (r *Search) _name(name string) *Search {
return r
}
+// TypedKeys Determines whether aggregation names are prefixed by their respective types
+// in the response.
+// API name: typed_keys
+func (r *Search) TypedKeys(typedkeys bool) *Search {
+ r.values.Set("typed_keys", strconv.FormatBool(typedkeys))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Search) ErrorTrace(errortrace bool) *Search {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Search) FilterPath(filterpaths ...string) *Search {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Search) Human(human bool) *Search {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Search) Pretty(pretty bool) *Search {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Params Query parameters specific to this request, which will override any defaults
// specified in the template.
// API name: params
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile/activate_user_profile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile/activate_user_profile.go
index 4e4365444e..d4075f4dcf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile/activate_user_profile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile/activate_user_profile.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates or updates the user profile on behalf of another user.
package activateuserprofile
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -294,6 +295,50 @@ func (r *ActivateUserProfile) Header(key, value string) *ActivateUserProfile {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ActivateUserProfile) ErrorTrace(errortrace bool) *ActivateUserProfile {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ActivateUserProfile) FilterPath(filterpaths ...string) *ActivateUserProfile {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ActivateUserProfile) Human(human bool) *ActivateUserProfile {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ActivateUserProfile) Pretty(pretty bool) *ActivateUserProfile {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: access_token
func (r *ActivateUserProfile) AccessToken(accesstoken string) *ActivateUserProfile {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile/request.go
index c840dce07a..e91c7bee01 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package activateuserprofile
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package activateuserprofile
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/activate_user_profile/Request.ts#L23-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/activate_user_profile/Request.ts#L23-L37
type Request struct {
AccessToken *string `json:"access_token,omitempty"`
GrantType granttype.GrantType `json:"grant_type"`
@@ -40,6 +40,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile/response.go
index 41a55280ea..d1a8fdf230 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package activateuserprofile
@@ -28,7 +28,7 @@ import (
// Response holds the response body struct for the package activateuserprofile
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/activate_user_profile/Response.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/activate_user_profile/Response.ts#L22-L24
type Response struct {
Data map[string]json.RawMessage `json:"data"`
Doc_ types.UserProfileHitMetadata `json:"_doc"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/authenticate/authenticate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/authenticate/authenticate.go
index 9f62ea6267..4e5af55ce5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/authenticate/authenticate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/authenticate/authenticate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Enables authentication as a user and retrieve information about the
// authenticated user.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -250,7 +250,7 @@ func (r Authenticate) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -277,3 +277,47 @@ func (r *Authenticate) Header(key, value string) *Authenticate {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Authenticate) ErrorTrace(errortrace bool) *Authenticate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Authenticate) FilterPath(filterpaths ...string) *Authenticate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Authenticate) Human(human bool) *Authenticate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Authenticate) Pretty(pretty bool) *Authenticate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/authenticate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/authenticate/response.go
index 1e36b56507..1f2098c392 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/authenticate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/authenticate/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package authenticate
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package authenticate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/authenticate/SecurityAuthenticateResponse.ts#L25-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/authenticate/SecurityAuthenticateResponse.ts#L25-L43
type Response struct {
ApiKey *types.ApiKey `json:"api_key,omitempty"`
AuthenticationRealm types.RealmInfo `json:"authentication_realm"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkupdateapikeys/bulk_update_api_keys.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkupdateapikeys/bulk_update_api_keys.go
index 15529f4a7b..c2372b16e7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkupdateapikeys/bulk_update_api_keys.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkupdateapikeys/bulk_update_api_keys.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates the attributes of multiple existing API keys.
package bulkupdateapikeys
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strings"
@@ -205,7 +204,7 @@ func (r BulkUpdateApiKeys) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword/change_password.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword/change_password.go
index 57c5c4b2a2..c4819ce0df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword/change_password.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword/change_password.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Changes the passwords of users in the native realm and built-in users.
package changepassword
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -335,6 +336,50 @@ func (r *ChangePassword) Refresh(refresh refresh.Refresh) *ChangePassword {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ChangePassword) ErrorTrace(errortrace bool) *ChangePassword {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ChangePassword) FilterPath(filterpaths ...string) *ChangePassword {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ChangePassword) Human(human bool) *ChangePassword {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ChangePassword) Pretty(pretty bool) *ChangePassword {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Password The new password value. Passwords must be at least 6 characters long.
// API name: password
func (r *ChangePassword) Password(password string) *ChangePassword {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword/request.go
index 657dc41f8a..abf3f12d99 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package changepassword
@@ -31,7 +31,7 @@ import (
// Request holds the request body struct for the package changepassword
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/change_password/SecurityChangePasswordRequest.ts#L23-L51
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/change_password/SecurityChangePasswordRequest.ts#L23-L51
type Request struct {
// Password The new password value. Passwords must be at least 6 characters long.
@@ -47,6 +47,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword/response.go
index 2dab24ba9f..adf1a93c47 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package changepassword
// Response holds the response body struct for the package changepassword
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/change_password/SecurityChangePasswordResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/change_password/SecurityChangePasswordResponse.ts#L20-L22
type Response struct {
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearapikeycache/clear_api_key_cache.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearapikeycache/clear_api_key_cache.go
index 5711a8ba10..b423367f86 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearapikeycache/clear_api_key_cache.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearapikeycache/clear_api_key_cache.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Clear a subset or all entries from the API key cache.
package clearapikeycache
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r ClearApiKeyCache) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -302,3 +302,47 @@ func (r *ClearApiKeyCache) _ids(ids string) *ClearApiKeyCache {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ClearApiKeyCache) ErrorTrace(errortrace bool) *ClearApiKeyCache {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ClearApiKeyCache) FilterPath(filterpaths ...string) *ClearApiKeyCache {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ClearApiKeyCache) Human(human bool) *ClearApiKeyCache {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ClearApiKeyCache) Pretty(pretty bool) *ClearApiKeyCache {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearapikeycache/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearapikeycache/response.go
index d9c016a4a5..40fef1e034 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearapikeycache/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearapikeycache/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clearapikeycache
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package clearapikeycache
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheResponse.ts#L25-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheResponse.ts#L25-L32
type Response struct {
ClusterName string `json:"cluster_name"`
NodeStats types.NodeStatistics `json:"_nodes"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedprivileges/clear_cached_privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedprivileges/clear_cached_privileges.go
index f70ec05a97..71620411dc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedprivileges/clear_cached_privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedprivileges/clear_cached_privileges.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Evicts application privileges from the native application privileges cache.
package clearcachedprivileges
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r ClearCachedPrivileges) IsSuccess(providedCtx context.Context) (bool, err
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -300,3 +300,47 @@ func (r *ClearCachedPrivileges) _application(application string) *ClearCachedPri
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ClearCachedPrivileges) ErrorTrace(errortrace bool) *ClearCachedPrivileges {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ClearCachedPrivileges) FilterPath(filterpaths ...string) *ClearCachedPrivileges {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ClearCachedPrivileges) Human(human bool) *ClearCachedPrivileges {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ClearCachedPrivileges) Pretty(pretty bool) *ClearCachedPrivileges {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedprivileges/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedprivileges/response.go
index 723fcc2663..316ccc2d67 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedprivileges/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedprivileges/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clearcachedprivileges
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package clearcachedprivileges
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesResponse.ts#L25-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesResponse.ts#L25-L32
type Response struct {
ClusterName string `json:"cluster_name"`
NodeStats types.NodeStatistics `json:"_nodes"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedrealms/clear_cached_realms.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedrealms/clear_cached_realms.go
index a7bd07c292..4a3fe1efe8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedrealms/clear_cached_realms.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedrealms/clear_cached_realms.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Evicts users from the user cache. Can completely clear the cache or evict
// specific users.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -266,7 +266,7 @@ func (r ClearCachedRealms) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -314,3 +314,47 @@ func (r *ClearCachedRealms) Usernames(usernames ...string) *ClearCachedRealms {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ClearCachedRealms) ErrorTrace(errortrace bool) *ClearCachedRealms {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ClearCachedRealms) FilterPath(filterpaths ...string) *ClearCachedRealms {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ClearCachedRealms) Human(human bool) *ClearCachedRealms {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ClearCachedRealms) Pretty(pretty bool) *ClearCachedRealms {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedrealms/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedrealms/response.go
index 5e520a1878..b7c248886f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedrealms/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedrealms/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clearcachedrealms
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package clearcachedrealms
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/clear_cached_realms/SecurityClearCachedRealmsResponse.ts#L25-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/clear_cached_realms/SecurityClearCachedRealmsResponse.ts#L25-L32
type Response struct {
ClusterName string `json:"cluster_name"`
NodeStats types.NodeStatistics `json:"_nodes"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedroles/clear_cached_roles.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedroles/clear_cached_roles.go
index 6e29ba6701..536ba23c08 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedroles/clear_cached_roles.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedroles/clear_cached_roles.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Evicts roles from the native role cache.
package clearcachedroles
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r ClearCachedRoles) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -300,3 +300,47 @@ func (r *ClearCachedRoles) _name(name string) *ClearCachedRoles {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ClearCachedRoles) ErrorTrace(errortrace bool) *ClearCachedRoles {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ClearCachedRoles) FilterPath(filterpaths ...string) *ClearCachedRoles {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ClearCachedRoles) Human(human bool) *ClearCachedRoles {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ClearCachedRoles) Pretty(pretty bool) *ClearCachedRoles {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedroles/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedroles/response.go
index 882a6b532e..53f9746ada 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedroles/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedroles/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clearcachedroles
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package clearcachedroles
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/clear_cached_roles/ClearCachedRolesResponse.ts#L25-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/clear_cached_roles/ClearCachedRolesResponse.ts#L25-L32
type Response struct {
ClusterName string `json:"cluster_name"`
NodeStats types.NodeStatistics `json:"_nodes"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedservicetokens/clear_cached_service_tokens.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedservicetokens/clear_cached_service_tokens.go
index 5d6d2d0b07..83178adeed 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedservicetokens/clear_cached_service_tokens.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedservicetokens/clear_cached_service_tokens.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Evicts tokens from the service account token caches.
package clearcachedservicetokens
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -290,7 +290,7 @@ func (r ClearCachedServiceTokens) IsSuccess(providedCtx context.Context) (bool,
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -344,3 +344,47 @@ func (r *ClearCachedServiceTokens) _name(name string) *ClearCachedServiceTokens
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ClearCachedServiceTokens) ErrorTrace(errortrace bool) *ClearCachedServiceTokens {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ClearCachedServiceTokens) FilterPath(filterpaths ...string) *ClearCachedServiceTokens {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ClearCachedServiceTokens) Human(human bool) *ClearCachedServiceTokens {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ClearCachedServiceTokens) Pretty(pretty bool) *ClearCachedServiceTokens {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedservicetokens/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedservicetokens/response.go
index feb5120814..4a3dde0472 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedservicetokens/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedservicetokens/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clearcachedservicetokens
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package clearcachedservicetokens
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensResponse.ts#L25-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensResponse.ts#L25-L32
type Response struct {
ClusterName string `json:"cluster_name"`
NodeStats types.NodeStatistics `json:"_nodes"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey/create_api_key.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey/create_api_key.go
index 14c20a11c8..5db8b314c5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey/create_api_key.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey/create_api_key.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates an API key for access without requiring basic authentication.
package createapikey
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -302,6 +303,50 @@ func (r *CreateApiKey) Refresh(refresh refresh.Refresh) *CreateApiKey {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *CreateApiKey) ErrorTrace(errortrace bool) *CreateApiKey {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *CreateApiKey) FilterPath(filterpaths ...string) *CreateApiKey {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *CreateApiKey) Human(human bool) *CreateApiKey {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *CreateApiKey) Pretty(pretty bool) *CreateApiKey {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Expiration Expiration time for the API key. By default, API keys never expire.
// API name: expiration
func (r *CreateApiKey) Expiration(duration types.Duration) *CreateApiKey {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey/request.go
index 83e5b92335..ee9ea9a0b1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package createapikey
@@ -32,7 +32,7 @@ import (
// Request holds the request body struct for the package createapikey
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L58
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L58
type Request struct {
// Expiration Expiration time for the API key. By default, API keys never expire.
@@ -59,6 +59,7 @@ func NewRequest() *Request {
r := &Request{
RoleDescriptors: make(map[string]types.RoleDescriptor, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey/response.go
index 7c85b11c17..4f02e27930 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package createapikey
// Response holds the response body struct for the package createapikey
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/create_api_key/SecurityCreateApiKeyResponse.ts#L23-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/create_api_key/SecurityCreateApiKeyResponse.ts#L23-L50
type Response struct {
// ApiKey Generated API key.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createcrossclusterapikey/create_cross_cluster_api_key.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createcrossclusterapikey/create_cross_cluster_api_key.go
index 4d63bdf763..bd72c63196 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createcrossclusterapikey/create_cross_cluster_api_key.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createcrossclusterapikey/create_cross_cluster_api_key.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a cross-cluster API key for API key based remote cluster access.
package createcrossclusterapikey
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strings"
@@ -205,7 +204,7 @@ func (r CreateCrossClusterApiKey) IsSuccess(providedCtx context.Context) (bool,
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createservicetoken/create_service_token.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createservicetoken/create_service_token.go
index 9b599d9d1b..0dd330fa89 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createservicetoken/create_service_token.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createservicetoken/create_service_token.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a service account token for access without requiring basic
// authentication.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -312,7 +312,7 @@ func (r CreateServiceToken) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -376,3 +376,47 @@ func (r *CreateServiceToken) Refresh(refresh refresh.Refresh) *CreateServiceToke
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *CreateServiceToken) ErrorTrace(errortrace bool) *CreateServiceToken {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *CreateServiceToken) FilterPath(filterpaths ...string) *CreateServiceToken {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *CreateServiceToken) Human(human bool) *CreateServiceToken {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *CreateServiceToken) Pretty(pretty bool) *CreateServiceToken {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createservicetoken/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createservicetoken/response.go
index 00889ebb4b..b01ab83c58 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createservicetoken/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/createservicetoken/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package createservicetoken
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package createservicetoken
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/create_service_token/CreateServiceTokenResponse.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/create_service_token/CreateServiceTokenResponse.ts#L22-L27
type Response struct {
Created bool `json:"created"`
Token types.ServiceToken `json:"token"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteprivileges/delete_privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteprivileges/delete_privileges.go
index cf7fba362d..a6498002de 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteprivileges/delete_privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteprivileges/delete_privileges.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Removes application privileges.
package deleteprivileges
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -274,7 +274,7 @@ func (r DeletePrivileges) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -329,3 +329,47 @@ func (r *DeletePrivileges) Refresh(refresh refresh.Refresh) *DeletePrivileges {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeletePrivileges) ErrorTrace(errortrace bool) *DeletePrivileges {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeletePrivileges) FilterPath(filterpaths ...string) *DeletePrivileges {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeletePrivileges) Human(human bool) *DeletePrivileges {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeletePrivileges) Pretty(pretty bool) *DeletePrivileges {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteprivileges/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteprivileges/response.go
index 18d52a9de3..936634a8dd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteprivileges/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteprivileges/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deleteprivileges
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package deleteprivileges
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/delete_privileges/SecurityDeletePrivilegesResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/delete_privileges/SecurityDeletePrivilegesResponse.ts#L23-L26
type Response map[string]map[string]types.FoundStatus
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterole/delete_role.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterole/delete_role.go
index dad8cf39db..ef7f682b8f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterole/delete_role.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterole/delete_role.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Removes roles in the native realm.
package deleterole
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -263,7 +263,7 @@ func (r DeleteRole) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -309,3 +309,47 @@ func (r *DeleteRole) Refresh(refresh refresh.Refresh) *DeleteRole {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteRole) ErrorTrace(errortrace bool) *DeleteRole {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteRole) FilterPath(filterpaths ...string) *DeleteRole {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteRole) Human(human bool) *DeleteRole {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteRole) Pretty(pretty bool) *DeleteRole {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterole/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterole/response.go
index 3e16334508..f7689a78c9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterole/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterole/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deleterole
// Response holds the response body struct for the package deleterole
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/delete_role/SecurityDeleteRoleResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/delete_role/SecurityDeleteRoleResponse.ts#L20-L22
type Response struct {
Found bool `json:"found"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterolemapping/delete_role_mapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterolemapping/delete_role_mapping.go
index dfd084927f..896b05b5bf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterolemapping/delete_role_mapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterolemapping/delete_role_mapping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Removes role mappings.
package deleterolemapping
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -263,7 +263,7 @@ func (r DeleteRoleMapping) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -309,3 +309,47 @@ func (r *DeleteRoleMapping) Refresh(refresh refresh.Refresh) *DeleteRoleMapping
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteRoleMapping) ErrorTrace(errortrace bool) *DeleteRoleMapping {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteRoleMapping) FilterPath(filterpaths ...string) *DeleteRoleMapping {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteRoleMapping) Human(human bool) *DeleteRoleMapping {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteRoleMapping) Pretty(pretty bool) *DeleteRoleMapping {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterolemapping/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterolemapping/response.go
index 37a01d301a..d6c28b9cbf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterolemapping/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterolemapping/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deleterolemapping
// Response holds the response body struct for the package deleterolemapping
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/delete_role_mapping/SecurityDeleteRoleMappingResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/delete_role_mapping/SecurityDeleteRoleMappingResponse.ts#L20-L22
type Response struct {
Found bool `json:"found"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteservicetoken/delete_service_token.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteservicetoken/delete_service_token.go
index 37d8b75c9f..e2f4ec75fc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteservicetoken/delete_service_token.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteservicetoken/delete_service_token.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes a service account token.
package deleteservicetoken
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -289,7 +289,7 @@ func (r DeleteServiceToken) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -353,3 +353,47 @@ func (r *DeleteServiceToken) Refresh(refresh refresh.Refresh) *DeleteServiceToke
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteServiceToken) ErrorTrace(errortrace bool) *DeleteServiceToken {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteServiceToken) FilterPath(filterpaths ...string) *DeleteServiceToken {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteServiceToken) Human(human bool) *DeleteServiceToken {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteServiceToken) Pretty(pretty bool) *DeleteServiceToken {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteservicetoken/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteservicetoken/response.go
index 54284e518e..e24b1cbac5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteservicetoken/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteservicetoken/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deleteservicetoken
// Response holds the response body struct for the package deleteservicetoken
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/delete_service_token/DeleteServiceTokenResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/delete_service_token/DeleteServiceTokenResponse.ts#L20-L22
type Response struct {
Found bool `json:"found"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteuser/delete_user.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteuser/delete_user.go
index cf83a0d574..70a7848552 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteuser/delete_user.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteuser/delete_user.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes users from the native realm.
package deleteuser
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -263,7 +263,7 @@ func (r DeleteUser) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -309,3 +309,47 @@ func (r *DeleteUser) Refresh(refresh refresh.Refresh) *DeleteUser {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteUser) ErrorTrace(errortrace bool) *DeleteUser {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteUser) FilterPath(filterpaths ...string) *DeleteUser {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteUser) Human(human bool) *DeleteUser {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteUser) Pretty(pretty bool) *DeleteUser {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteuser/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteuser/response.go
index 545ee7c460..1296e10002 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteuser/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteuser/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deleteuser
// Response holds the response body struct for the package deleteuser
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/delete_user/SecurityDeleteUserResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/delete_user/SecurityDeleteUserResponse.ts#L20-L22
type Response struct {
Found bool `json:"found"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuser/disable_user.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuser/disable_user.go
index 29ba0e8663..1782b0eac3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuser/disable_user.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuser/disable_user.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Disables users in the native realm.
package disableuser
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -265,7 +265,7 @@ func (r DisableUser) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -311,3 +311,47 @@ func (r *DisableUser) Refresh(refresh refresh.Refresh) *DisableUser {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DisableUser) ErrorTrace(errortrace bool) *DisableUser {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DisableUser) FilterPath(filterpaths ...string) *DisableUser {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DisableUser) Human(human bool) *DisableUser {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DisableUser) Pretty(pretty bool) *DisableUser {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuser/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuser/response.go
index aea45671b5..195cd5676f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuser/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuser/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package disableuser
// Response holds the response body struct for the package disableuser
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/disable_user/SecurityDisableUserResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/disable_user/SecurityDisableUserResponse.ts#L20-L22
type Response struct {
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuserprofile/disable_user_profile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuserprofile/disable_user_profile.go
index d2bf761504..5f268839ea 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuserprofile/disable_user_profile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuserprofile/disable_user_profile.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Disables a user profile so it's not visible in user profile searches.
package disableuserprofile
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -265,7 +265,7 @@ func (r DisableUserProfile) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -312,3 +312,47 @@ func (r *DisableUserProfile) Refresh(refresh refresh.Refresh) *DisableUserProfil
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DisableUserProfile) ErrorTrace(errortrace bool) *DisableUserProfile {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DisableUserProfile) FilterPath(filterpaths ...string) *DisableUserProfile {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DisableUserProfile) Human(human bool) *DisableUserProfile {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DisableUserProfile) Pretty(pretty bool) *DisableUserProfile {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuserprofile/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuserprofile/response.go
index 579481a4c2..3a18728463 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuserprofile/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuserprofile/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package disableuserprofile
// Response holds the response body struct for the package disableuserprofile
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/disable_user_profile/Response.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/disable_user_profile/Response.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuser/enable_user.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuser/enable_user.go
index f40248f525..e851a0272f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuser/enable_user.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuser/enable_user.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Enables users in the native realm.
package enableuser
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -265,7 +265,7 @@ func (r EnableUser) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -311,3 +311,47 @@ func (r *EnableUser) Refresh(refresh refresh.Refresh) *EnableUser {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *EnableUser) ErrorTrace(errortrace bool) *EnableUser {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *EnableUser) FilterPath(filterpaths ...string) *EnableUser {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *EnableUser) Human(human bool) *EnableUser {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *EnableUser) Pretty(pretty bool) *EnableUser {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuser/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuser/response.go
index e109abdfc0..f1c5bad745 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuser/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuser/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package enableuser
// Response holds the response body struct for the package enableuser
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/enable_user/SecurityEnableUserResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/enable_user/SecurityEnableUserResponse.ts#L20-L22
type Response struct {
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuserprofile/enable_user_profile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuserprofile/enable_user_profile.go
index 536286a214..43f234e3c4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuserprofile/enable_user_profile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuserprofile/enable_user_profile.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Enables a user profile so it's visible in user profile searches.
package enableuserprofile
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -265,7 +265,7 @@ func (r EnableUserProfile) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -312,3 +312,47 @@ func (r *EnableUserProfile) Refresh(refresh refresh.Refresh) *EnableUserProfile
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *EnableUserProfile) ErrorTrace(errortrace bool) *EnableUserProfile {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *EnableUserProfile) FilterPath(filterpaths ...string) *EnableUserProfile {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *EnableUserProfile) Human(human bool) *EnableUserProfile {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *EnableUserProfile) Pretty(pretty bool) *EnableUserProfile {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuserprofile/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuserprofile/response.go
index b893dc499e..33d2977f06 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuserprofile/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuserprofile/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package enableuserprofile
// Response holds the response body struct for the package enableuserprofile
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/enable_user_profile/Response.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/enable_user_profile/Response.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollkibana/enroll_kibana.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollkibana/enroll_kibana.go
index 4449cb34e4..8b2c4581f7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollkibana/enroll_kibana.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollkibana/enroll_kibana.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows a kibana instance to configure itself to communicate with a secured
// elasticsearch cluster.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -258,7 +258,7 @@ func (r EnrollKibana) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -285,3 +285,47 @@ func (r *EnrollKibana) Header(key, value string) *EnrollKibana {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *EnrollKibana) ErrorTrace(errortrace bool) *EnrollKibana {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *EnrollKibana) FilterPath(filterpaths ...string) *EnrollKibana {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *EnrollKibana) Human(human bool) *EnrollKibana {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *EnrollKibana) Pretty(pretty bool) *EnrollKibana {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollkibana/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollkibana/response.go
index 9550435b57..2e041c0390 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollkibana/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollkibana/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package enrollkibana
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package enrollkibana
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/enroll_kibana/Response.ts#L20-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/enroll_kibana/Response.ts#L20-L25
type Response struct {
HttpCa string `json:"http_ca"`
Token types.KibanaToken `json:"token"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollnode/enroll_node.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollnode/enroll_node.go
index f7b312463e..ed7c0f0f73 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollnode/enroll_node.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollnode/enroll_node.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Allows a new node to enroll to an existing cluster with security enabled.
package enrollnode
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -256,7 +256,7 @@ func (r EnrollNode) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -283,3 +283,47 @@ func (r *EnrollNode) Header(key, value string) *EnrollNode {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *EnrollNode) ErrorTrace(errortrace bool) *EnrollNode {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *EnrollNode) FilterPath(filterpaths ...string) *EnrollNode {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *EnrollNode) Human(human bool) *EnrollNode {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *EnrollNode) Pretty(pretty bool) *EnrollNode {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollnode/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollnode/response.go
index c303101dbb..ef4c34d3a0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollnode/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollnode/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package enrollnode
// Response holds the response body struct for the package enrollnode
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/enroll_node/Response.ts#L20-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/enroll_node/Response.ts#L20-L29
type Response struct {
HttpCaCert string `json:"http_ca_cert"`
HttpCaKey string `json:"http_ca_key"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getapikey/get_api_key.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getapikey/get_api_key.go
index ef0b29f2c6..81236010af 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getapikey/get_api_key.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getapikey/get_api_key.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information for one or more API keys.
package getapikey
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -249,7 +248,7 @@ func (r GetApiKey) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -350,3 +349,56 @@ func (r *GetApiKey) ActiveOnly(activeonly bool) *GetApiKey {
return r
}
+
+// WithProfileUid Determines whether to also retrieve the profile uid, for the API key owner
+// principal, if it exists.
+// API name: with_profile_uid
+func (r *GetApiKey) WithProfileUid(withprofileuid bool) *GetApiKey {
+ r.values.Set("with_profile_uid", strconv.FormatBool(withprofileuid))
+
+ return r
+}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetApiKey) ErrorTrace(errortrace bool) *GetApiKey {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetApiKey) FilterPath(filterpaths ...string) *GetApiKey {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetApiKey) Human(human bool) *GetApiKey {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetApiKey) Pretty(pretty bool) *GetApiKey {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getapikey/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getapikey/response.go
index f289b26480..2efdaac295 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getapikey/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getapikey/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getapikey
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getapikey
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_api_key/SecurityGetApiKeyResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_api_key/SecurityGetApiKeyResponse.ts#L22-L24
type Response struct {
ApiKeys []types.ApiKey `json:"api_keys"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getbuiltinprivileges/get_builtin_privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getbuiltinprivileges/get_builtin_privileges.go
index f78c1ab4a9..72d86d66e0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getbuiltinprivileges/get_builtin_privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getbuiltinprivileges/get_builtin_privileges.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves the list of cluster privileges and index privileges that are
// available in this version of Elasticsearch.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -252,7 +252,7 @@ func (r GetBuiltinPrivileges) IsSuccess(providedCtx context.Context) (bool, erro
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -279,3 +279,47 @@ func (r *GetBuiltinPrivileges) Header(key, value string) *GetBuiltinPrivileges {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetBuiltinPrivileges) ErrorTrace(errortrace bool) *GetBuiltinPrivileges {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetBuiltinPrivileges) FilterPath(filterpaths ...string) *GetBuiltinPrivileges {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetBuiltinPrivileges) Human(human bool) *GetBuiltinPrivileges {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetBuiltinPrivileges) Pretty(pretty bool) *GetBuiltinPrivileges {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getbuiltinprivileges/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getbuiltinprivileges/response.go
index 2a38290a52..48d9f833ef 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getbuiltinprivileges/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getbuiltinprivileges/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getbuiltinprivileges
@@ -30,7 +30,7 @@ import (
// Response holds the response body struct for the package getbuiltinprivileges
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesResponse.ts#L22-L24
type Response struct {
Cluster []string `json:"cluster"`
Index []string `json:"index"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getprivileges/get_privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getprivileges/get_privileges.go
index e02af3dba1..f55bdad401 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getprivileges/get_privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getprivileges/get_privileges.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves application privileges.
package getprivileges
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -289,7 +289,7 @@ func (r GetPrivileges) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -334,3 +334,47 @@ func (r *GetPrivileges) Name(name string) *GetPrivileges {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetPrivileges) ErrorTrace(errortrace bool) *GetPrivileges {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetPrivileges) FilterPath(filterpaths ...string) *GetPrivileges {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetPrivileges) Human(human bool) *GetPrivileges {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetPrivileges) Pretty(pretty bool) *GetPrivileges {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getprivileges/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getprivileges/response.go
index 289637ce9f..7c2e580760 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getprivileges/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getprivileges/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getprivileges
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getprivileges
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_privileges/SecurityGetPrivilegesResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_privileges/SecurityGetPrivilegesResponse.ts#L23-L26
type Response map[string]map[string]types.PrivilegesActions
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrole/get_role.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrole/get_role.go
index e67168def9..75eb64cf7c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrole/get_role.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrole/get_role.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves roles in the native realm.
package getrole
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -267,7 +267,7 @@ func (r GetRole) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -305,3 +305,47 @@ func (r *GetRole) Name(name string) *GetRole {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetRole) ErrorTrace(errortrace bool) *GetRole {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetRole) FilterPath(filterpaths ...string) *GetRole {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetRole) Human(human bool) *GetRole {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetRole) Pretty(pretty bool) *GetRole {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrole/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrole/response.go
index ce94016562..292c648bf1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrole/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrole/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getrole
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getrole
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_role/SecurityGetRoleResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_role/SecurityGetRoleResponse.ts#L23-L26
type Response map[string]types.Role
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrolemapping/get_role_mapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrolemapping/get_role_mapping.go
index d42715607c..e6900fe5db 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrolemapping/get_role_mapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrolemapping/get_role_mapping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves role mappings.
package getrolemapping
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -267,7 +267,7 @@ func (r GetRoleMapping) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -307,3 +307,47 @@ func (r *GetRoleMapping) Name(name string) *GetRoleMapping {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetRoleMapping) ErrorTrace(errortrace bool) *GetRoleMapping {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetRoleMapping) FilterPath(filterpaths ...string) *GetRoleMapping {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetRoleMapping) Human(human bool) *GetRoleMapping {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetRoleMapping) Pretty(pretty bool) *GetRoleMapping {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrolemapping/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrolemapping/response.go
index 53c35d5525..bc613898a5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrolemapping/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getrolemapping/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getrolemapping
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getrolemapping
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_role_mapping/SecurityGetRoleMappingResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_role_mapping/SecurityGetRoleMappingResponse.ts#L23-L26
type Response map[string]types.SecurityRoleMapping
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getserviceaccounts/get_service_accounts.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getserviceaccounts/get_service_accounts.go
index 50ac7cbe27..4e812976dd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getserviceaccounts/get_service_accounts.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getserviceaccounts/get_service_accounts.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information about service accounts.
package getserviceaccounts
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -289,7 +289,7 @@ func (r GetServiceAccounts) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -337,3 +337,47 @@ func (r *GetServiceAccounts) Service(service string) *GetServiceAccounts {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetServiceAccounts) ErrorTrace(errortrace bool) *GetServiceAccounts {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetServiceAccounts) FilterPath(filterpaths ...string) *GetServiceAccounts {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetServiceAccounts) Human(human bool) *GetServiceAccounts {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetServiceAccounts) Pretty(pretty bool) *GetServiceAccounts {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getserviceaccounts/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getserviceaccounts/response.go
index 04efbe8de0..c63602df71 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getserviceaccounts/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getserviceaccounts/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getserviceaccounts
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getserviceaccounts
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_service_accounts/GetServiceAccountsResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_service_accounts/GetServiceAccountsResponse.ts#L23-L26
type Response map[string]types.RoleDescriptorWrapper
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getservicecredentials/get_service_credentials.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getservicecredentials/get_service_credentials.go
index f8e63fb675..aff95bcc39 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getservicecredentials/get_service_credentials.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getservicecredentials/get_service_credentials.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information of all service credentials for a service account.
package getservicecredentials
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -275,7 +275,7 @@ func (r GetServiceCredentials) IsSuccess(providedCtx context.Context) (bool, err
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -320,3 +320,47 @@ func (r *GetServiceCredentials) _service(service string) *GetServiceCredentials
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetServiceCredentials) ErrorTrace(errortrace bool) *GetServiceCredentials {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetServiceCredentials) FilterPath(filterpaths ...string) *GetServiceCredentials {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetServiceCredentials) Human(human bool) *GetServiceCredentials {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetServiceCredentials) Pretty(pretty bool) *GetServiceCredentials {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getservicecredentials/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getservicecredentials/response.go
index 8f713cddbd..017330329f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getservicecredentials/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getservicecredentials/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getservicecredentials
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getservicecredentials
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_service_credentials/GetServiceCredentialsResponse.ts#L25-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_service_credentials/GetServiceCredentialsResponse.ts#L25-L33
type Response struct {
Count int `json:"count"`
// NodesCredentials Contains service account credentials collected from all nodes of the cluster
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getsettings/get_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getsettings/get_settings.go
index e57dd072c8..abbe3188f8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getsettings/get_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getsettings/get_settings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieve settings for the security system indices
package getsettings
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strings"
@@ -203,7 +202,7 @@ func (r GetSettings) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken/get_token.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken/get_token.go
index c83afc8e74..2a712dd7cd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken/get_token.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken/get_token.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a bearer token for access without requiring basic authentication.
package gettoken
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -294,6 +295,50 @@ func (r *GetToken) Header(key, value string) *GetToken {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetToken) ErrorTrace(errortrace bool) *GetToken {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetToken) FilterPath(filterpaths ...string) *GetToken {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetToken) Human(human bool) *GetToken {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetToken) Pretty(pretty bool) *GetToken {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: grant_type
func (r *GetToken) GrantType(granttype accesstokengranttype.AccessTokenGrantType) *GetToken {
r.req.GrantType = &granttype
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken/request.go
index 814212117a..eaccf5f4e3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package gettoken
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package gettoken
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_token/GetUserAccessTokenRequest.ts#L25-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_token/GetUserAccessTokenRequest.ts#L25-L39
type Request struct {
GrantType *accesstokengranttype.AccessTokenGrantType `json:"grant_type,omitempty"`
KerberosTicket *string `json:"kerberos_ticket,omitempty"`
@@ -46,6 +46,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken/response.go
index 4b4ba8051b..e34fc99008 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package gettoken
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package gettoken
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_token/GetUserAccessTokenResponse.ts#L23-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_token/GetUserAccessTokenResponse.ts#L23-L33
type Response struct {
AccessToken string `json:"access_token"`
Authentication types.AuthenticatedUser `json:"authentication"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuser/get_user.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuser/get_user.go
index 8be56fab21..7c50466303 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuser/get_user.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuser/get_user.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information about users in the native realm and built-in users.
package getuser
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -268,7 +267,7 @@ func (r GetUser) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -314,3 +313,47 @@ func (r *GetUser) WithProfileUid(withprofileuid bool) *GetUser {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetUser) ErrorTrace(errortrace bool) *GetUser {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetUser) FilterPath(filterpaths ...string) *GetUser {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetUser) Human(human bool) *GetUser {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetUser) Pretty(pretty bool) *GetUser {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuser/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuser/response.go
index b8d12b729e..b2c8408ced 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuser/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuser/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getuser
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getuser
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_user/SecurityGetUserResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_user/SecurityGetUserResponse.ts#L23-L26
type Response map[string]types.User
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprivileges/get_user_privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprivileges/get_user_privileges.go
index 68fbcaa0ac..caccc0c672 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprivileges/get_user_privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprivileges/get_user_privileges.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves security privileges for the logged in user.
package getuserprivileges
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -250,7 +250,7 @@ func (r GetUserPrivileges) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -303,3 +303,47 @@ func (r *GetUserPrivileges) Username(username string) *GetUserPrivileges {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetUserPrivileges) ErrorTrace(errortrace bool) *GetUserPrivileges {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetUserPrivileges) FilterPath(filterpaths ...string) *GetUserPrivileges {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetUserPrivileges) Human(human bool) *GetUserPrivileges {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetUserPrivileges) Pretty(pretty bool) *GetUserPrivileges {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprivileges/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprivileges/response.go
index 933e281276..287a94b910 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprivileges/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprivileges/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getuserprivileges
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getuserprivileges
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_user_privileges/SecurityGetUserPrivilegesResponse.ts#L27-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_user_privileges/SecurityGetUserPrivilegesResponse.ts#L27-L35
type Response struct {
Applications []types.ApplicationPrivileges `json:"applications"`
Cluster []string `json:"cluster"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprofile/get_user_profile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprofile/get_user_profile.go
index 232661d1da..e2d8275ca2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprofile/get_user_profile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprofile/get_user_profile.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves user profiles for the given unique ID(s).
package getuserprofile
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r GetUserProfile) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -313,3 +313,47 @@ func (r *GetUserProfile) Data(data ...string) *GetUserProfile {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetUserProfile) ErrorTrace(errortrace bool) *GetUserProfile {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetUserProfile) FilterPath(filterpaths ...string) *GetUserProfile {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetUserProfile) Human(human bool) *GetUserProfile {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetUserProfile) Pretty(pretty bool) *GetUserProfile {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprofile/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprofile/response.go
index 02cbe6074f..462139699b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprofile/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprofile/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getuserprofile
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getuserprofile
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_user_profile/Response.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_user_profile/Response.ts#L23-L28
type Response struct {
Errors *types.GetUserProfileErrors `json:"errors,omitempty"`
Profiles []types.UserProfileWithMetadata `json:"profiles"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/grantapikey/grant_api_key.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/grantapikey/grant_api_key.go
index 4dee92ad0a..eda815c168 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/grantapikey/grant_api_key.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/grantapikey/grant_api_key.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates an API key on behalf of another user.
package grantapikey
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -294,6 +295,50 @@ func (r *GrantApiKey) Header(key, value string) *GrantApiKey {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GrantApiKey) ErrorTrace(errortrace bool) *GrantApiKey {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GrantApiKey) FilterPath(filterpaths ...string) *GrantApiKey {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GrantApiKey) Human(human bool) *GrantApiKey {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GrantApiKey) Pretty(pretty bool) *GrantApiKey {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AccessToken The user’s access token.
// If you specify the `access_token` grant type, this parameter is required.
// It is not valid with other grant types.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/grantapikey/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/grantapikey/request.go
index ca68d87fed..207b0eeeaf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/grantapikey/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/grantapikey/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package grantapikey
@@ -34,7 +34,7 @@ import (
// Request holds the request body struct for the package grantapikey
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L75
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L75
type Request struct {
// AccessToken The user’s access token.
@@ -60,6 +60,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/grantapikey/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/grantapikey/response.go
index dcea9499c2..01f85bfb56 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/grantapikey/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/grantapikey/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package grantapikey
// Response holds the response body struct for the package grantapikey
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/grant_api_key/SecurityGrantApiKeyResponse.ts#L23-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/grant_api_key/SecurityGrantApiKeyResponse.ts#L23-L31
type Response struct {
ApiKey string `json:"api_key"`
Encoded string `json:"encoded"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/has_privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/has_privileges.go
index 28b1260a08..e5fceff9b2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/has_privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/has_privileges.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Determines whether the specified user has a specified list of privileges.
package hasprivileges
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -324,6 +325,50 @@ func (r *HasPrivileges) User(user string) *HasPrivileges {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *HasPrivileges) ErrorTrace(errortrace bool) *HasPrivileges {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *HasPrivileges) FilterPath(filterpaths ...string) *HasPrivileges {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *HasPrivileges) Human(human bool) *HasPrivileges {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *HasPrivileges) Pretty(pretty bool) *HasPrivileges {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: application
func (r *HasPrivileges) Application(applications ...types.ApplicationPrivilegesCheck) *HasPrivileges {
r.req.Application = applications
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/request.go
index bb9ad7508a..00c3c001d4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package hasprivileges
@@ -30,7 +30,7 @@ import (
// Request holds the request body struct for the package hasprivileges
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L42
type Request struct {
Application []types.ApplicationPrivilegesCheck `json:"application,omitempty"`
// Cluster A list of the cluster privileges that you want to check.
@@ -41,6 +41,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/response.go
index e1f9320eed..e99628ef1b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package hasprivileges
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package hasprivileges
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/has_privileges/SecurityHasPrivilegesResponse.ts#L24-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges/SecurityHasPrivilegesResponse.ts#L24-L32
type Response struct {
Application types.ApplicationsPrivileges `json:"application"`
Cluster map[string]bool `json:"cluster"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile/has_privileges_user_profile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile/has_privileges_user_profile.go
index a4f0e3f27c..d4f7d557ef 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile/has_privileges_user_profile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile/has_privileges_user_profile.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Determines whether the users associated with the specified profile IDs have
// all the requested privileges.
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -295,6 +296,50 @@ func (r *HasPrivilegesUserProfile) Header(key, value string) *HasPrivilegesUserP
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *HasPrivilegesUserProfile) ErrorTrace(errortrace bool) *HasPrivilegesUserProfile {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *HasPrivilegesUserProfile) FilterPath(filterpaths ...string) *HasPrivilegesUserProfile {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *HasPrivilegesUserProfile) Human(human bool) *HasPrivilegesUserProfile {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *HasPrivilegesUserProfile) Pretty(pretty bool) *HasPrivilegesUserProfile {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: privileges
func (r *HasPrivilegesUserProfile) Privileges(privileges *types.PrivilegesCheck) *HasPrivilegesUserProfile {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile/request.go
index 074fa8d624..8c76d0406a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package hasprivilegesuserprofile
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package hasprivilegesuserprofile
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/has_privileges_user_profile/Request.ts#L24-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges_user_profile/Request.ts#L24-L38
type Request struct {
Privileges types.PrivilegesCheck `json:"privileges"`
// Uids A list of profile IDs. The privileges are checked for associated users of the
@@ -40,6 +40,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile/response.go
index 383056dcb5..79a6301169 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package hasprivilegesuserprofile
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package hasprivilegesuserprofile
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/has_privileges_user_profile/Response.ts#L23-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges_user_profile/Response.ts#L23-L38
type Response struct {
// Errors The subset of the requested profile IDs for which an error
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidateapikey/invalidate_api_key.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidateapikey/invalidate_api_key.go
index fabc63200e..7a4cfd6793 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidateapikey/invalidate_api_key.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidateapikey/invalidate_api_key.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Invalidates one or more API keys.
package invalidateapikey
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -291,6 +292,50 @@ func (r *InvalidateApiKey) Header(key, value string) *InvalidateApiKey {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *InvalidateApiKey) ErrorTrace(errortrace bool) *InvalidateApiKey {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *InvalidateApiKey) FilterPath(filterpaths ...string) *InvalidateApiKey {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *InvalidateApiKey) Human(human bool) *InvalidateApiKey {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *InvalidateApiKey) Pretty(pretty bool) *InvalidateApiKey {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: id
func (r *InvalidateApiKey) Id(id string) *InvalidateApiKey {
r.req.Id = &id
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidateapikey/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidateapikey/request.go
index 7ceb062b0c..3aade59771 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidateapikey/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidateapikey/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package invalidateapikey
@@ -31,7 +31,7 @@ import (
// Request holds the request body struct for the package invalidateapikey
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L66
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L66
type Request struct {
Id *string `json:"id,omitempty"`
// Ids A list of API key ids.
@@ -59,6 +59,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -104,7 +105,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "owner":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidateapikey/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidateapikey/response.go
index fe8678b26d..4273c62de8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidateapikey/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidateapikey/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package invalidateapikey
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package invalidateapikey
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/invalidate_api_key/SecurityInvalidateApiKeyResponse.ts#L23-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/invalidate_api_key/SecurityInvalidateApiKeyResponse.ts#L23-L30
type Response struct {
ErrorCount int `json:"error_count"`
ErrorDetails []types.ErrorCause `json:"error_details,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken/invalidate_token.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken/invalidate_token.go
index 419001326c..8d88175223 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken/invalidate_token.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken/invalidate_token.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Invalidates one or more access tokens or refresh tokens.
package invalidatetoken
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -293,6 +294,50 @@ func (r *InvalidateToken) Header(key, value string) *InvalidateToken {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *InvalidateToken) ErrorTrace(errortrace bool) *InvalidateToken {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *InvalidateToken) FilterPath(filterpaths ...string) *InvalidateToken {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *InvalidateToken) Human(human bool) *InvalidateToken {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *InvalidateToken) Pretty(pretty bool) *InvalidateToken {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: realm_name
func (r *InvalidateToken) RealmName(name string) *InvalidateToken {
r.req.RealmName = &name
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken/request.go
index 796bda9cb2..392ddbae1d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package invalidatetoken
@@ -31,7 +31,7 @@ import (
// Request holds the request body struct for the package invalidatetoken
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L35
type Request struct {
RealmName *string `json:"realm_name,omitempty"`
RefreshToken *string `json:"refresh_token,omitempty"`
@@ -42,6 +42,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken/response.go
index 91ef91fe34..d143afe0ed 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package invalidatetoken
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package invalidatetoken
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/invalidate_token/SecurityInvalidateTokenResponse.ts#L23-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/invalidate_token/SecurityInvalidateTokenResponse.ts#L23-L30
type Response struct {
ErrorCount int64 `json:"error_count"`
ErrorDetails []types.ErrorCause `json:"error_details,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/oidcauthenticate/oidc_authenticate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/oidcauthenticate/oidc_authenticate.go
index 07472cba56..5a28e8fafd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/oidcauthenticate/oidc_authenticate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/oidcauthenticate/oidc_authenticate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Exchanges an OpenID Connection authentication response message for an
// Elasticsearch access token and refresh token pair
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strings"
@@ -207,7 +206,7 @@ func (r OidcAuthenticate) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/oidclogout/oidc_logout.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/oidclogout/oidc_logout.go
index 109dc70ca8..2cd20ceeb6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/oidclogout/oidc_logout.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/oidclogout/oidc_logout.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Invalidates a refresh token and access token that was generated from the
// OpenID Connect Authenticate API
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strings"
@@ -207,7 +206,7 @@ func (r OidcLogout) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/oidcprepareauthentication/oidc_prepare_authentication.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/oidcprepareauthentication/oidc_prepare_authentication.go
index 437e77800e..f0139f51b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/oidcprepareauthentication/oidc_prepare_authentication.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/oidcprepareauthentication/oidc_prepare_authentication.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates an OAuth 2.0 authentication request as a URL string
package oidcprepareauthentication
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strings"
@@ -205,7 +204,7 @@ func (r OidcPrepareAuthentication) IsSuccess(providedCtx context.Context) (bool,
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/put_privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/put_privileges.go
index ab9656d2cf..2a666eb268 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/put_privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/put_privileges.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Adds or updates application privileges.
package putprivileges
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -301,3 +302,47 @@ func (r *PutPrivileges) Refresh(refresh refresh.Refresh) *PutPrivileges {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutPrivileges) ErrorTrace(errortrace bool) *PutPrivileges {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutPrivileges) FilterPath(filterpaths ...string) *PutPrivileges {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutPrivileges) Human(human bool) *PutPrivileges {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutPrivileges) Pretty(pretty bool) *PutPrivileges {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/request.go
index 46e8e37053..3e3a9a68df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putprivileges
@@ -26,7 +26,7 @@ import (
// Request holds the request body struct for the package putprivileges
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L37
type Request = map[string]map[string]types.PrivilegesActions
// NewRequest returns a Request
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/response.go
index 1746d3c397..36ec3ae500 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putprivileges
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package putprivileges
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/put_privileges/SecurityPutPrivilegesResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_privileges/SecurityPutPrivilegesResponse.ts#L23-L26
type Response map[string]map[string]types.CreatedStatus
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrole/put_role.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrole/put_role.go
index c2ba421dd4..5e87a0ac19 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrole/put_role.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrole/put_role.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Adds and updates roles in the native realm.
package putrole
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -326,6 +327,50 @@ func (r *PutRole) Refresh(refresh refresh.Refresh) *PutRole {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutRole) ErrorTrace(errortrace bool) *PutRole {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutRole) FilterPath(filterpaths ...string) *PutRole {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutRole) Human(human bool) *PutRole {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutRole) Pretty(pretty bool) *PutRole {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Applications A list of application privilege entries.
// API name: applications
func (r *PutRole) Applications(applications ...types.ApplicationPrivileges) *PutRole {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrole/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrole/request.go
index 1fe6fba36f..fd9e512984 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrole/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrole/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putrole
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package putrole
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/put_role/SecurityPutRoleRequest.ts#L30-L79
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_role/SecurityPutRoleRequest.ts#L30-L79
type Request struct {
// Applications A list of application privilege entries.
@@ -67,6 +67,7 @@ func NewRequest() *Request {
Global: make(map[string]json.RawMessage, 0),
TransientMetadata: make(map[string]json.RawMessage, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrole/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrole/response.go
index e7e5f8cbce..e07cdf0b81 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrole/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrole/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putrole
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package putrole
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/put_role/SecurityPutRoleResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_role/SecurityPutRoleResponse.ts#L22-L24
type Response struct {
Role types.CreatedStatus `json:"role"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping/put_role_mapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping/put_role_mapping.go
index 0eb624e8ee..0751af4f73 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping/put_role_mapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping/put_role_mapping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates and updates role mappings.
package putrolemapping
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -325,6 +326,50 @@ func (r *PutRoleMapping) Refresh(refresh refresh.Refresh) *PutRoleMapping {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutRoleMapping) ErrorTrace(errortrace bool) *PutRoleMapping {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutRoleMapping) FilterPath(filterpaths ...string) *PutRoleMapping {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutRoleMapping) Human(human bool) *PutRoleMapping {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutRoleMapping) Pretty(pretty bool) *PutRoleMapping {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: enabled
func (r *PutRoleMapping) Enabled(enabled bool) *PutRoleMapping {
r.req.Enabled = &enabled
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping/request.go
index 3819c9fec9..3e958c8faf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putrolemapping
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package putrolemapping
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L47
type Request struct {
Enabled *bool `json:"enabled,omitempty"`
Metadata types.Metadata `json:"metadata,omitempty"`
@@ -46,6 +46,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -76,7 +77,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
switch t {
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping/response.go
index a027e9d36b..6c28f76484 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putrolemapping
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package putrolemapping
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/put_role_mapping/SecurityPutRoleMappingResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_role_mapping/SecurityPutRoleMappingResponse.ts#L22-L24
type Response struct {
Created *bool `json:"created,omitempty"`
RoleMapping types.CreatedStatus `json:"role_mapping"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser/put_user.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser/put_user.go
index 4a986531c0..e54c606169 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser/put_user.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser/put_user.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Adds and updates users in the native realm. These users are commonly referred
// to as native users.
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -327,6 +328,50 @@ func (r *PutUser) Refresh(refresh refresh.Refresh) *PutUser {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutUser) ErrorTrace(errortrace bool) *PutUser {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutUser) FilterPath(filterpaths ...string) *PutUser {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutUser) Human(human bool) *PutUser {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutUser) Pretty(pretty bool) *PutUser {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: email
func (r *PutUser) Email(email string) *PutUser {
r.req.Email = email
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser/request.go
index f5d2605431..1cc4f6b08f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putuser
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package putuser
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/put_user/SecurityPutUserRequest.ts#L23-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_user/SecurityPutUserRequest.ts#L23-L44
type Request struct {
Email string `json:"email,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
@@ -48,6 +48,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -90,7 +91,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
s.Email = o
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser/response.go
index bfac90df8a..bb1c75a1fd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putuser
// Response holds the response body struct for the package putuser
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/put_user/SecurityPutUserResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_user/SecurityPutUserResponse.ts#L20-L22
type Response struct {
Created bool `json:"created"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys/query_api_keys.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys/query_api_keys.go
index d845b144b5..0680385626 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys/query_api_keys.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys/query_api_keys.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information for API keys using a subset of query DSL
package queryapikeys
@@ -307,6 +307,15 @@ func (r *QueryApiKeys) WithLimitedBy(withlimitedby bool) *QueryApiKeys {
return r
}
+// WithProfileUid Determines whether to also retrieve the profile uid, for the API key owner
+// principal, if it exists.
+// API name: with_profile_uid
+func (r *QueryApiKeys) WithProfileUid(withprofileuid bool) *QueryApiKeys {
+ r.values.Set("with_profile_uid", strconv.FormatBool(withprofileuid))
+
+ return r
+}
+
// TypedKeys Determines whether aggregation names are prefixed by their respective types
// in the response.
// API name: typed_keys
@@ -316,6 +325,50 @@ func (r *QueryApiKeys) TypedKeys(typedkeys bool) *QueryApiKeys {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *QueryApiKeys) ErrorTrace(errortrace bool) *QueryApiKeys {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *QueryApiKeys) FilterPath(filterpaths ...string) *QueryApiKeys {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *QueryApiKeys) Human(human bool) *QueryApiKeys {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *QueryApiKeys) Pretty(pretty bool) *QueryApiKeys {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Aggregations Any aggregations to run over the corpus of returned API keys.
// Aggregations and queries work together. Aggregations are computed only on the
// API keys that match the query.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys/request.go
index 7c39d628e7..ca274abd85 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package queryapikeys
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package queryapikeys
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/query_api_keys/QueryApiKeysRequest.ts#L26-L93
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/query_api_keys/QueryApiKeysRequest.ts#L26-L99
type Request struct {
// Aggregations Any aggregations to run over the corpus of returned API keys.
@@ -78,6 +78,7 @@ func NewRequest() *Request {
r := &Request{
Aggregations: make(map[string]types.ApiKeyAggregationContainer, 0),
}
+
return r
}
@@ -117,7 +118,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "from":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -143,7 +144,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys/response.go
index 2c33a0b924..351150c5c8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package queryapikeys
@@ -34,7 +34,7 @@ import (
// Response holds the response body struct for the package queryapikeys
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/query_api_keys/QueryApiKeysResponse.ts#L26-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/query_api_keys/QueryApiKeysResponse.ts#L26-L45
type Response struct {
// Aggregations The aggregations result, if requested.
@@ -183,7 +183,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -193,7 +193,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -209,7 +209,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -225,7 +225,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate/request.go
index 20c1def68e..a91661694e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package samlauthenticate
@@ -31,7 +31,7 @@ import (
// Request holds the request body struct for the package samlauthenticate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/saml_authenticate/Request.ts#L23-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_authenticate/Request.ts#L23-L38
type Request struct {
// Content The SAML response as it was sent by the user’s browser, usually a Base64
@@ -48,6 +48,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate/response.go
index a423d10d2d..dbb34095fb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package samlauthenticate
// Response holds the response body struct for the package samlauthenticate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/saml_authenticate/Response.ts#L22-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_authenticate/Response.ts#L22-L30
type Response struct {
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate/saml_authenticate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate/saml_authenticate.go
index 527a2c8ef1..7f7042ec98 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate/saml_authenticate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate/saml_authenticate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Exchanges a SAML Response message for an Elasticsearch access token and
// refresh token pair
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -295,6 +296,50 @@ func (r *SamlAuthenticate) Header(key, value string) *SamlAuthenticate {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *SamlAuthenticate) ErrorTrace(errortrace bool) *SamlAuthenticate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *SamlAuthenticate) FilterPath(filterpaths ...string) *SamlAuthenticate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *SamlAuthenticate) Human(human bool) *SamlAuthenticate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *SamlAuthenticate) Pretty(pretty bool) *SamlAuthenticate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Content The SAML response as it was sent by the user’s browser, usually a Base64
// encoded XML document.
// API name: content
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlcompletelogout/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlcompletelogout/request.go
index 0a236fa58b..e678fb8121 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlcompletelogout/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlcompletelogout/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package samlcompletelogout
@@ -31,7 +31,7 @@ import (
// Request holds the request body struct for the package samlcompletelogout
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/saml_complete_logout/Request.ts#L23-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_complete_logout/Request.ts#L23-L40
type Request struct {
// Content If the SAML IdP sends the logout response with the HTTP-Post binding, this
@@ -52,6 +52,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlcompletelogout/saml_complete_logout.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlcompletelogout/saml_complete_logout.go
index d394822d8f..1ae0477d6b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlcompletelogout/saml_complete_logout.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlcompletelogout/saml_complete_logout.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Verifies the logout response sent from the SAML IdP
package samlcompletelogout
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -238,6 +239,50 @@ func (r *SamlCompleteLogout) Header(key, value string) *SamlCompleteLogout {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *SamlCompleteLogout) ErrorTrace(errortrace bool) *SamlCompleteLogout {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *SamlCompleteLogout) FilterPath(filterpaths ...string) *SamlCompleteLogout {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *SamlCompleteLogout) Human(human bool) *SamlCompleteLogout {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *SamlCompleteLogout) Pretty(pretty bool) *SamlCompleteLogout {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Content If the SAML IdP sends the logout response with the HTTP-Post binding, this
// field must be set to the value of the SAMLResponse form parameter from the
// logout response.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate/request.go
index a2f4c4f902..e04b81891f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package samlinvalidate
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package samlinvalidate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/saml_invalidate/Request.ts#L22-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_invalidate/Request.ts#L22-L43
type Request struct {
// Acs The Assertion Consumer Service URL that matches the one of the SAML realm in
@@ -55,6 +55,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate/response.go
index 25d9b39d33..5220e3cba9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package samlinvalidate
// Response holds the response body struct for the package samlinvalidate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/saml_invalidate/Response.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_invalidate/Response.ts#L22-L28
type Response struct {
Invalidated int `json:"invalidated"`
Realm string `json:"realm"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate/saml_invalidate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate/saml_invalidate.go
index 72020f377e..dbfa39d719 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate/saml_invalidate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate/saml_invalidate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Consumes a SAML LogoutRequest
package samlinvalidate
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -293,6 +294,50 @@ func (r *SamlInvalidate) Header(key, value string) *SamlInvalidate {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *SamlInvalidate) ErrorTrace(errortrace bool) *SamlInvalidate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *SamlInvalidate) FilterPath(filterpaths ...string) *SamlInvalidate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *SamlInvalidate) Human(human bool) *SamlInvalidate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *SamlInvalidate) Pretty(pretty bool) *SamlInvalidate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Acs The Assertion Consumer Service URL that matches the one of the SAML realm in
// Elasticsearch that should be used. You must specify either this parameter or
// the realm parameter.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samllogout/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samllogout/request.go
index 0b12c9e639..9cff748ffe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samllogout/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samllogout/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package samllogout
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package samllogout
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/saml_logout/Request.ts#L22-L41
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_logout/Request.ts#L22-L41
type Request struct {
// RefreshToken The refresh token that was returned as a response to calling the SAML
@@ -45,6 +45,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samllogout/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samllogout/response.go
index c8ac730e80..3f12051b33 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samllogout/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samllogout/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package samllogout
// Response holds the response body struct for the package samllogout
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/saml_logout/Response.ts#L20-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_logout/Response.ts#L20-L24
type Response struct {
Redirect string `json:"redirect"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samllogout/saml_logout.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samllogout/saml_logout.go
index 7fd8f981a5..9ec23aa7f0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samllogout/saml_logout.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samllogout/saml_logout.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Invalidates an access token and a refresh token that were generated via the
// SAML Authenticate API
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -295,6 +296,50 @@ func (r *SamlLogout) Header(key, value string) *SamlLogout {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *SamlLogout) ErrorTrace(errortrace bool) *SamlLogout {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *SamlLogout) FilterPath(filterpaths ...string) *SamlLogout {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *SamlLogout) Human(human bool) *SamlLogout {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *SamlLogout) Pretty(pretty bool) *SamlLogout {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// RefreshToken The refresh token that was returned as a response to calling the SAML
// authenticate API.
// Alternatively, the most recent refresh token that was received after
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlprepareauthentication/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlprepareauthentication/request.go
index 4e677f2cc7..8deec7a2b8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlprepareauthentication/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlprepareauthentication/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package samlprepareauthentication
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package samlprepareauthentication
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/saml_prepare_authentication/Request.ts#L22-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_prepare_authentication/Request.ts#L22-L46
type Request struct {
// Acs The Assertion Consumer Service URL that matches the one of the SAML realms in
@@ -49,6 +49,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlprepareauthentication/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlprepareauthentication/response.go
index 60053f7243..8c3e2761dd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlprepareauthentication/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlprepareauthentication/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package samlprepareauthentication
// Response holds the response body struct for the package samlprepareauthentication
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/saml_prepare_authentication/Response.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_prepare_authentication/Response.ts#L22-L28
type Response struct {
Id string `json:"id"`
Realm string `json:"realm"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlprepareauthentication/saml_prepare_authentication.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlprepareauthentication/saml_prepare_authentication.go
index e5d3f123ed..dd52ee3e42 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlprepareauthentication/saml_prepare_authentication.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlprepareauthentication/saml_prepare_authentication.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a SAML authentication request
package samlprepareauthentication
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -293,6 +294,50 @@ func (r *SamlPrepareAuthentication) Header(key, value string) *SamlPrepareAuthen
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *SamlPrepareAuthentication) ErrorTrace(errortrace bool) *SamlPrepareAuthentication {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *SamlPrepareAuthentication) FilterPath(filterpaths ...string) *SamlPrepareAuthentication {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *SamlPrepareAuthentication) Human(human bool) *SamlPrepareAuthentication {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *SamlPrepareAuthentication) Pretty(pretty bool) *SamlPrepareAuthentication {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Acs The Assertion Consumer Service URL that matches the one of the SAML realms in
// Elasticsearch.
// The realm is used to generate the authentication request. You must specify
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlserviceprovidermetadata/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlserviceprovidermetadata/response.go
index c91abac72c..25d6b1c46a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlserviceprovidermetadata/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlserviceprovidermetadata/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package samlserviceprovidermetadata
// Response holds the response body struct for the package samlserviceprovidermetadata
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/saml_service_provider_metadata/Response.ts#L20-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/saml_service_provider_metadata/Response.ts#L20-L24
type Response struct {
Metadata string `json:"metadata"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlserviceprovidermetadata/saml_service_provider_metadata.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlserviceprovidermetadata/saml_service_provider_metadata.go
index 50be9934c6..707f1eaf40 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlserviceprovidermetadata/saml_service_provider_metadata.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/samlserviceprovidermetadata/saml_service_provider_metadata.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Generates SAML metadata for the Elastic stack SAML 2.0 Service Provider
package samlserviceprovidermetadata
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -270,7 +270,7 @@ func (r SamlServiceProviderMetadata) IsSuccess(providedCtx context.Context) (boo
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -306,3 +306,47 @@ func (r *SamlServiceProviderMetadata) _realmname(realmname string) *SamlServiceP
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *SamlServiceProviderMetadata) ErrorTrace(errortrace bool) *SamlServiceProviderMetadata {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *SamlServiceProviderMetadata) FilterPath(filterpaths ...string) *SamlServiceProviderMetadata {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *SamlServiceProviderMetadata) Human(human bool) *SamlServiceProviderMetadata {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *SamlServiceProviderMetadata) Pretty(pretty bool) *SamlServiceProviderMetadata {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles/request.go
index 3d5efdd150..36b14f73fd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package suggestuserprofiles
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package suggestuserprofiles
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/suggest_user_profiles/Request.ts#L24-L66
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/suggest_user_profiles/Request.ts#L24-L66
type Request struct {
// Data List of filters for the `data` field of the profile document.
@@ -56,6 +56,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -119,7 +120,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
s.Name = &o
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles/response.go
index c93d6a69af..439f223507 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package suggestuserprofiles
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package suggestuserprofiles
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/suggest_user_profiles/Response.ts#L29-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/suggest_user_profiles/Response.ts#L29-L35
type Response struct {
Profiles []types.UserProfile `json:"profiles"`
Took int64 `json:"took"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles/suggest_user_profiles.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles/suggest_user_profiles.go
index 66928c8b7b..851438eb36 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles/suggest_user_profiles.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles/suggest_user_profiles.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Get suggestions for user profiles that match specified search criteria.
package suggestuserprofiles
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -293,6 +294,50 @@ func (r *SuggestUserProfiles) Header(key, value string) *SuggestUserProfiles {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *SuggestUserProfiles) ErrorTrace(errortrace bool) *SuggestUserProfiles {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *SuggestUserProfiles) FilterPath(filterpaths ...string) *SuggestUserProfiles {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *SuggestUserProfiles) Human(human bool) *SuggestUserProfiles {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *SuggestUserProfiles) Pretty(pretty bool) *SuggestUserProfiles {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Data List of filters for the `data` field of the profile document.
// To return all content use `data=*`. To return a subset of content
// use `data=` to retrieve content nested under the specified ``.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateapikey/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateapikey/request.go
index ce0c5e25d2..c58fbe545f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateapikey/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateapikey/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updateapikey
@@ -32,7 +32,7 @@ import (
// Request holds the request body struct for the package updateapikey
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/update_api_key/Request.ts#L26-L65
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/update_api_key/Request.ts#L26-L65
type Request struct {
// Expiration Expiration time for the API key.
@@ -57,6 +57,7 @@ func NewRequest() *Request {
r := &Request{
RoleDescriptors: make(map[string]types.RoleDescriptor, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateapikey/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateapikey/response.go
index fa4e2156ba..162e19f39b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateapikey/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateapikey/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updateapikey
// Response holds the response body struct for the package updateapikey
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/update_api_key/Response.ts#L20-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/update_api_key/Response.ts#L20-L28
type Response struct {
// Updated If `true`, the API key was updated.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateapikey/update_api_key.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateapikey/update_api_key.go
index 369ad9990f..753d35930a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateapikey/update_api_key.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateapikey/update_api_key.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates attributes of an existing API key.
package updateapikey
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -314,6 +315,50 @@ func (r *UpdateApiKey) _id(id string) *UpdateApiKey {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *UpdateApiKey) ErrorTrace(errortrace bool) *UpdateApiKey {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *UpdateApiKey) FilterPath(filterpaths ...string) *UpdateApiKey {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *UpdateApiKey) Human(human bool) *UpdateApiKey {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *UpdateApiKey) Pretty(pretty bool) *UpdateApiKey {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Expiration Expiration time for the API key.
// API name: expiration
func (r *UpdateApiKey) Expiration(duration types.Duration) *UpdateApiKey {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updatesettings/update_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updatesettings/update_settings.go
index d274b36540..046e2836c7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updatesettings/update_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updatesettings/update_settings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Update settings for the security system index
package updatesettings
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strings"
@@ -203,7 +202,7 @@ func (r UpdateSettings) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateuserprofiledata/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateuserprofiledata/request.go
index efa81724e1..01cbf125dc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateuserprofiledata/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateuserprofiledata/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updateuserprofiledata
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package updateuserprofiledata
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/update_user_profile_data/Request.ts#L27-L70
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/update_user_profile_data/Request.ts#L27-L70
type Request struct {
// Data Non-searchable data that you want to associate with the user profile.
@@ -44,6 +44,7 @@ func NewRequest() *Request {
Data: make(map[string]json.RawMessage, 0),
Labels: make(map[string]json.RawMessage, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateuserprofiledata/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateuserprofiledata/response.go
index d5a91ccc93..723f013453 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateuserprofiledata/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateuserprofiledata/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updateuserprofiledata
// Response holds the response body struct for the package updateuserprofiledata
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/update_user_profile_data/Response.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/update_user_profile_data/Response.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateuserprofiledata/update_user_profile_data.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateuserprofiledata/update_user_profile_data.go
index 7717d9a1fc..cbefdc8ccf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateuserprofiledata/update_user_profile_data.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/security/updateuserprofiledata/update_user_profile_data.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Update application specific data for the user profile of the given unique ID.
package updateuserprofiledata
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -344,6 +345,50 @@ func (r *UpdateUserProfileData) Refresh(refresh refresh.Refresh) *UpdateUserProf
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *UpdateUserProfileData) ErrorTrace(errortrace bool) *UpdateUserProfileData {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *UpdateUserProfileData) FilterPath(filterpaths ...string) *UpdateUserProfileData {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *UpdateUserProfileData) Human(human bool) *UpdateUserProfileData {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *UpdateUserProfileData) Pretty(pretty bool) *UpdateUserProfileData {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Data Non-searchable data that you want to associate with the user profile.
// This field supports a nested data structure.
// API name: data
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/deletenode/delete_node.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/deletenode/delete_node.go
index e9c23393e9..bc4bf036e9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/deletenode/delete_node.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/deletenode/delete_node.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Removes a node from the shutdown list. Designed for indirect use by ECE/ESS
// and ECK. Direct use is not supported.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -271,7 +271,7 @@ func (r DeleteNode) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -325,3 +325,47 @@ func (r *DeleteNode) Timeout(timeout timeunit.TimeUnit) *DeleteNode {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteNode) ErrorTrace(errortrace bool) *DeleteNode {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteNode) FilterPath(filterpaths ...string) *DeleteNode {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteNode) Human(human bool) *DeleteNode {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteNode) Pretty(pretty bool) *DeleteNode {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/deletenode/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/deletenode/response.go
index 4f9294f06f..a5bd766b59 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/deletenode/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/deletenode/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletenode
// Response holds the response body struct for the package deletenode
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/shutdown/delete_node/ShutdownDeleteNodeResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/delete_node/ShutdownDeleteNodeResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/getnode/get_node.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/getnode/get_node.go
index 7e24675c6a..656a09bb7f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/getnode/get_node.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/getnode/get_node.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieve status of a node or nodes that are currently marked as shutting
// down. Designed for indirect use by ECE/ESS and ECK. Direct use is not
@@ -29,9 +29,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -278,7 +278,7 @@ func (r GetNode) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -332,3 +332,47 @@ func (r *GetNode) Timeout(timeout timeunit.TimeUnit) *GetNode {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetNode) ErrorTrace(errortrace bool) *GetNode {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetNode) FilterPath(filterpaths ...string) *GetNode {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetNode) Human(human bool) *GetNode {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetNode) Pretty(pretty bool) *GetNode {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/getnode/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/getnode/response.go
index 0fb2d537ba..7c79ed0784 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/getnode/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/getnode/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getnode
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getnode
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L23-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L23-L27
type Response struct {
Nodes []types.NodeShutdownStatus `json:"nodes"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/putnode/put_node.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/putnode/put_node.go
index 9fcef248f0..ba43b95423 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/putnode/put_node.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/putnode/put_node.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Adds a node to be shut down. Designed for indirect use by ECE/ESS and ECK.
// Direct use is not supported.
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -336,6 +337,50 @@ func (r *PutNode) Timeout(timeout timeunit.TimeUnit) *PutNode {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutNode) ErrorTrace(errortrace bool) *PutNode {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutNode) FilterPath(filterpaths ...string) *PutNode {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutNode) Human(human bool) *PutNode {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutNode) Pretty(pretty bool) *PutNode {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// AllocationDelay Only valid if type is restart.
// Controls how long Elasticsearch will wait for the node to restart and join
// the cluster before reassigning its shards to other nodes.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/putnode/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/putnode/request.go
index 7c3f429e3b..0b88c5dd7c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/putnode/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/putnode/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putnode
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package putnode
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L76
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L76
type Request struct {
// AllocationDelay Only valid if type is restart.
@@ -69,6 +69,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/putnode/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/putnode/response.go
index df940ab3aa..613867a75e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/putnode/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/putnode/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putnode
// Response holds the response body struct for the package putnode
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/shutdown/put_node/ShutdownPutNodeResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/put_node/ShutdownPutNodeResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/deletelifecycle/delete_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/deletelifecycle/delete_lifecycle.go
index 6ea83f53c4..69ce8beb06 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/deletelifecycle/delete_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/deletelifecycle/delete_lifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an existing snapshot lifecycle policy.
package deletelifecycle
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r DeleteLifecycle) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *DeleteLifecycle) _policyid(policyid string) *DeleteLifecycle {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteLifecycle) ErrorTrace(errortrace bool) *DeleteLifecycle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteLifecycle) FilterPath(filterpaths ...string) *DeleteLifecycle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteLifecycle) Human(human bool) *DeleteLifecycle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteLifecycle) Pretty(pretty bool) *DeleteLifecycle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/deletelifecycle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/deletelifecycle/response.go
index bac75206f1..c926617b9f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/deletelifecycle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/deletelifecycle/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletelifecycle
// Response holds the response body struct for the package deletelifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executelifecycle/execute_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executelifecycle/execute_lifecycle.go
index ebfff7da78..f199942f0e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executelifecycle/execute_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executelifecycle/execute_lifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Immediately creates a snapshot according to the lifecycle policy, without
// waiting for the scheduled time.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -266,7 +266,7 @@ func (r ExecuteLifecycle) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -302,3 +302,47 @@ func (r *ExecuteLifecycle) _policyid(policyid string) *ExecuteLifecycle {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ExecuteLifecycle) ErrorTrace(errortrace bool) *ExecuteLifecycle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ExecuteLifecycle) FilterPath(filterpaths ...string) *ExecuteLifecycle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ExecuteLifecycle) Human(human bool) *ExecuteLifecycle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ExecuteLifecycle) Pretty(pretty bool) *ExecuteLifecycle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executelifecycle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executelifecycle/response.go
index c8f6c782cd..872274c03e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executelifecycle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executelifecycle/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package executelifecycle
// Response holds the response body struct for the package executelifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts#L22-L24
type Response struct {
SnapshotName string `json:"snapshot_name"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executeretention/execute_retention.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executeretention/execute_retention.go
index da68b40ec0..37607a2a02 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executeretention/execute_retention.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executeretention/execute_retention.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes any snapshots that are expired according to the policy's retention
// rules.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -250,7 +250,7 @@ func (r ExecuteRetention) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -277,3 +277,47 @@ func (r *ExecuteRetention) Header(key, value string) *ExecuteRetention {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ExecuteRetention) ErrorTrace(errortrace bool) *ExecuteRetention {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ExecuteRetention) FilterPath(filterpaths ...string) *ExecuteRetention {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ExecuteRetention) Human(human bool) *ExecuteRetention {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ExecuteRetention) Pretty(pretty bool) *ExecuteRetention {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executeretention/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executeretention/response.go
index 1346ad9c49..9ed8e67468 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executeretention/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/executeretention/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package executeretention
// Response holds the response body struct for the package executeretention
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/execute_retention/ExecuteRetentionResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/execute_retention/ExecuteRetentionResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getlifecycle/get_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getlifecycle/get_lifecycle.go
index be831e8a65..eb2ca6c373 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getlifecycle/get_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getlifecycle/get_lifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves one or more snapshot lifecycle policy definitions and information
// about the latest snapshot attempts.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -269,7 +269,7 @@ func (r GetLifecycle) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -305,3 +305,47 @@ func (r *GetLifecycle) PolicyId(policyid string) *GetLifecycle {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetLifecycle) ErrorTrace(errortrace bool) *GetLifecycle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetLifecycle) FilterPath(filterpaths ...string) *GetLifecycle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetLifecycle) Human(human bool) *GetLifecycle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetLifecycle) Pretty(pretty bool) *GetLifecycle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getlifecycle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getlifecycle/response.go
index 06d58a6980..a7b0a78385 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getlifecycle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getlifecycle/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getlifecycle
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getlifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/get_lifecycle/GetSnapshotLifecycleResponse.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/get_lifecycle/GetSnapshotLifecycleResponse.ts#L24-L27
type Response map[string]types.SnapshotLifecycle
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstats/get_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstats/get_stats.go
index 29ceee6d5d..246dc2cb71 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstats/get_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstats/get_stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns global and policy-level statistics about actions taken by snapshot
// lifecycle management.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -250,7 +250,7 @@ func (r GetStats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -277,3 +277,47 @@ func (r *GetStats) Header(key, value string) *GetStats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetStats) ErrorTrace(errortrace bool) *GetStats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetStats) FilterPath(filterpaths ...string) *GetStats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetStats) Human(human bool) *GetStats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetStats) Pretty(pretty bool) *GetStats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstats/response.go
index c529bc4a45..8bbe77d455 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getstats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getstats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts#L23-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts#L23-L36
type Response struct {
PolicyStats []string `json:"policy_stats"`
RetentionDeletionTime types.Duration `json:"retention_deletion_time"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstatus/get_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstatus/get_status.go
index 6e5e750242..bfb8af3224 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstatus/get_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstatus/get_status.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves the status of snapshot lifecycle management (SLM).
package getstatus
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r GetStatus) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *GetStatus) Header(key, value string) *GetStatus {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetStatus) ErrorTrace(errortrace bool) *GetStatus {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetStatus) FilterPath(filterpaths ...string) *GetStatus {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetStatus) Human(human bool) *GetStatus {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetStatus) Pretty(pretty bool) *GetStatus {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstatus/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstatus/response.go
index c53c5f23d3..258740e1a9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstatus/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstatus/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getstatus
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getstatus
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts#L22-L24
type Response struct {
OperationMode lifecycleoperationmode.LifecycleOperationMode `json:"operation_mode"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/putlifecycle/put_lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/putlifecycle/put_lifecycle.go
index db92bd9c18..2b007e56dc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/putlifecycle/put_lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/putlifecycle/put_lifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates or updates a snapshot lifecycle policy.
package putlifecycle
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -332,6 +333,50 @@ func (r *PutLifecycle) Timeout(duration string) *PutLifecycle {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutLifecycle) ErrorTrace(errortrace bool) *PutLifecycle {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutLifecycle) FilterPath(filterpaths ...string) *PutLifecycle {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutLifecycle) Human(human bool) *PutLifecycle {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutLifecycle) Pretty(pretty bool) *PutLifecycle {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Config Configuration for each snapshot created by the policy.
// API name: config
func (r *PutLifecycle) Config(config *types.Configuration) *PutLifecycle {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/putlifecycle/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/putlifecycle/request.go
index e4bbea837c..72081a0f73 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/putlifecycle/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/putlifecycle/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putlifecycle
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package putlifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L72
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L72
type Request struct {
// Config Configuration for each snapshot created by the policy.
@@ -56,6 +56,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/putlifecycle/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/putlifecycle/response.go
index d86fd9d90c..d501655461 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/putlifecycle/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/putlifecycle/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putlifecycle
// Response holds the response body struct for the package putlifecycle
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/put_lifecycle/PutSnapshotLifecycleResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/put_lifecycle/PutSnapshotLifecycleResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/start/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/start/response.go
index 75ac748dcc..596aa43d7c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/start/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/start/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package start
// Response holds the response body struct for the package start
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/start/StartSnapshotLifecycleManagementResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/start/StartSnapshotLifecycleManagementResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/start/start.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/start/start.go
index 7114a8c721..3dccb2e70d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/start/start.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/start/start.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Turns on snapshot lifecycle management (SLM).
package start
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r Start) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *Start) Header(key, value string) *Start {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Start) ErrorTrace(errortrace bool) *Start {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Start) FilterPath(filterpaths ...string) *Start {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Start) Human(human bool) *Start {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Start) Pretty(pretty bool) *Start {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/stop/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/stop/response.go
index 09ba6415b2..41a989216c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/stop/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/stop/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stop
// Response holds the response body struct for the package stop
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/stop/StopSnapshotLifecycleManagementResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/stop/StopSnapshotLifecycleManagementResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/stop/stop.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/stop/stop.go
index 1f0ff1734b..278f3f8aba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/stop/stop.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/slm/stop/stop.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Turns off snapshot lifecycle management (SLM).
package stop
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r Stop) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *Stop) Header(key, value string) *Stop {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Stop) ErrorTrace(errortrace bool) *Stop {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Stop) FilterPath(filterpaths ...string) *Stop {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Stop) Human(human bool) *Stop {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Stop) Pretty(pretty bool) *Stop {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/cleanuprepository/cleanup_repository.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/cleanuprepository/cleanup_repository.go
index c264688e29..4a1615789d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/cleanuprepository/cleanup_repository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/cleanuprepository/cleanup_repository.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Removes stale data from repository.
package cleanuprepository
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r CleanupRepository) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -314,3 +314,47 @@ func (r *CleanupRepository) Timeout(duration string) *CleanupRepository {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *CleanupRepository) ErrorTrace(errortrace bool) *CleanupRepository {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *CleanupRepository) FilterPath(filterpaths ...string) *CleanupRepository {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *CleanupRepository) Human(human bool) *CleanupRepository {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *CleanupRepository) Pretty(pretty bool) *CleanupRepository {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/cleanuprepository/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/cleanuprepository/response.go
index d0b6493af9..b837827bd3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/cleanuprepository/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/cleanuprepository/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package cleanuprepository
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package cleanuprepository
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L22-L27
type Response struct {
// Results Statistics for cleanup operations.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/clone/clone.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/clone/clone.go
index 5b78a56aa6..6117c2b12c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/clone/clone.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/clone/clone.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Clones indices from one snapshot into another snapshot in the same
// repository.
@@ -31,6 +31,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -371,6 +372,50 @@ func (r *Clone) Timeout(duration string) *Clone {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Clone) ErrorTrace(errortrace bool) *Clone {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Clone) FilterPath(filterpaths ...string) *Clone {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Clone) Human(human bool) *Clone {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Clone) Pretty(pretty bool) *Clone {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: indices
func (r *Clone) Indices(indices string) *Clone {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/clone/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/clone/request.go
index 96fda7b627..a56f335c65 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/clone/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/clone/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clone
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package clone
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/clone/SnapshotCloneRequest.ts#L24-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/clone/SnapshotCloneRequest.ts#L24-L42
type Request struct {
Indices string `json:"indices"`
}
@@ -35,6 +35,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/clone/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/clone/response.go
index 6a4618b131..7e692ecb62 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/clone/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/clone/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clone
// Response holds the response body struct for the package clone
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/clone/SnapshotCloneResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/clone/SnapshotCloneResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/create/create.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/create/create.go
index 3c93760c8c..6dc66efc8f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/create/create.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/create/create.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a snapshot in a repository.
package create
@@ -351,6 +351,50 @@ func (r *Create) WaitForCompletion(waitforcompletion bool) *Create {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Create) ErrorTrace(errortrace bool) *Create {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Create) FilterPath(filterpaths ...string) *Create {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Create) Human(human bool) *Create {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Create) Pretty(pretty bool) *Create {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// FeatureStates Feature states to include in the snapshot. Each feature state includes one or
// more system indices containing related data. You can view a list of eligible
// features using the get features API. If `include_global_state` is `true`, all
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/create/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/create/request.go
index 379ab207ed..b67df77309 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/create/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/create/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package create
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package create
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/create/SnapshotCreateRequest.ts#L24-L81
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/create/SnapshotCreateRequest.ts#L24-L81
type Request struct {
// FeatureStates Feature states to include in the snapshot. Each feature state includes one or
@@ -69,6 +69,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -104,7 +105,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "ignore_unavailable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -118,7 +119,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "include_global_state":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -153,7 +154,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "partial":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/create/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/create/response.go
index 98f307c913..39f9069dae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/create/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/create/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package create
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package create
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/create/SnapshotCreateResponse.ts#L22-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/create/SnapshotCreateResponse.ts#L22-L35
type Response struct {
// Accepted Equals `true` if the snapshot was accepted. Present when the request had
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/createrepository/create_repository.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/createrepository/create_repository.go
index 7bf63c5375..682de117ce 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/createrepository/create_repository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/createrepository/create_repository.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a repository.
package createrepository
@@ -334,3 +334,47 @@ func (r *CreateRepository) Verify(verify bool) *CreateRepository {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *CreateRepository) ErrorTrace(errortrace bool) *CreateRepository {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *CreateRepository) FilterPath(filterpaths ...string) *CreateRepository {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *CreateRepository) Human(human bool) *CreateRepository {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *CreateRepository) Pretty(pretty bool) *CreateRepository {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/createrepository/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/createrepository/request.go
index 8d6afa15fa..be44ff8183 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/createrepository/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/createrepository/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package createrepository
@@ -26,5 +26,5 @@ import (
// Request holds the request body struct for the package createrepository
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L42
type Request = types.Repository
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/createrepository/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/createrepository/response.go
index 91b06bdc24..555d504a63 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/createrepository/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/createrepository/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package createrepository
// Response holds the response body struct for the package createrepository
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/create_repository/SnapshotCreateRepositoryResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/create_repository/SnapshotCreateRepositoryResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/delete/delete.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/delete/delete.go
index d6532fe8db..e1aee95fb3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/delete/delete.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/delete/delete.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes one or more snapshots.
package delete
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -271,7 +271,7 @@ func (r Delete) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -324,3 +324,47 @@ func (r *Delete) MasterTimeout(duration string) *Delete {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Delete) ErrorTrace(errortrace bool) *Delete {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Delete) FilterPath(filterpaths ...string) *Delete {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Delete) Human(human bool) *Delete {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Delete) Pretty(pretty bool) *Delete {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/delete/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/delete/response.go
index 49e1b54fe3..5d4db798f1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/delete/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/delete/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package delete
// Response holds the response body struct for the package delete
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/delete/SnapshotDeleteResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/delete/SnapshotDeleteResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/deleterepository/delete_repository.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/deleterepository/delete_repository.go
index 8b7de05561..cadbea0bf1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/deleterepository/delete_repository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/deleterepository/delete_repository.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes a repository.
package deleterepository
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -260,7 +260,7 @@ func (r DeleteRepository) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -313,3 +313,47 @@ func (r *DeleteRepository) Timeout(duration string) *DeleteRepository {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteRepository) ErrorTrace(errortrace bool) *DeleteRepository {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteRepository) FilterPath(filterpaths ...string) *DeleteRepository {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteRepository) Human(human bool) *DeleteRepository {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteRepository) Pretty(pretty bool) *DeleteRepository {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/deleterepository/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/deleterepository/response.go
index 1369d277a6..6fe0480bbb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/deleterepository/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/deleterepository/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deleterepository
// Response holds the response body struct for the package deleterepository
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/delete_repository/SnapshotDeleteRepositoryResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/delete_repository/SnapshotDeleteRepositoryResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/get/get.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/get/get.go
index 8b25aa682a..b056b71360 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/get/get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/get/get.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about a snapshot.
package get
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -274,7 +273,7 @@ func (r Get) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -449,3 +448,47 @@ func (r *Get) SlmPolicyFilter(name string) *Get {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Get) ErrorTrace(errortrace bool) *Get {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Get) FilterPath(filterpaths ...string) *Get {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Get) Human(human bool) *Get {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Get) Pretty(pretty bool) *Get {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/get/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/get/response.go
index 1264eafd34..ca7d2f77d7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/get/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/get/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package get
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package get
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/get/SnapshotGetResponse.ts#L25-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/get/SnapshotGetResponse.ts#L25-L42
type Response struct {
// Remaining The number of remaining snapshots that were not returned due to size limits
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/getrepository/get_repository.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/getrepository/get_repository.go
index cc77cfb7d5..2acf569f1b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/getrepository/get_repository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/getrepository/get_repository.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about a repository.
package getrepository
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -264,7 +263,7 @@ func (r GetRepository) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -317,3 +316,47 @@ func (r *GetRepository) MasterTimeout(duration string) *GetRepository {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetRepository) ErrorTrace(errortrace bool) *GetRepository {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetRepository) FilterPath(filterpaths ...string) *GetRepository {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetRepository) Human(human bool) *GetRepository {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetRepository) Pretty(pretty bool) *GetRepository {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/getrepository/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/getrepository/response.go
index 6721a6d020..3c81682584 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/getrepository/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/getrepository/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getrepository
@@ -32,7 +32,7 @@ import (
// Response holds the response body struct for the package getrepository
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/get_repository/SnapshotGetRepositoryResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/get_repository/SnapshotGetRepositoryResponse.ts#L23-L25
type Response map[string]types.Repository
@@ -45,7 +45,7 @@ func NewResponse() Response {
func (r Response) UnmarshalJSON(data []byte) error {
dec := json.NewDecoder(bytes.NewReader(data))
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
dec.Decode(&o)
dec = json.NewDecoder(bytes.NewReader(data))
for {
@@ -59,7 +59,7 @@ func (r Response) UnmarshalJSON(data []byte) error {
key := fmt.Sprintf("%s", t)
if target, ok := o[key]; ok {
- if t, ok := target.(map[string]interface{})["type"]; ok {
+ if t, ok := target.(map[string]any)["type"]; ok {
switch t {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/request.go
index c418a33597..c2dd250b04 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package restore
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package restore
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/restore/SnapshotRestoreRequest.ts#L25-L51
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/restore/SnapshotRestoreRequest.ts#L25-L51
type Request struct {
FeatureStates []string `json:"feature_states,omitempty"`
IgnoreIndexSettings []string `json:"ignore_index_settings,omitempty"`
@@ -50,6 +50,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -90,7 +91,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "ignore_unavailable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +105,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "include_aliases":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -118,7 +119,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "include_global_state":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -153,7 +154,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "partial":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/response.go
index a718f11964..8dbc7ffe3d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package restore
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package restore
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/restore/SnapshotRestoreResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/restore/SnapshotRestoreResponse.ts#L23-L25
type Response struct {
Snapshot types.SnapshotRestore `json:"snapshot"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/restore.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/restore.go
index 12c6b7d9d4..2fa2541838 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/restore.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore/restore.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Restores a snapshot.
package restore
@@ -351,6 +351,50 @@ func (r *Restore) WaitForCompletion(waitforcompletion bool) *Restore {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Restore) ErrorTrace(errortrace bool) *Restore {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Restore) FilterPath(filterpaths ...string) *Restore {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Restore) Human(human bool) *Restore {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Restore) Pretty(pretty bool) *Restore {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: feature_states
func (r *Restore) FeatureStates(featurestates ...string) *Restore {
r.req.FeatureStates = featurestates
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/status/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/status/response.go
index 3a90cee515..1929c24a52 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/status/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/status/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package status
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package status
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/status/SnapshotStatusResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/status/SnapshotStatusResponse.ts#L22-L24
type Response struct {
Snapshots []types.Status `json:"snapshots"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/status/status.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/status/status.go
index cae11ad0b3..1d46fa3c10 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/status/status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/status/status.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about the status of a snapshot.
package status
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -290,7 +289,7 @@ func (r Status) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -352,3 +351,47 @@ func (r *Status) MasterTimeout(duration string) *Status {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Status) ErrorTrace(errortrace bool) *Status {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Status) FilterPath(filterpaths ...string) *Status {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Status) Human(human bool) *Status {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Status) Pretty(pretty bool) *Status {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/verifyrepository/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/verifyrepository/response.go
index 2baa8d7433..bfcfab7dc3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/verifyrepository/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/verifyrepository/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package verifyrepository
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package verifyrepository
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L23-L25
type Response struct {
Nodes map[string]types.CompactNodeInfo `json:"nodes"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/verifyrepository/verify_repository.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/verifyrepository/verify_repository.go
index 0f954cd3cd..093d9c8a3e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/verifyrepository/verify_repository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/verifyrepository/verify_repository.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Verifies a repository.
package verifyrepository
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r VerifyRepository) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -314,3 +314,47 @@ func (r *VerifyRepository) Timeout(duration string) *VerifyRepository {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *VerifyRepository) ErrorTrace(errortrace bool) *VerifyRepository {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *VerifyRepository) FilterPath(filterpaths ...string) *VerifyRepository {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *VerifyRepository) Human(human bool) *VerifyRepository {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *VerifyRepository) Pretty(pretty bool) *VerifyRepository {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/clearcursor/clear_cursor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/clearcursor/clear_cursor.go
index fbbb83d163..f54257409a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/clearcursor/clear_cursor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/clearcursor/clear_cursor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Clears the SQL cursor
package clearcursor
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -291,6 +292,50 @@ func (r *ClearCursor) Header(key, value string) *ClearCursor {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ClearCursor) ErrorTrace(errortrace bool) *ClearCursor {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ClearCursor) FilterPath(filterpaths ...string) *ClearCursor {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ClearCursor) Human(human bool) *ClearCursor {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ClearCursor) Pretty(pretty bool) *ClearCursor {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Cursor Cursor to clear.
// API name: cursor
func (r *ClearCursor) Cursor(cursor string) *ClearCursor {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/clearcursor/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/clearcursor/request.go
index 86ecc84ecf..cba688b8d9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/clearcursor/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/clearcursor/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clearcursor
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package clearcursor
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L34
type Request struct {
// Cursor Cursor to clear.
@@ -37,6 +37,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/clearcursor/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/clearcursor/response.go
index 0486342f00..7f0db7caa0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/clearcursor/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/clearcursor/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package clearcursor
// Response holds the response body struct for the package clearcursor
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/sql/clear_cursor/ClearSqlCursorResponse.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/clear_cursor/ClearSqlCursorResponse.ts#L20-L22
type Response struct {
Succeeded bool `json:"succeeded"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/deleteasync/delete_async.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/deleteasync/delete_async.go
index 503759570d..987a03abd6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/deleteasync/delete_async.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/deleteasync/delete_async.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an async SQL search or a stored synchronous SQL search. If the search
// is still running, the API cancels it.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -266,7 +266,7 @@ func (r DeleteAsync) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -302,3 +302,47 @@ func (r *DeleteAsync) _id(id string) *DeleteAsync {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteAsync) ErrorTrace(errortrace bool) *DeleteAsync {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteAsync) FilterPath(filterpaths ...string) *DeleteAsync {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteAsync) Human(human bool) *DeleteAsync {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteAsync) Pretty(pretty bool) *DeleteAsync {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/deleteasync/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/deleteasync/response.go
index 82109ec7a3..91d3e563b3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/deleteasync/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/deleteasync/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deleteasync
// Response holds the response body struct for the package deleteasync
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/sql/delete_async/SqlDeleteAsyncResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/delete_async/SqlDeleteAsyncResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasync/get_async.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasync/get_async.go
index b60c5fbc20..640e59d737 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasync/get_async.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasync/get_async.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the current status and available results for an async SQL search or
// stored synchronous SQL search
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r GetAsync) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -337,3 +337,47 @@ func (r *GetAsync) WaitForCompletionTimeout(duration string) *GetAsync {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetAsync) ErrorTrace(errortrace bool) *GetAsync {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetAsync) FilterPath(filterpaths ...string) *GetAsync {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetAsync) Human(human bool) *GetAsync {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetAsync) Pretty(pretty bool) *GetAsync {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasync/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasync/response.go
index fe9d663d11..ebf3bc531d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasync/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasync/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getasync
@@ -28,7 +28,7 @@ import (
// Response holds the response body struct for the package getasync
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/sql/get_async/SqlGetAsyncResponse.ts#L23-L60
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/get_async/SqlGetAsyncResponse.ts#L23-L60
type Response struct {
// Columns Column headings for the search results. Each object is a column.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasyncstatus/get_async_status.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasyncstatus/get_async_status.go
index 82e2ddf4ba..8d18f8de84 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasyncstatus/get_async_status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasyncstatus/get_async_status.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns the current status of an async SQL search or a stored synchronous SQL
// search
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -266,7 +266,7 @@ func (r GetAsyncStatus) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -302,3 +302,47 @@ func (r *GetAsyncStatus) _id(id string) *GetAsyncStatus {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetAsyncStatus) ErrorTrace(errortrace bool) *GetAsyncStatus {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetAsyncStatus) FilterPath(filterpaths ...string) *GetAsyncStatus {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetAsyncStatus) Human(human bool) *GetAsyncStatus {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetAsyncStatus) Pretty(pretty bool) *GetAsyncStatus {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasyncstatus/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasyncstatus/response.go
index 3ff042343d..1a2ded33b2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasyncstatus/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasyncstatus/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getasyncstatus
// Response holds the response body struct for the package getasyncstatus
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/sql/get_async_status/SqlGetAsyncStatusResponse.ts#L23-L55
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/get_async_status/SqlGetAsyncStatusResponse.ts#L23-L55
type Response struct {
// CompletionStatus HTTP status code for the search. The API only returns this property for
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/query/query.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/query/query.go
index 9f946c0825..1bd5fa0fe8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/query/query.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/query/query.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Executes a SQL request
package query
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -297,6 +298,50 @@ func (r *Query) Format(format string) *Query {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Query) ErrorTrace(errortrace bool) *Query {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Query) FilterPath(filterpaths ...string) *Query {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Query) Human(human bool) *Query {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Query) Pretty(pretty bool) *Query {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Catalog Default catalog (cluster) for queries. If unspecified, the queries execute on
// the data in the local cluster only.
// API name: catalog
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/query/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/query/request.go
index f8197a141b..a41181f6f7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/query/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/query/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package query
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package query
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/sql/query/QuerySqlRequest.ts#L28-L122
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/query/QuerySqlRequest.ts#L28-L122
type Request struct {
// Catalog Default catalog (cluster) for queries. If unspecified, the queries execute on
@@ -87,6 +87,7 @@ func NewRequest() *Request {
r := &Request{
Params: make(map[string]json.RawMessage, 0),
}
+
return r
}
@@ -129,7 +130,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
s.Catalog = &o
case "columnar":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -156,7 +157,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "fetch_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -171,7 +172,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "field_multi_value_leniency":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -190,7 +191,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "index_using_frozen":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -209,7 +210,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
}
case "keep_on_completion":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/query/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/query/response.go
index b510f94d86..4664f4157c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/query/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/query/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package query
@@ -28,7 +28,7 @@ import (
// Response holds the response body struct for the package query
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/sql/query/QuerySqlResponse.ts#L23-L60
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/query/QuerySqlResponse.ts#L23-L60
type Response struct {
// Columns Column headings for the search results. Each object is a column.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/translate/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/translate/request.go
index d4a81201d9..f63a413889 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/translate/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/translate/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package translate
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package translate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/sql/translate/TranslateSqlRequest.ts#L25-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/translate/TranslateSqlRequest.ts#L25-L54
type Request struct {
// FetchSize The maximum number of rows (or entries) to return in one response.
@@ -49,6 +49,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -80,7 +81,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "fetch_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/translate/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/translate/response.go
index 1470414e14..374449efe2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/translate/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/translate/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package translate
@@ -33,7 +33,7 @@ import (
// Response holds the response body struct for the package translate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/sql/translate/TranslateSqlResponse.ts#L28-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/translate/TranslateSqlResponse.ts#L28-L38
type Response struct {
Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"`
Fields []types.FieldAndFormat `json:"fields,omitempty"`
@@ -84,7 +84,7 @@ func (s *Response) UnmarshalJSON(data []byte) error {
}
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/translate/translate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/translate/translate.go
index 8c4456722e..cbf6fd17fe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/translate/translate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/sql/translate/translate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Translates SQL into Elasticsearch queries
package translate
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -291,6 +292,50 @@ func (r *Translate) Header(key, value string) *Translate {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Translate) ErrorTrace(errortrace bool) *Translate {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Translate) FilterPath(filterpaths ...string) *Translate {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Translate) Human(human bool) *Translate {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Translate) Pretty(pretty bool) *Translate {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// FetchSize The maximum number of rows (or entries) to return in one response.
// API name: fetch_size
func (r *Translate) FetchSize(fetchsize int) *Translate {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ssl/certificates/certificates.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ssl/certificates/certificates.go
index 16b851c006..c52a96d019 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ssl/certificates/certificates.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ssl/certificates/certificates.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information about the X.509 certificates used to encrypt
// communications in the cluster.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -250,7 +250,7 @@ func (r Certificates) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -277,3 +277,47 @@ func (r *Certificates) Header(key, value string) *Certificates {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Certificates) ErrorTrace(errortrace bool) *Certificates {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Certificates) FilterPath(filterpaths ...string) *Certificates {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Certificates) Human(human bool) *Certificates {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Certificates) Pretty(pretty bool) *Certificates {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ssl/certificates/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ssl/certificates/response.go
index 838f940f4f..1d18b77fd4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ssl/certificates/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/ssl/certificates/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package certificates
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package certificates
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ssl/certificates/GetCertificatesResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ssl/certificates/GetCertificatesResponse.ts#L22-L24
type Response []types.CertificateInformation
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonym/delete_synonym.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonym/delete_synonym.go
index faab966fda..8b08f6a80e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonym/delete_synonym.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonym/delete_synonym.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes a synonym set
package deletesynonym
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -260,7 +260,7 @@ func (r DeleteSynonym) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -296,3 +296,47 @@ func (r *DeleteSynonym) _id(id string) *DeleteSynonym {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteSynonym) ErrorTrace(errortrace bool) *DeleteSynonym {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteSynonym) FilterPath(filterpaths ...string) *DeleteSynonym {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteSynonym) Human(human bool) *DeleteSynonym {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteSynonym) Pretty(pretty bool) *DeleteSynonym {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonym/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonym/response.go
index 8f3ab3edb0..002d200bde 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonym/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonym/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletesynonym
// Response holds the response body struct for the package deletesynonym
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/synonyms/delete_synonym/SynonymsDeleteResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/delete_synonym/SynonymsDeleteResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonymrule/delete_synonym_rule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonymrule/delete_synonym_rule.go
index 6100752f8e..456a67e208 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonymrule/delete_synonym_rule.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonymrule/delete_synonym_rule.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes a synonym rule in a synonym set
package deletesynonymrule
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -277,7 +277,7 @@ func (r DeleteSynonymRule) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -322,3 +322,47 @@ func (r *DeleteSynonymRule) _ruleid(ruleid string) *DeleteSynonymRule {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteSynonymRule) ErrorTrace(errortrace bool) *DeleteSynonymRule {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteSynonymRule) FilterPath(filterpaths ...string) *DeleteSynonymRule {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteSynonymRule) Human(human bool) *DeleteSynonymRule {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteSynonymRule) Pretty(pretty bool) *DeleteSynonymRule {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonymrule/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonymrule/response.go
index 45bffa0da4..cf331f7d0e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonymrule/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonymrule/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletesynonymrule
@@ -27,7 +27,7 @@ import (
// Response holds the response body struct for the package deletesynonymrule
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteResponse.ts#L22-L24
type Response struct {
// ReloadAnalyzersDetails Updating synonyms in a synonym set reloads the associated analyzers.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonym/get_synonym.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonym/get_synonym.go
index a510358f8e..141d79333d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonym/get_synonym.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonym/get_synonym.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves a synonym set
package getsynonym
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -261,7 +260,7 @@ func (r GetSynonym) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -313,3 +312,47 @@ func (r *GetSynonym) Size(size int) *GetSynonym {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetSynonym) ErrorTrace(errortrace bool) *GetSynonym {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetSynonym) FilterPath(filterpaths ...string) *GetSynonym {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetSynonym) Human(human bool) *GetSynonym {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetSynonym) Pretty(pretty bool) *GetSynonym {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonym/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonym/response.go
index e3e0f69324..2393285404 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonym/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonym/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getsynonym
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getsynonym
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/synonyms/get_synonym/SynonymsGetResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/get_synonym/SynonymsGetResponse.ts#L23-L28
type Response struct {
Count int `json:"count"`
SynonymsSet []types.SynonymRuleRead `json:"synonyms_set"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymrule/get_synonym_rule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymrule/get_synonym_rule.go
index b2d85a3667..f0ff94b5ac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymrule/get_synonym_rule.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymrule/get_synonym_rule.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves a synonym rule from a synonym set
package getsynonymrule
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -277,7 +277,7 @@ func (r GetSynonymRule) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -322,3 +322,47 @@ func (r *GetSynonymRule) _ruleid(ruleid string) *GetSynonymRule {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetSynonymRule) ErrorTrace(errortrace bool) *GetSynonymRule {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetSynonymRule) FilterPath(filterpaths ...string) *GetSynonymRule {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetSynonymRule) Human(human bool) *GetSynonymRule {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetSynonymRule) Pretty(pretty bool) *GetSynonymRule {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymrule/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymrule/response.go
index 4ed13c08d8..a52c4576b3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymrule/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymrule/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getsynonymrule
// Response holds the response body struct for the package getsynonymrule
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/synonyms/get_synonym_rule/SynonymRuleGetResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/get_synonym_rule/SynonymRuleGetResponse.ts#L22-L24
type Response struct {
// Id Synonym Rule identifier
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymssets/get_synonyms_sets.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymssets/get_synonyms_sets.go
index 9e616a85de..f7eed88cb3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymssets/get_synonyms_sets.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymssets/get_synonyms_sets.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves a summary of all defined synonym sets
package getsynonymssets
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -247,7 +246,7 @@ func (r GetSynonymsSets) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -290,3 +289,47 @@ func (r *GetSynonymsSets) Size(size int) *GetSynonymsSets {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetSynonymsSets) ErrorTrace(errortrace bool) *GetSynonymsSets {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetSynonymsSets) FilterPath(filterpaths ...string) *GetSynonymsSets {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetSynonymsSets) Human(human bool) *GetSynonymsSets {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetSynonymsSets) Pretty(pretty bool) *GetSynonymsSets {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymssets/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymssets/response.go
index 29ddc52692..bdecb4834b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymssets/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymssets/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getsynonymssets
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getsynonymssets
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L23-L28
type Response struct {
Count int `json:"count"`
Results []types.SynonymsSetItem `json:"results"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym/put_synonym.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym/put_synonym.go
index 989b717e1a..b47e36f1ff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym/put_synonym.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym/put_synonym.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates or updates a synonyms set
package putsynonym
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -312,6 +313,50 @@ func (r *PutSynonym) _id(id string) *PutSynonym {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutSynonym) ErrorTrace(errortrace bool) *PutSynonym {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutSynonym) FilterPath(filterpaths ...string) *PutSynonym {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutSynonym) Human(human bool) *PutSynonym {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutSynonym) Pretty(pretty bool) *PutSynonym {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// SynonymsSet The synonym set information to update
// API name: synonyms_set
func (r *PutSynonym) SynonymsSet(synonymssets ...types.SynonymRule) *PutSynonym {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym/request.go
index 8a19b11cf8..02363995e5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putsynonym
@@ -29,7 +29,7 @@ import (
// Request holds the request body struct for the package putsynonym
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/synonyms/put_synonym/SynonymsPutRequest.ts#L23-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/put_synonym/SynonymsPutRequest.ts#L23-L42
type Request struct {
// SynonymsSet The synonym set information to update
@@ -39,6 +39,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym/response.go
index 46693afdbc..5b0f4fc740 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putsynonym
@@ -27,10 +27,10 @@ import (
// Response holds the response body struct for the package putsynonym
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/synonyms/put_synonym/SynonymsPutResponse.ts#L24-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/put_synonym/SynonymsPutResponse.ts#L23-L28
type Response struct {
- ReloadAnalyzersDetails types.ReloadDetails `json:"reload_analyzers_details"`
- Result result.Result `json:"result"`
+ ReloadAnalyzersDetails types.ReloadResult `json:"reload_analyzers_details"`
+ Result result.Result `json:"result"`
}
// NewResponse returns a Response
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonymrule/put_synonym_rule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonymrule/put_synonym_rule.go
index 44509cf2d5..bbe2fe89a3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonymrule/put_synonym_rule.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonymrule/put_synonym_rule.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates or updates a synonym rule in a synonym set
package putsynonymrule
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -332,6 +333,50 @@ func (r *PutSynonymRule) _ruleid(ruleid string) *PutSynonymRule {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutSynonymRule) ErrorTrace(errortrace bool) *PutSynonymRule {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutSynonymRule) FilterPath(filterpaths ...string) *PutSynonymRule {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutSynonymRule) Human(human bool) *PutSynonymRule {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutSynonymRule) Pretty(pretty bool) *PutSynonymRule {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: synonyms
func (r *PutSynonymRule) Synonyms(synonymstring string) *PutSynonymRule {
r.req.Synonyms = synonymstring
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonymrule/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonymrule/request.go
index a431134e90..c9532f8fa4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonymrule/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonymrule/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putsynonymrule
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package putsynonymrule
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L47
type Request struct {
Synonyms string `json:"synonyms"`
}
@@ -35,6 +35,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonymrule/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonymrule/response.go
index b026128921..e325bf4fb2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonymrule/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonymrule/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putsynonymrule
@@ -27,7 +27,7 @@ import (
// Response holds the response body struct for the package putsynonymrule
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/synonyms/put_synonym_rule/SynonymRulePutResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/put_synonym_rule/SynonymRulePutResponse.ts#L22-L24
type Response struct {
// ReloadAnalyzersDetails Updating synonyms in a synonym set reloads the associated analyzers.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/cancel/cancel.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/cancel/cancel.go
index bcfe26dc46..649863d6b5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/cancel/cancel.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/cancel/cancel.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Cancels a task, if it can be cancelled through an API.
package cancel
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -268,7 +267,7 @@ func (r Cancel) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -346,3 +345,47 @@ func (r *Cancel) WaitForCompletion(waitforcompletion bool) *Cancel {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Cancel) ErrorTrace(errortrace bool) *Cancel {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Cancel) FilterPath(filterpaths ...string) *Cancel {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Cancel) Human(human bool) *Cancel {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Cancel) Pretty(pretty bool) *Cancel {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/cancel/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/cancel/response.go
index c7f3259962..7110c7ea21 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/cancel/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/cancel/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package cancel
@@ -32,7 +32,7 @@ import (
// Response holds the response body struct for the package cancel
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/tasks/cancel/CancelTasksResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/cancel/CancelTasksResponse.ts#L22-L24
type Response struct {
NodeFailures []types.ErrorCause `json:"node_failures,omitempty"`
// Nodes Task information grouped by node, if `group_by` was set to `node` (the
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/get/get.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/get/get.go
index 24faf8204b..1adf403367 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/get/get.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/get/get.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns information about a task.
package get
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -261,7 +260,7 @@ func (r Get) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -315,3 +314,47 @@ func (r *Get) WaitForCompletion(waitforcompletion bool) *Get {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Get) ErrorTrace(errortrace bool) *Get {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Get) FilterPath(filterpaths ...string) *Get {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Get) Human(human bool) *Get {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Get) Pretty(pretty bool) *Get {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/get/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/get/response.go
index a0a34ee802..8c8ac20cfc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/get/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/get/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package get
@@ -28,7 +28,7 @@ import (
// Response holds the response body struct for the package get
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/tasks/get/GetTaskResponse.ts#L24-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/get/GetTaskResponse.ts#L24-L31
type Response struct {
Completed bool `json:"completed"`
Error *types.ErrorCause `json:"error,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/list/list.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/list/list.go
index 1bf4cc8c42..6a66e04d39 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/list/list.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/list/list.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Returns a list of tasks.
package list
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -248,7 +247,7 @@ func (r List) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -351,3 +350,47 @@ func (r *List) WaitForCompletion(waitforcompletion bool) *List {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *List) ErrorTrace(errortrace bool) *List {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *List) FilterPath(filterpaths ...string) *List {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *List) Human(human bool) *List {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *List) Pretty(pretty bool) *List {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/list/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/list/response.go
index ba52e5a3a6..e82b81a62a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/list/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/tasks/list/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package list
@@ -32,7 +32,7 @@ import (
// Response holds the response body struct for the package list
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/tasks/list/ListTasksResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/list/ListTasksResponse.ts#L22-L24
type Response struct {
NodeFailures []types.ErrorCause `json:"node_failures,omitempty"`
// Nodes Task information grouped by node, if `group_by` was set to `node` (the
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure/find_structure.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure/find_structure.go
index 8b99d683d7..1a1d4a9d8b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure/find_structure.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure/find_structure.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Finds the structure of a text file. The text file must contain data that is
// suitable to be ingested into Elasticsearch.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure/request.go
index 9893ce0ce7..46a2b3b5bb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package findstructure
@@ -26,7 +26,7 @@ import (
// Request holds the request body struct for the package findstructure
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/text_structure/find_structure/FindStructureRequest.ts#L24-L75
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/find_structure/FindStructureRequest.ts#L24-L75
type Request = []json.RawMessage
// NewRequest returns a Request
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure/response.go
index 4a860209e8..9217918461 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package findstructure
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package findstructure
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/text_structure/find_structure/FindStructureResponse.ts#L27-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/find_structure/FindStructureResponse.ts#L27-L52
type Response struct {
Charset string `json:"charset"`
ColumnNames []string `json:"column_names,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern/request.go
index 09536f70cc..c7ab23bc6e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package testgrokpattern
@@ -27,7 +27,7 @@ import (
// Request holds the request body struct for the package testgrokpattern
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L22-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L22-L43
type Request struct {
// GrokPattern Grok pattern to run on the text.
@@ -39,6 +39,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern/response.go
index 120a6bc879..fea13f2ca9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package testgrokpattern
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package testgrokpattern
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/text_structure/test_grok_pattern/TestGrokPatternResponse.ts#L22-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/test_grok_pattern/TestGrokPatternResponse.ts#L22-L26
type Response struct {
Matches []types.MatchedText `json:"matches"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern/test_grok_pattern.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern/test_grok_pattern.go
index 6d21d71156..2220eacb16 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern/test_grok_pattern.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern/test_grok_pattern.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Tests a Grok pattern on some text.
package testgrokpattern
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -300,6 +301,50 @@ func (r *TestGrokPattern) EcsCompatibility(ecscompatibility string) *TestGrokPat
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *TestGrokPattern) ErrorTrace(errortrace bool) *TestGrokPattern {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *TestGrokPattern) FilterPath(filterpaths ...string) *TestGrokPattern {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *TestGrokPattern) Human(human bool) *TestGrokPattern {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *TestGrokPattern) Pretty(pretty bool) *TestGrokPattern {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// GrokPattern Grok pattern to run on the text.
// API name: grok_pattern
func (r *TestGrokPattern) GrokPattern(grokpattern string) *TestGrokPattern {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/deletetransform/delete_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/deletetransform/delete_transform.go
index 2ab5e6abf6..59033fa43e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/deletetransform/delete_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/deletetransform/delete_transform.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deletes an existing transform.
package deletetransform
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -261,7 +260,7 @@ func (r DeleteTransform) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -326,3 +325,47 @@ func (r *DeleteTransform) Timeout(duration string) *DeleteTransform {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteTransform) ErrorTrace(errortrace bool) *DeleteTransform {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteTransform) FilterPath(filterpaths ...string) *DeleteTransform {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteTransform) Human(human bool) *DeleteTransform {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteTransform) Pretty(pretty bool) *DeleteTransform {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/deletetransform/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/deletetransform/response.go
index 22bd3007c0..5932011e37 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/deletetransform/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/deletetransform/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletetransform
// Response holds the response body struct for the package deletetransform
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/delete_transform/DeleteTransformResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/delete_transform/DeleteTransformResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransform/get_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransform/get_transform.go
index 3cacae3ffc..0fe3f1f57d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransform/get_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransform/get_transform.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves configuration information for transforms.
package gettransform
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -264,7 +263,7 @@ func (r GetTransform) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -344,3 +343,47 @@ func (r *GetTransform) ExcludeGenerated(excludegenerated bool) *GetTransform {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetTransform) ErrorTrace(errortrace bool) *GetTransform {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetTransform) FilterPath(filterpaths ...string) *GetTransform {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetTransform) Human(human bool) *GetTransform {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetTransform) Pretty(pretty bool) *GetTransform {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransform/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransform/response.go
index ddd7e45408..20f16dcb51 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransform/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransform/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package gettransform
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package gettransform
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/get_transform/GetTransformResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform/GetTransformResponse.ts#L23-L25
type Response struct {
Count int64 `json:"count"`
Transforms []types.TransformSummary `json:"transforms"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransformstats/get_transform_stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransformstats/get_transform_stats.go
index 71136deefc..9452c3a0db 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransformstats/get_transform_stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransformstats/get_transform_stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves usage information for transforms.
package gettransformstats
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -263,7 +262,7 @@ func (r GetTransformStats) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -341,3 +340,47 @@ func (r *GetTransformStats) Timeout(duration string) *GetTransformStats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetTransformStats) ErrorTrace(errortrace bool) *GetTransformStats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetTransformStats) FilterPath(filterpaths ...string) *GetTransformStats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetTransformStats) Human(human bool) *GetTransformStats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetTransformStats) Pretty(pretty bool) *GetTransformStats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransformstats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransformstats/response.go
index d570f7bb0b..5a1c96c623 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransformstats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransformstats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package gettransformstats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package gettransformstats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/get_transform_stats/GetTransformStatsResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform_stats/GetTransformStatsResponse.ts#L23-L25
type Response struct {
Count int64 `json:"count"`
Transforms []types.TransformStats `json:"transforms"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform/preview_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform/preview_transform.go
index 778fa002ef..ee6977e9fc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform/preview_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform/preview_transform.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Previews a transform.
package previewtransform
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -330,6 +331,50 @@ func (r *PreviewTransform) Timeout(duration string) *PreviewTransform {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PreviewTransform) ErrorTrace(errortrace bool) *PreviewTransform {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PreviewTransform) FilterPath(filterpaths ...string) *PreviewTransform {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PreviewTransform) Human(human bool) *PreviewTransform {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PreviewTransform) Pretty(pretty bool) *PreviewTransform {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Description Free text description of the transform.
// API name: description
func (r *PreviewTransform) Description(description string) *PreviewTransform {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform/request.go
index 770e16147a..3bd24effa7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package previewtransform
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package previewtransform
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/preview_transform/PreviewTransformRequest.ts#L33-L107
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/preview_transform/PreviewTransformRequest.ts#L33-L107
type Request struct {
// Description Free text description of the transform.
@@ -66,6 +66,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform/response.go
index e9b8d17f0a..35954f3bba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package previewtransform
@@ -28,7 +28,7 @@ import (
// Response holds the response body struct for the package previewtransform
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/preview_transform/PreviewTransformResponse.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/preview_transform/PreviewTransformResponse.ts#L22-L27
type Response struct {
GeneratedDestIndex types.IndexState `json:"generated_dest_index"`
Preview []json.RawMessage `json:"preview"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform/put_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform/put_transform.go
index 1e44a151d8..90f279df22 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform/put_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform/put_transform.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Instantiates a transform.
package puttransform
@@ -341,6 +341,50 @@ func (r *PutTransform) Timeout(duration string) *PutTransform {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutTransform) ErrorTrace(errortrace bool) *PutTransform {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutTransform) FilterPath(filterpaths ...string) *PutTransform {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutTransform) Human(human bool) *PutTransform {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutTransform) Pretty(pretty bool) *PutTransform {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Description Free text description of the transform.
// API name: description
func (r *PutTransform) Description(description string) *PutTransform {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform/request.go
index 255826a9eb..4e76b56127 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package puttransform
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package puttransform
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/put_transform/PutTransformRequest.ts#L33-L122
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/put_transform/PutTransformRequest.ts#L33-L122
type Request struct {
// Description Free text description of the transform.
@@ -70,6 +70,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform/response.go
index 0145016786..9199508d36 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package puttransform
// Response holds the response body struct for the package puttransform
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/put_transform/PutTransformResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/put_transform/PutTransformResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/resettransform/reset_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/resettransform/reset_transform.go
index f7474f9610..29c03256d8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/resettransform/reset_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/resettransform/reset_transform.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Resets an existing transform.
package resettransform
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -263,7 +262,7 @@ func (r ResetTransform) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -312,3 +311,47 @@ func (r *ResetTransform) Force(force bool) *ResetTransform {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ResetTransform) ErrorTrace(errortrace bool) *ResetTransform {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ResetTransform) FilterPath(filterpaths ...string) *ResetTransform {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ResetTransform) Human(human bool) *ResetTransform {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ResetTransform) Pretty(pretty bool) *ResetTransform {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/resettransform/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/resettransform/response.go
index e2e834c238..561f3d537a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/resettransform/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/resettransform/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package resettransform
// Response holds the response body struct for the package resettransform
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/reset_transform/ResetTransformResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/reset_transform/ResetTransformResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/schedulenowtransform/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/schedulenowtransform/response.go
index 766cdba5ac..0cbbb4a709 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/schedulenowtransform/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/schedulenowtransform/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package schedulenowtransform
// Response holds the response body struct for the package schedulenowtransform
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/schedule_now_transform/ScheduleNowTransformResponse.ts#L21-L23
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/schedule_now_transform/ScheduleNowTransformResponse.ts#L21-L23
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/schedulenowtransform/schedule_now_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/schedulenowtransform/schedule_now_transform.go
index 1163ef16ac..377b8dff67 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/schedulenowtransform/schedule_now_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/schedulenowtransform/schedule_now_transform.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Schedules now a transform.
package schedulenowtransform
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -268,7 +268,7 @@ func (r ScheduleNowTransform) IsSuccess(providedCtx context.Context) (bool, erro
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -312,3 +312,47 @@ func (r *ScheduleNowTransform) Timeout(duration string) *ScheduleNowTransform {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ScheduleNowTransform) ErrorTrace(errortrace bool) *ScheduleNowTransform {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ScheduleNowTransform) FilterPath(filterpaths ...string) *ScheduleNowTransform {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ScheduleNowTransform) Human(human bool) *ScheduleNowTransform {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ScheduleNowTransform) Pretty(pretty bool) *ScheduleNowTransform {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/starttransform/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/starttransform/response.go
index 838f8eb695..12080927c2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/starttransform/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/starttransform/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package starttransform
// Response holds the response body struct for the package starttransform
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/start_transform/StartTransformResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/start_transform/StartTransformResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/starttransform/start_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/starttransform/start_transform.go
index e326dc942a..90a9238ce3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/starttransform/start_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/starttransform/start_transform.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Starts one or more transforms.
package starttransform
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r StartTransform) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -317,3 +317,47 @@ func (r *StartTransform) From(from string) *StartTransform {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *StartTransform) ErrorTrace(errortrace bool) *StartTransform {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *StartTransform) FilterPath(filterpaths ...string) *StartTransform {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *StartTransform) Human(human bool) *StartTransform {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *StartTransform) Pretty(pretty bool) *StartTransform {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/stoptransform/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/stoptransform/response.go
index e4b220fa41..7b2cf528df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/stoptransform/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/stoptransform/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stoptransform
// Response holds the response body struct for the package stoptransform
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/stop_transform/StopTransformResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/stop_transform/StopTransformResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/stoptransform/stop_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/stoptransform/stop_transform.go
index 974c9967ba..f84e467dc7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/stoptransform/stop_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/stoptransform/stop_transform.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Stops one or more transforms.
package stoptransform
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -263,7 +262,7 @@ func (r StopTransform) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -360,3 +359,47 @@ func (r *StopTransform) WaitForCompletion(waitforcompletion bool) *StopTransform
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *StopTransform) ErrorTrace(errortrace bool) *StopTransform {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *StopTransform) FilterPath(filterpaths ...string) *StopTransform {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *StopTransform) Human(human bool) *StopTransform {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *StopTransform) Pretty(pretty bool) *StopTransform {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/updatetransform/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/updatetransform/request.go
index c58d6ad7c1..d89b126513 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/updatetransform/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/updatetransform/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatetransform
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package updatetransform
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/update_transform/UpdateTransformRequest.ts#L31-L105
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/update_transform/UpdateTransformRequest.ts#L31-L105
type Request struct {
// Description Free text description of the transform.
@@ -61,6 +61,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/updatetransform/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/updatetransform/response.go
index 92840490cb..ff26598900 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/updatetransform/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/updatetransform/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package updatetransform
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package updatetransform
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/update_transform/UpdateTransformResponse.ts#L33-L51
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/update_transform/UpdateTransformResponse.ts#L33-L51
type Response struct {
Authorization *types.TransformAuthorization `json:"authorization,omitempty"`
CreateTime int64 `json:"create_time"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/updatetransform/update_transform.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/updatetransform/update_transform.go
index b82d4f425b..9ec23bf160 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/updatetransform/update_transform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/updatetransform/update_transform.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Updates certain properties of a transform.
package updatetransform
@@ -334,6 +334,50 @@ func (r *UpdateTransform) Timeout(duration string) *UpdateTransform {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *UpdateTransform) ErrorTrace(errortrace bool) *UpdateTransform {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *UpdateTransform) FilterPath(filterpaths ...string) *UpdateTransform {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *UpdateTransform) Human(human bool) *UpdateTransform {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *UpdateTransform) Pretty(pretty bool) *UpdateTransform {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// Description Free text description of the transform.
// API name: description
func (r *UpdateTransform) Description(description string) *UpdateTransform {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/upgradetransforms/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/upgradetransforms/response.go
index 960a7d4f81..8e7c3fed72 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/upgradetransforms/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/upgradetransforms/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package upgradetransforms
// Response holds the response body struct for the package upgradetransforms
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/upgrade_transforms/UpgradeTransformsResponse.ts#L25-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/upgrade_transforms/UpgradeTransformsResponse.ts#L25-L34
type Response struct {
// NeedsUpdate The number of transforms that need to be upgraded.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/upgradetransforms/upgrade_transforms.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/upgradetransforms/upgrade_transforms.go
index 47f891b24f..089aeded5d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/upgradetransforms/upgrade_transforms.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/transform/upgradetransforms/upgrade_transforms.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Upgrades all transforms.
package upgradetransforms
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -255,7 +254,7 @@ func (r UpgradeTransforms) IsSuccess(providedCtx context.Context) (bool, error)
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -300,3 +299,47 @@ func (r *UpgradeTransforms) Timeout(duration string) *UpgradeTransforms {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *UpgradeTransforms) ErrorTrace(errortrace bool) *UpgradeTransforms {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *UpgradeTransforms) FilterPath(filterpaths ...string) *UpgradeTransforms {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *UpgradeTransforms) Human(human bool) *UpgradeTransforms {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *UpgradeTransforms) Pretty(pretty bool) *UpgradeTransforms {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/acknowledgement.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/acknowledgement.go
index 5f1231c391..4abe83aac4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/acknowledgement.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/acknowledgement.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Acknowledgement type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/license/post/types.ts#L20-L23
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/post/types.ts#L20-L23
type Acknowledgement struct {
License []string `json:"license"`
Message string `json:"message"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/acknowledgestate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/acknowledgestate.go
index 6022a63512..b21fa3a8d1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/acknowledgestate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/acknowledgestate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// AcknowledgeState type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Action.ts#L115-L118
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L115-L118
type AcknowledgeState struct {
State acknowledgementoptions.AcknowledgementOptions `json:"state"`
Timestamp DateTime `json:"timestamp"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/actionstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/actionstatus.go
index 4ed5a77966..a0bed336cb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/actionstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/actionstatus.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ActionStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Action.ts#L131-L136
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L131-L136
type ActionStatus struct {
Ack AcknowledgeState `json:"ack"`
LastExecution *ExecutionState `json:"last_execution,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/activationstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/activationstate.go
index 54cc4c63fb..617e838b3d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/activationstate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/activationstate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ActivationState type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Activation.ts#L24-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Activation.ts#L24-L27
type ActivationState struct {
Active bool `json:"active"`
Timestamp DateTime `json:"timestamp"`
@@ -53,7 +53,7 @@ func (s *ActivationState) UnmarshalJSON(data []byte) error {
switch t {
case "active":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/activationstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/activationstatus.go
index a7a3f4a67a..11d5234383 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/activationstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/activationstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ActivationStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Activation.ts#L29-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Activation.ts#L29-L33
type ActivationStatus struct {
Actions WatcherStatusActions `json:"actions"`
State ActivationState `json:"state"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adaptiveselection.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adaptiveselection.go
index 1544a11cc7..1f487e255a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adaptiveselection.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adaptiveselection.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AdaptiveSelection type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L403-L432
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L403-L432
type AdaptiveSelection struct {
// AvgQueueSize The exponentially weighted moving average queue size of search requests on
// the keyed node.
@@ -71,7 +71,7 @@ func (s *AdaptiveSelection) UnmarshalJSON(data []byte) error {
switch t {
case "avg_queue_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *AdaptiveSelection) UnmarshalJSON(data []byte) error {
}
case "avg_response_time_ns":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -111,7 +111,7 @@ func (s *AdaptiveSelection) UnmarshalJSON(data []byte) error {
}
case "avg_service_time_ns":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -126,7 +126,7 @@ func (s *AdaptiveSelection) UnmarshalJSON(data []byte) error {
}
case "outgoing_searches":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/addaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/addaction.go
index 81692892c6..c2b6a6241e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/addaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/addaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AddAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/update_aliases/types.ts#L41-L95
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/update_aliases/types.ts#L41-L95
type AddAction struct {
// Alias Alias for the action.
// Index alias names support date math.
@@ -134,7 +134,7 @@ func (s *AddAction) UnmarshalJSON(data []byte) error {
}
case "is_hidden":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -148,7 +148,7 @@ func (s *AddAction) UnmarshalJSON(data []byte) error {
}
case "is_write_index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -162,7 +162,7 @@ func (s *AddAction) UnmarshalJSON(data []byte) error {
}
case "must_exist":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adjacencymatrixaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adjacencymatrixaggregate.go
index a2fe985271..e152f46972 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adjacencymatrixaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adjacencymatrixaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// AdjacencyMatrixAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L573-L575
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L573-L575
type AdjacencyMatrixAggregate struct {
Buckets BucketsAdjacencyMatrixBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adjacencymatrixaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adjacencymatrixaggregation.go
index f2940f97fa..a5a517729c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adjacencymatrixaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adjacencymatrixaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,13 +31,13 @@ import (
// AdjacencyMatrixAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L55-L61
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L55-L65
type AdjacencyMatrixAggregation struct {
// Filters Filters used to create buckets.
// At least one filter is required.
Filters map[string]Query `json:"filters,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
+ // Separator Separator used to concatenate filter names. Defaults to &.
+ Separator *string `json:"separator,omitempty"`
}
func (s *AdjacencyMatrixAggregation) UnmarshalJSON(data []byte) error {
@@ -63,22 +63,17 @@ func (s *AdjacencyMatrixAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Filters", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
+ case "separator":
var tmp json.RawMessage
if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
+ return fmt.Errorf("%s | %w", "Separator", err)
}
o := string(tmp[:])
o, err = strconv.Unquote(o)
if err != nil {
o = string(tmp[:])
}
- s.Name = &o
+ s.Separator = &o
}
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adjacencymatrixbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adjacencymatrixbucket.go
index 916f6c7b29..4d8d4af3d7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adjacencymatrixbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/adjacencymatrixbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// AdjacencyMatrixBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L577-L579
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L577-L579
type AdjacencyMatrixBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *AdjacencyMatrixBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -526,7 +526,7 @@ func (s *AdjacencyMatrixBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -576,7 +576,7 @@ func (s *AdjacencyMatrixBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -586,7 +586,7 @@ func (s *AdjacencyMatrixBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -603,7 +603,7 @@ func (s *AdjacencyMatrixBucket) UnmarshalJSON(data []byte) error {
func (s AdjacencyMatrixBucket) MarshalJSON() ([]byte, error) {
type opt AdjacencyMatrixBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregate.go
index 40824dba48..7ca7f1878d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -92,5 +92,5 @@ package types
// MatrixStatsAggregate
// GeoLineAggregate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L38-L123
-type Aggregate interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L38-L123
+type Aggregate any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregatemetricdoubleproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregatemetricdoubleproperty.go
index 5dd1ffe270..6f16fbb974 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregatemetricdoubleproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregatemetricdoubleproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// AggregateMetricDoubleProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/complex.ts#L60-L65
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/complex.ts#L61-L66
type AggregateMetricDoubleProperty struct {
DefaultMetric string `json:"default_metric"`
Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
@@ -87,7 +87,7 @@ func (s *AggregateMetricDoubleProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -378,6 +378,12 @@ func (s *AggregateMetricDoubleProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -389,7 +395,7 @@ func (s *AggregateMetricDoubleProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -423,7 +429,7 @@ func (s *AggregateMetricDoubleProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -714,6 +720,12 @@ func (s *AggregateMetricDoubleProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregateorder.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregateorder.go
index 352c9f64b6..23c14abdd8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregateorder.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregateorder.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]sortorder.SortOrder
// []map[string]sortorder.SortOrder
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L974-L976
-type AggregateOrder interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L978-L980
+type AggregateOrder any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregateoutput.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregateoutput.go
index ba00b725cd..398c971a83 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregateoutput.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregateoutput.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// AggregateOutput type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model/types.ts#L101-L106
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L101-L106
type AggregateOutput struct {
Exponent *Weights `json:"exponent,omitempty"`
LogisticRegression *Weights `json:"logistic_regression,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregation.go
index e95a20f798..2ca24d498b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregation.go
@@ -16,62 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
-import (
- "bytes"
- "encoding/json"
- "errors"
- "fmt"
- "io"
- "strconv"
-)
-
// Aggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregation.ts#L22-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregation.ts#L20-L20
type Aggregation struct {
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
-}
-
-func (s *Aggregation) UnmarshalJSON(data []byte) error {
-
- dec := json.NewDecoder(bytes.NewReader(data))
-
- for {
- t, err := dec.Token()
- if err != nil {
- if errors.Is(err, io.EOF) {
- break
- }
- return err
- }
-
- switch t {
-
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
- }
- }
- return nil
}
// NewAggregation returns a Aggregation.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationbreakdown.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationbreakdown.go
index fe17638a71..75cc11c993 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationbreakdown.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationbreakdown.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AggregationBreakdown type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/profile.ts#L23-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L23-L36
type AggregationBreakdown struct {
BuildAggregation int64 `json:"build_aggregation"`
BuildAggregationCount int64 `json:"build_aggregation_count"`
@@ -63,7 +63,7 @@ func (s *AggregationBreakdown) UnmarshalJSON(data []byte) error {
switch t {
case "build_aggregation":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -78,7 +78,7 @@ func (s *AggregationBreakdown) UnmarshalJSON(data []byte) error {
}
case "build_aggregation_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -93,7 +93,7 @@ func (s *AggregationBreakdown) UnmarshalJSON(data []byte) error {
}
case "build_leaf_collector":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,7 +108,7 @@ func (s *AggregationBreakdown) UnmarshalJSON(data []byte) error {
}
case "build_leaf_collector_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -123,7 +123,7 @@ func (s *AggregationBreakdown) UnmarshalJSON(data []byte) error {
}
case "collect":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +138,7 @@ func (s *AggregationBreakdown) UnmarshalJSON(data []byte) error {
}
case "collect_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -153,7 +153,7 @@ func (s *AggregationBreakdown) UnmarshalJSON(data []byte) error {
}
case "initialize":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -168,7 +168,7 @@ func (s *AggregationBreakdown) UnmarshalJSON(data []byte) error {
}
case "initialize_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -183,7 +183,7 @@ func (s *AggregationBreakdown) UnmarshalJSON(data []byte) error {
}
case "post_collection":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -198,7 +198,7 @@ func (s *AggregationBreakdown) UnmarshalJSON(data []byte) error {
}
case "post_collection_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -213,7 +213,7 @@ func (s *AggregationBreakdown) UnmarshalJSON(data []byte) error {
}
case "reduce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -228,7 +228,7 @@ func (s *AggregationBreakdown) UnmarshalJSON(data []byte) error {
}
case "reduce_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationprofile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationprofile.go
index ce31c03f97..a27f48dcd8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationprofile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationprofile.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AggregationProfile type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/profile.ts#L77-L84
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L77-L84
type AggregationProfile struct {
Breakdown AggregationBreakdown `json:"breakdown"`
Children []AggregationProfile `json:"children,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationprofiledebug.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationprofiledebug.go
index a0f4122d42..8f97c2ce1e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationprofiledebug.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationprofiledebug.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AggregationProfileDebug type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/profile.ts#L39-L68
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L39-L68
type AggregationProfileDebug struct {
BuiltBuckets *int `json:"built_buckets,omitempty"`
CharsFetched *int `json:"chars_fetched,omitempty"`
@@ -80,7 +80,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "built_buckets":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "chars_fetched":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -112,7 +112,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "collect_analyzed_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -128,7 +128,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "collect_analyzed_ns":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -178,7 +178,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "empty_collectors_used":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -194,7 +194,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "extract_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -210,7 +210,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "extract_ns":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -230,7 +230,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
}
case "has_filter":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -257,7 +257,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "numeric_collectors_used":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -273,7 +273,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "ordinals_collectors_overhead_too_high":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -289,7 +289,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "ordinals_collectors_used":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -317,7 +317,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "segments_collected":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -333,7 +333,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "segments_counted":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -349,7 +349,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "segments_with_deleted_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -365,7 +365,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "segments_with_doc_count_field":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -381,7 +381,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "segments_with_multi_valued_ords":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -397,7 +397,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "segments_with_single_valued_ords":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -413,7 +413,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "string_hashing_collectors_used":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -429,7 +429,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "surviving_buckets":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -445,7 +445,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "total_buckets":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -461,7 +461,7 @@ func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error {
case "values_fetched":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationprofiledelegatedebugfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationprofiledelegatedebugfilter.go
index 7b1cba5f5c..2b6a160ed5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationprofiledelegatedebugfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationprofiledelegatedebugfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AggregationProfileDelegateDebugFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/profile.ts#L70-L75
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L70-L75
type AggregationProfileDelegateDebugFilter struct {
Query *string `json:"query,omitempty"`
ResultsFromMetadata *int `json:"results_from_metadata,omitempty"`
@@ -68,7 +68,7 @@ func (s *AggregationProfileDelegateDebugFilter) UnmarshalJSON(data []byte) error
case "results_from_metadata":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -84,7 +84,7 @@ func (s *AggregationProfileDelegateDebugFilter) UnmarshalJSON(data []byte) error
case "segments_counted_in_constant_time":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationrange.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationrange.go
index c7518c77f1..42b601b5c8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationrange.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregationrange.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,14 +31,14 @@ import (
// AggregationRange type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L670-L683
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L674-L687
type AggregationRange struct {
// From Start of the range (inclusive).
- From string `json:"from,omitempty"`
+ From *Float64 `json:"from,omitempty"`
// Key Custom key to return the range with.
Key *string `json:"key,omitempty"`
// To End of the range (exclusive).
- To string `json:"to,omitempty"`
+ To *Float64 `json:"to,omitempty"`
}
func (s *AggregationRange) UnmarshalJSON(data []byte) error {
@@ -57,16 +57,20 @@ func (s *AggregationRange) UnmarshalJSON(data []byte) error {
switch t {
case "from":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "From", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseFloat(v, 64)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "From", err)
+ }
+ f := Float64(value)
+ s.From = &f
+ case float64:
+ f := Float64(v)
+ s.From = &f
}
- s.From = o
case "key":
var tmp json.RawMessage
@@ -81,16 +85,20 @@ func (s *AggregationRange) UnmarshalJSON(data []byte) error {
s.Key = &o
case "to":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "To", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseFloat(v, 64)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "To", err)
+ }
+ f := Float64(value)
+ s.To = &f
+ case float64:
+ f := Float64(v)
+ s.To = &f
}
- s.To = o
}
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregations.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregations.go
index 323fc9f978..bfe4ce57e1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregations.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aggregations.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// Aggregations type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/AggregationContainer.ts#L106-L515
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/AggregationContainer.ts#L105-L514
type Aggregations struct {
// AdjacencyMatrix A bucket aggregation returning a form of adjacency matrix.
// The request provides a collection of named filter expressions, similar to the
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/alias.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/alias.go
index b862165848..04b2439d57 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/alias.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/alias.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Alias type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/Alias.ts#L23-L53
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/Alias.ts#L23-L53
type Alias struct {
// Filter Query used to limit documents the alias can access.
Filter *Query `json:"filter,omitempty"`
@@ -76,7 +76,7 @@ func (s *Alias) UnmarshalJSON(data []byte) error {
}
case "is_hidden":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -90,7 +90,7 @@ func (s *Alias) UnmarshalJSON(data []byte) error {
}
case "is_write_index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aliasdefinition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aliasdefinition.go
index 762cc29a4d..dc055df1ac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aliasdefinition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aliasdefinition.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AliasDefinition type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/AliasDefinition.ts#L22-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/AliasDefinition.ts#L22-L54
type AliasDefinition struct {
// Filter Query used to limit documents the alias can access.
Filter *Query `json:"filter,omitempty"`
@@ -83,7 +83,7 @@ func (s *AliasDefinition) UnmarshalJSON(data []byte) error {
s.IndexRouting = &o
case "is_hidden":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -97,7 +97,7 @@ func (s *AliasDefinition) UnmarshalJSON(data []byte) error {
}
case "is_write_index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aliasesrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aliasesrecord.go
index 4fb7a45284..3e76a84787 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aliasesrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/aliasesrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AliasesRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/aliases/types.ts#L22-L53
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/aliases/types.ts#L22-L53
type AliasesRecord struct {
// Alias alias name
Alias *string `json:"alias,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allfield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allfield.go
index 8dae4ad0a7..4f5a5632a5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allfield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allfield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AllField type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/meta-fields.ts#L29-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L29-L40
type AllField struct {
Analyzer string `json:"analyzer"`
Enabled bool `json:"enabled"`
@@ -73,7 +73,7 @@ func (s *AllField) UnmarshalJSON(data []byte) error {
s.Analyzer = o
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *AllField) UnmarshalJSON(data []byte) error {
}
case "omit_norms":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *AllField) UnmarshalJSON(data []byte) error {
s.Similarity = o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -139,7 +139,7 @@ func (s *AllField) UnmarshalJSON(data []byte) error {
}
case "store_term_vector_offsets":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -153,7 +153,7 @@ func (s *AllField) UnmarshalJSON(data []byte) error {
}
case "store_term_vector_payloads":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -167,7 +167,7 @@ func (s *AllField) UnmarshalJSON(data []byte) error {
}
case "store_term_vector_positions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -181,7 +181,7 @@ func (s *AllField) UnmarshalJSON(data []byte) error {
}
case "store_term_vectors":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocationdecision.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocationdecision.go
index 682817542e..85dd61ef5d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocationdecision.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocationdecision.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// AllocationDecision type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/allocation_explain/types.ts#L26-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L26-L30
type AllocationDecision struct {
Decider string `json:"decider"`
Decision allocationexplaindecision.AllocationExplainDecision `json:"decision"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocationrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocationrecord.go
index 9bd0694df6..a9678bd183 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocationrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocationrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AllocationRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/allocation/types.ts#L24-L75
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/allocation/types.ts#L24-L75
type AllocationRecord struct {
// DiskAvail Free disk space available to Elasticsearch.
// Elasticsearch retrieves this metric from the node’s operating system.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocationstore.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocationstore.go
index 9b9bffda87..a8935deead 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocationstore.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/allocationstore.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AllocationStore type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/allocation_explain/types.ts#L39-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L39-L46
type AllocationStore struct {
AllocationId string `json:"allocation_id"`
Found bool `json:"found"`
@@ -69,7 +69,7 @@ func (s *AllocationStore) UnmarshalJSON(data []byte) error {
s.AllocationId = o
case "found":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *AllocationStore) UnmarshalJSON(data []byte) error {
}
case "in_sync":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -97,7 +97,7 @@ func (s *AllocationStore) UnmarshalJSON(data []byte) error {
}
case "matching_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -112,7 +112,7 @@ func (s *AllocationStore) UnmarshalJSON(data []byte) error {
}
case "matching_sync_id":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/alwayscondition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/alwayscondition.go
index 11e9df797a..80754278c6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/alwayscondition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/alwayscondition.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// AlwaysCondition type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Conditions.ts#L25-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L25-L25
type AlwaysCondition struct {
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysisconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysisconfig.go
index a719e81282..a5071af8a1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysisconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysisconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AnalysisConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Analysis.ts#L29-L77
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Analysis.ts#L29-L77
type AnalysisConfig struct {
// BucketSpan The size of the interval that the analysis is aggregated into, typically
// between `5m` and `1h`. This value should be either a whole number of days or
@@ -184,7 +184,7 @@ func (s *AnalysisConfig) UnmarshalJSON(data []byte) error {
}
case "multivariate_by_fields":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysisconfigread.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysisconfigread.go
index f3e184b3a4..8eadccb644 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysisconfigread.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysisconfigread.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AnalysisConfigRead type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Analysis.ts#L79-L148
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Analysis.ts#L79-L148
type AnalysisConfigRead struct {
// BucketSpan The size of the interval that the analysis is aggregated into, typically
// between `5m` and `1h`.
@@ -171,7 +171,7 @@ func (s *AnalysisConfigRead) UnmarshalJSON(data []byte) error {
}
case "multivariate_by_fields":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysislimits.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysislimits.go
index 8e60713fa5..d5e655cd28 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysislimits.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysislimits.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AnalysisLimits type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Analysis.ts#L161-L172
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Analysis.ts#L161-L172
type AnalysisLimits struct {
// CategorizationExamplesLimit The maximum number of examples stored per category in memory and in the
// results data store. If you increase this value, more examples are available,
@@ -74,7 +74,7 @@ func (s *AnalysisLimits) UnmarshalJSON(data []byte) error {
switch t {
case "categorization_examples_limit":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysismemorylimit.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysismemorylimit.go
index 28b5222f1e..0e93797347 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysismemorylimit.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analysismemorylimit.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AnalysisMemoryLimit type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Analysis.ts#L174-L179
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Analysis.ts#L174-L179
type AnalysisMemoryLimit struct {
// ModelMemoryLimit Limits can be applied for the resources required to hold the mathematical
// models in memory. These limits are approximate and can be set per job. They
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analytics.go
index 5cf0ba7c2f..4ce4e08492 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analytics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Analytics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L330-L332
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L330-L332
type Analytics struct {
Available bool `json:"available"`
Enabled bool `json:"enabled"`
@@ -54,7 +54,7 @@ func (s *Analytics) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -68,7 +68,7 @@ func (s *Analytics) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyticscollection.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyticscollection.go
index a0a41119de..1687bfb4ae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyticscollection.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyticscollection.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// AnalyticsCollection type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/_types/BehavioralAnalytics.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/_types/BehavioralAnalytics.ts#L22-L27
type AnalyticsCollection struct {
// EventDataStream Data stream for the collection.
EventDataStream EventDataStream `json:"event_data_stream"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyticsstatistics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyticsstatistics.go
index 3de3707347..752077d2a5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyticsstatistics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyticsstatistics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AnalyticsStatistics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L61-L71
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L61-L71
type AnalyticsStatistics struct {
BoxplotUsage int64 `json:"boxplot_usage"`
CumulativeCardinalityUsage int64 `json:"cumulative_cardinality_usage"`
@@ -60,7 +60,7 @@ func (s *AnalyticsStatistics) UnmarshalJSON(data []byte) error {
switch t {
case "boxplot_usage":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -75,7 +75,7 @@ func (s *AnalyticsStatistics) UnmarshalJSON(data []byte) error {
}
case "cumulative_cardinality_usage":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -90,7 +90,7 @@ func (s *AnalyticsStatistics) UnmarshalJSON(data []byte) error {
}
case "moving_percentiles_usage":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -105,7 +105,7 @@ func (s *AnalyticsStatistics) UnmarshalJSON(data []byte) error {
}
case "multi_terms_usage":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -120,7 +120,7 @@ func (s *AnalyticsStatistics) UnmarshalJSON(data []byte) error {
}
case "normalize_usage":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -135,7 +135,7 @@ func (s *AnalyticsStatistics) UnmarshalJSON(data []byte) error {
}
case "rate_usage":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +150,7 @@ func (s *AnalyticsStatistics) UnmarshalJSON(data []byte) error {
}
case "string_stats_usage":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -165,7 +165,7 @@ func (s *AnalyticsStatistics) UnmarshalJSON(data []byte) error {
}
case "t_test_usage":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -180,7 +180,7 @@ func (s *AnalyticsStatistics) UnmarshalJSON(data []byte) error {
}
case "top_metrics_usage":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzedetail.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzedetail.go
index e96b81955f..043c69f3cb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzedetail.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzedetail.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AnalyzeDetail type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/analyze/types.ts#L24-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/types.ts#L24-L30
type AnalyzeDetail struct {
Analyzer *AnalyzerDetail `json:"analyzer,omitempty"`
Charfilters []CharFilterDetail `json:"charfilters,omitempty"`
@@ -66,7 +66,7 @@ func (s *AnalyzeDetail) UnmarshalJSON(data []byte) error {
}
case "custom_analyzer":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzer.go
index b97249f9f4..1356ea3d23 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -37,5 +37,5 @@ package types
// SnowballAnalyzer
// DutchAnalyzer
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/analyzers.ts#L113-L131
-type Analyzer interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L113-L131
+type Analyzer any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzerdetail.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzerdetail.go
index 2b9b7acbe5..23f40c8292 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzerdetail.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzerdetail.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AnalyzerDetail type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/analyze/types.ts#L32-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/types.ts#L32-L35
type AnalyzerDetail struct {
Name string `json:"name"`
Tokens []ExplainAnalyzeToken `json:"tokens"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzetoken.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzetoken.go
index 575edceadc..37dcb0ce1e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzetoken.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/analyzetoken.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AnalyzeToken type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/analyze/types.ts#L37-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/types.ts#L37-L44
type AnalyzeToken struct {
EndOffset int64 `json:"end_offset"`
Position int64 `json:"position"`
@@ -57,7 +57,7 @@ func (s *AnalyzeToken) UnmarshalJSON(data []byte) error {
switch t {
case "end_offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *AnalyzeToken) UnmarshalJSON(data []byte) error {
}
case "position":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *AnalyzeToken) UnmarshalJSON(data []byte) error {
}
case "positionLength":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -102,7 +102,7 @@ func (s *AnalyzeToken) UnmarshalJSON(data []byte) error {
}
case "start_offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomaly.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomaly.go
index d19dafaa79..2d3a9fb0cd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomaly.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomaly.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Anomaly type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Anomaly.ts#L24-L121
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Anomaly.ts#L24-L121
type Anomaly struct {
// Actual The actual value for the bucket.
Actual []Float64 `json:"actual,omitempty"`
@@ -173,7 +173,7 @@ func (s *Anomaly) UnmarshalJSON(data []byte) error {
case "detector_index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -234,7 +234,7 @@ func (s *Anomaly) UnmarshalJSON(data []byte) error {
}
case "initial_record_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -250,7 +250,7 @@ func (s *Anomaly) UnmarshalJSON(data []byte) error {
}
case "is_interim":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -324,7 +324,7 @@ func (s *Anomaly) UnmarshalJSON(data []byte) error {
s.PartitionFieldValue = &o
case "probability":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -340,7 +340,7 @@ func (s *Anomaly) UnmarshalJSON(data []byte) error {
}
case "record_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomalycause.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomalycause.go
index 2b145faa97..7c0228b5a6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomalycause.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomalycause.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AnomalyCause type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Anomaly.ts#L123-L138
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Anomaly.ts#L123-L138
type AnomalyCause struct {
Actual []Float64 `json:"actual"`
ByFieldName string `json:"by_field_name"`
@@ -174,7 +174,7 @@ func (s *AnomalyCause) UnmarshalJSON(data []byte) error {
s.PartitionFieldValue = o
case "probability":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomalydetectors.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomalydetectors.go
index 4da3912b60..03182309fe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomalydetectors.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomalydetectors.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AnomalyDetectors type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/info/types.ts#L44-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/info/types.ts#L44-L50
type AnomalyDetectors struct {
CategorizationAnalyzer CategorizationAnalyzer `json:"categorization_analyzer"`
CategorizationExamplesLimit int `json:"categorization_examples_limit"`
@@ -77,7 +77,7 @@ func (s *AnomalyDetectors) UnmarshalJSON(data []byte) error {
case "categorization_examples_limit":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -93,7 +93,7 @@ func (s *AnomalyDetectors) UnmarshalJSON(data []byte) error {
case "daily_model_snapshot_retention_after_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -121,7 +121,7 @@ func (s *AnomalyDetectors) UnmarshalJSON(data []byte) error {
case "model_snapshot_retention_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomalyexplanation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomalyexplanation.go
index fdc83855f5..0a7e26715c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomalyexplanation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/anomalyexplanation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AnomalyExplanation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Anomaly.ts#L156-L197
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Anomaly.ts#L156-L197
type AnomalyExplanation struct {
// AnomalyCharacteristicsImpact Impact from the duration and magnitude of the detected anomaly relative to
// the historical average.
@@ -76,7 +76,7 @@ func (s *AnomalyExplanation) UnmarshalJSON(data []byte) error {
case "anomaly_characteristics_impact":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *AnomalyExplanation) UnmarshalJSON(data []byte) error {
case "anomaly_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -119,7 +119,7 @@ func (s *AnomalyExplanation) UnmarshalJSON(data []byte) error {
s.AnomalyType = &o
case "high_variance_penalty":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -133,7 +133,7 @@ func (s *AnomalyExplanation) UnmarshalJSON(data []byte) error {
}
case "incomplete_bucket_penalty":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -147,7 +147,7 @@ func (s *AnomalyExplanation) UnmarshalJSON(data []byte) error {
}
case "lower_confidence_bound":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -164,7 +164,7 @@ func (s *AnomalyExplanation) UnmarshalJSON(data []byte) error {
case "multi_bucket_impact":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -180,7 +180,7 @@ func (s *AnomalyExplanation) UnmarshalJSON(data []byte) error {
case "single_bucket_impact":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -195,7 +195,7 @@ func (s *AnomalyExplanation) UnmarshalJSON(data []byte) error {
}
case "typical_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -211,7 +211,7 @@ func (s *AnomalyExplanation) UnmarshalJSON(data []byte) error {
}
case "upper_confidence_bound":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikey.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikey.go
index 7fa6b3b2ef..4ee724420c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikey.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikey.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ApiKey type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/ApiKey.ts#L27-L77
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/ApiKey.ts#L27-L89
type ApiKey struct {
// Creation Creation time for the API key in milliseconds.
Creation *int64 `json:"creation,omitempty"`
@@ -52,8 +52,13 @@ type ApiKey struct {
Metadata Metadata `json:"metadata,omitempty"`
// Name Name of the API key.
Name string `json:"name"`
+ // ProfileUid The profile uid for the API key owner principal, if requested and if it
+ // exists
+ ProfileUid *string `json:"profile_uid,omitempty"`
// Realm Realm name of the principal for which this API key was created.
Realm *string `json:"realm,omitempty"`
+ // RealmType Realm type of the principal for which this API key was created
+ RealmType *string `json:"realm_type,omitempty"`
// RoleDescriptors The role descriptors assigned to this API key when it was created or last
// updated.
// An empty role descriptor means the API key inherits the owner user’s
@@ -80,7 +85,7 @@ func (s *ApiKey) UnmarshalJSON(data []byte) error {
switch t {
case "creation":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +100,7 @@ func (s *ApiKey) UnmarshalJSON(data []byte) error {
}
case "expiration":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -115,7 +120,7 @@ func (s *ApiKey) UnmarshalJSON(data []byte) error {
}
case "invalidated":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -143,6 +148,18 @@ func (s *ApiKey) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Name", err)
}
+ case "profile_uid":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "ProfileUid", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.ProfileUid = &o
+
case "realm":
var tmp json.RawMessage
if err := dec.Decode(&tmp); err != nil {
@@ -155,6 +172,18 @@ func (s *ApiKey) UnmarshalJSON(data []byte) error {
}
s.Realm = &o
+ case "realm_type":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "RealmType", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.RealmType = &o
+
case "role_descriptors":
if s.RoleDescriptors == nil {
s.RoleDescriptors = make(map[string]RoleDescriptor, 0)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyaggregate.go
index d657e4562d..01ebaaf726 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -36,5 +36,5 @@ package types
// DateRangeAggregate
// CompositeAggregate
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/query_api_keys/types.ts#L123-L140
-type ApiKeyAggregate interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/query_api_keys/types.ts#L123-L140
+type ApiKeyAggregate any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyaggregationcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyaggregationcontainer.go
index d75c2e0732..8174fb5d72 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyaggregationcontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyaggregationcontainer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ApiKeyAggregationContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/query_api_keys/types.ts#L64-L121
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/query_api_keys/types.ts#L64-L121
type ApiKeyAggregationContainer struct {
// Aggregations Sub-aggregations for this aggregation.
// Only applies to bucket aggregations.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyauthorization.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyauthorization.go
index 2a382ef6c1..999d448d10 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyauthorization.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyauthorization.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ApiKeyAuthorization type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Authorization.ts#L20-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Authorization.ts#L20-L29
type ApiKeyAuthorization struct {
// Id The identifier for the API key.
Id string `json:"id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyfiltersaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyfiltersaggregation.go
index 6f10682897..1bd4a889fb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyfiltersaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyfiltersaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,15 +31,13 @@ import (
// ApiKeyFiltersAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/query_api_keys/types.ts#L208-L228
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/query_api_keys/types.ts#L208-L228
type ApiKeyFiltersAggregation struct {
// Filters Collection of queries from which to build buckets.
Filters BucketsApiKeyQueryContainer `json:"filters,omitempty"`
// Keyed By default, the named filters aggregation returns the buckets as an object.
// Set to `false` to return the buckets as an array of objects.
- Keyed *bool `json:"keyed,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
+ Keyed *bool `json:"keyed,omitempty"`
// OtherBucket Set to `true` to add a bucket to the response which will contain all
// documents that do not match any of the given filters.
OtherBucket *bool `json:"other_bucket,omitempty"`
@@ -84,7 +82,7 @@ func (s *ApiKeyFiltersAggregation) UnmarshalJSON(data []byte) error {
}
case "keyed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -97,25 +95,8 @@ func (s *ApiKeyFiltersAggregation) UnmarshalJSON(data []byte) error {
s.Keyed = &v
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "other_bucket":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyquerycontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyquerycontainer.go
index c6cbfcb564..3d295f96b1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyquerycontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/apikeyquerycontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ApiKeyQueryContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/query_api_keys/types.ts#L142-L206
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/query_api_keys/types.ts#L142-L206
type ApiKeyQueryContainer struct {
// Bool matches documents matching boolean combinations of other queries.
Bool *BoolQuery `json:"bool,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/appendprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/appendprocessor.go
index b378a58d55..a107908cd9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/appendprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/appendprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AppendProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L279-L294
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L279-L294
type AppendProcessor struct {
// AllowDuplicates If `false`, the processor does not append values already present in the
// field.
@@ -71,7 +71,7 @@ func (s *AppendProcessor) UnmarshalJSON(data []byte) error {
switch t {
case "allow_duplicates":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *AppendProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationglobaluserprivileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationglobaluserprivileges.go
index 6d75040d30..1b735836ec 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationglobaluserprivileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationglobaluserprivileges.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ApplicationGlobalUserPrivileges type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/Privileges.ts#L193-L195
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L218-L220
type ApplicationGlobalUserPrivileges struct {
Manage ManageUserPrivileges `json:"manage"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationprivileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationprivileges.go
index 62d91dca8b..68ba9ae3d1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationprivileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationprivileges.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ApplicationPrivileges type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/Privileges.ts#L26-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L26-L39
type ApplicationPrivileges struct {
// Application The name of the application to which this entry applies.
Application string `json:"application"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationprivilegescheck.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationprivilegescheck.go
index 66dd690185..7e08bf230f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationprivilegescheck.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationprivilegescheck.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ApplicationPrivilegesCheck type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/has_privileges/types.ts#L24-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges/types.ts#L24-L31
type ApplicationPrivilegesCheck struct {
// Application The name of the application.
Application string `json:"application"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationsprivileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationsprivileges.go
index 933693fed9..e65465cf1a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationsprivileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/applicationsprivileges.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ApplicationsPrivileges type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/has_privileges/types.ts#L46-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges/types.ts#L46-L46
type ApplicationsPrivileges map[string]ResourcePrivileges
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/archive.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/archive.go
index bcc47e5a27..b561340e30 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/archive.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/archive.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Archive type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L48-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L48-L50
type Archive struct {
Available bool `json:"available"`
Enabled bool `json:"enabled"`
@@ -54,7 +54,7 @@ func (s *Archive) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -68,7 +68,7 @@ func (s *Archive) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -82,7 +82,7 @@ func (s *Archive) UnmarshalJSON(data []byte) error {
}
case "indices_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arraycomparecondition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arraycomparecondition.go
index b0eca60485..83346b93e8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arraycomparecondition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arraycomparecondition.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// ArrayCompareCondition type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Conditions.ts#L32-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L32-L36
type ArrayCompareCondition struct {
ArrayCompareCondition map[conditionop.ConditionOp]ArrayCompareOpParams `json:"-"`
Path string `json:"path"`
@@ -93,7 +93,7 @@ func (s *ArrayCompareCondition) UnmarshalJSON(data []byte) error {
func (s ArrayCompareCondition) MarshalJSON() ([]byte, error) {
type opt ArrayCompareCondition
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arraycompareopparams.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arraycompareopparams.go
index 99e9d60d46..9b40e340d6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arraycompareopparams.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arraycompareopparams.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// ArrayCompareOpParams type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Conditions.ts#L27-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L27-L30
type ArrayCompareOpParams struct {
Quantifier quantifier.Quantifier `json:"quantifier"`
Value FieldValue `json:"value"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arraypercentilesitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arraypercentilesitem.go
index b188894005..9a56ca4beb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arraypercentilesitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/arraypercentilesitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ArrayPercentilesItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L160-L164
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L160-L164
type ArrayPercentilesItem struct {
Key string `json:"key"`
Value Float64 `json:"value,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/asciifoldingtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/asciifoldingtokenfilter.go
index d79eafbfe5..d3efb5b415 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/asciifoldingtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/asciifoldingtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// AsciiFoldingTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L168-L171
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L170-L173
type AsciiFoldingTokenFilter struct {
PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/asyncsearch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/asyncsearch.go
index c977bf9fbe..6a8c390178 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/asyncsearch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/asyncsearch.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// AsyncSearch type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/async_search/_types/AsyncSearch.ts#L30-L56
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/async_search/_types/AsyncSearch.ts#L30-L56
type AsyncSearch struct {
// Aggregations Partial aggregations results, coming from the shards that have already
// completed the execution of the query.
@@ -530,7 +530,7 @@ func (s *AsyncSearch) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -580,7 +580,7 @@ func (s *AsyncSearch) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -590,7 +590,7 @@ func (s *AsyncSearch) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -618,7 +618,7 @@ func (s *AsyncSearch) UnmarshalJSON(data []byte) error {
}
case "max_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -634,7 +634,7 @@ func (s *AsyncSearch) UnmarshalJSON(data []byte) error {
}
case "num_reduce_phases":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -712,7 +712,7 @@ func (s *AsyncSearch) UnmarshalJSON(data []byte) error {
s.Suggest[elems[1]] = append(s.Suggest[elems[1]], o)
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -722,7 +722,7 @@ func (s *AsyncSearch) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Suggest")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -732,7 +732,7 @@ func (s *AsyncSearch) UnmarshalJSON(data []byte) error {
}
case "terminated_early":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -746,7 +746,7 @@ func (s *AsyncSearch) UnmarshalJSON(data []byte) error {
}
case "timed_out":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -760,7 +760,7 @@ func (s *AsyncSearch) UnmarshalJSON(data []byte) error {
}
case "took":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/attachmentprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/attachmentprocessor.go
index d29b2a6526..3e253e94b8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/attachmentprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/attachmentprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AttachmentProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L296-L337
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L296-L337
type AttachmentProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -115,7 +115,7 @@ func (s *AttachmentProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -129,7 +129,7 @@ func (s *AttachmentProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -143,7 +143,7 @@ func (s *AttachmentProcessor) UnmarshalJSON(data []byte) error {
}
case "indexed_chars":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -173,7 +173,7 @@ func (s *AttachmentProcessor) UnmarshalJSON(data []byte) error {
}
case "remove_binary":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/audit.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/audit.go
index 2a150d32a9..f4164a5db3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/audit.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/audit.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Audit type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L73-L75
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L73-L75
type Audit struct {
Enabled bool `json:"enabled"`
Outputs []string `json:"outputs,omitempty"`
@@ -53,7 +53,7 @@ func (s *Audit) UnmarshalJSON(data []byte) error {
switch t {
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/authenticateduser.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/authenticateduser.go
index 44a0dda673..f6ba726f26 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/authenticateduser.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/authenticateduser.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AuthenticatedUser type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_token/types.ts#L40-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_token/types.ts#L40-L45
type AuthenticatedUser struct {
AuthenticationProvider *AuthenticationProvider `json:"authentication_provider,omitempty"`
AuthenticationRealm UserRealm `json:"authentication_realm"`
@@ -96,7 +96,7 @@ func (s *AuthenticatedUser) UnmarshalJSON(data []byte) error {
s.Email = o
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/authenticatetoken.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/authenticatetoken.go
index 02aab00e1f..d6f12a39df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/authenticatetoken.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/authenticatetoken.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AuthenticateToken type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/authenticate/types.ts#L22-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/authenticate/types.ts#L22-L29
type AuthenticateToken struct {
Name string `json:"name"`
Type *string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/authenticationprovider.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/authenticationprovider.go
index 490b093453..737dd42b7b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/authenticationprovider.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/authenticationprovider.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AuthenticationProvider type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_token/types.ts#L35-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_token/types.ts#L35-L38
type AuthenticationProvider struct {
Name string `json:"name"`
Type string `json:"type"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autodatehistogramaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autodatehistogramaggregate.go
index fbbbd0c956..09cf96f7f2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autodatehistogramaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autodatehistogramaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// AutoDateHistogramAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L356-L360
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L356-L360
type AutoDateHistogramAggregate struct {
Buckets BucketsDateHistogramBucket `json:"buckets"`
Interval string `json:"interval"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autodatehistogramaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autodatehistogramaggregation.go
index 5c35280993..2e5f915ad5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autodatehistogramaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autodatehistogramaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// AutoDateHistogramAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L63-L98
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L67-L102
type AutoDateHistogramAggregation struct {
// Buckets The target number of buckets.
Buckets *int `json:"buckets,omitempty"`
@@ -42,8 +42,7 @@ type AutoDateHistogramAggregation struct {
// Format The date format used to format `key_as_string` in the response.
// If no `format` is specified, the first date format specified in the field
// mapping is used.
- Format *string `json:"format,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
+ Format *string `json:"format,omitempty"`
// MinimumInterval The minimum rounding interval.
// This can make the collection process more efficient, as the aggregation will
// not attempt to round at any interval lower than `minimum_interval`.
@@ -51,7 +50,6 @@ type AutoDateHistogramAggregation struct {
// Missing The value to apply to documents that do not have a value.
// By default, documents without a value are ignored.
Missing DateTime `json:"missing,omitempty"`
- Name *string `json:"name,omitempty"`
// Offset Time zone specified as a ISO 8601 UTC offset.
Offset *string `json:"offset,omitempty"`
Params map[string]json.RawMessage `json:"params,omitempty"`
@@ -77,7 +75,7 @@ func (s *AutoDateHistogramAggregation) UnmarshalJSON(data []byte) error {
case "buckets":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,11 +106,6 @@ func (s *AutoDateHistogramAggregation) UnmarshalJSON(data []byte) error {
}
s.Format = &o
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "minimum_interval":
if err := dec.Decode(&s.MinimumInterval); err != nil {
return fmt.Errorf("%s | %w", "MinimumInterval", err)
@@ -123,18 +116,6 @@ func (s *AutoDateHistogramAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Missing", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "offset":
var tmp json.RawMessage
if err := dec.Decode(&tmp); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowedcluster.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowedcluster.go
index 6a3ff72cbf..cdbedf5dbb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowedcluster.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowedcluster.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// AutoFollowedCluster type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/stats/types.ts.ts#L27-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/stats/types.ts.ts#L27-L31
type AutoFollowedCluster struct {
ClusterName string `json:"cluster_name"`
LastSeenMetadataVersion int64 `json:"last_seen_metadata_version"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowpattern.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowpattern.go
index a74e1b26aa..baa6ddd71e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowpattern.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowpattern.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// AutoFollowPattern type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/get_auto_follow_pattern/types.ts#L23-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/get_auto_follow_pattern/types.ts#L23-L26
type AutoFollowPattern struct {
Name string `json:"name"`
Pattern AutoFollowPatternSummary `json:"pattern"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowpatternsummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowpatternsummary.go
index ebd9d6caaf..c0860e30a7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowpatternsummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowpatternsummary.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AutoFollowPatternSummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/get_auto_follow_pattern/types.ts#L28-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/get_auto_follow_pattern/types.ts#L28-L52
type AutoFollowPatternSummary struct {
Active bool `json:"active"`
// FollowIndexPattern The name of follower index.
@@ -64,7 +64,7 @@ func (s *AutoFollowPatternSummary) UnmarshalJSON(data []byte) error {
switch t {
case "active":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -94,7 +94,7 @@ func (s *AutoFollowPatternSummary) UnmarshalJSON(data []byte) error {
case "max_outstanding_read_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowstats.go
index b5448f84fe..2eb15ac8d5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autofollowstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AutoFollowStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/stats/types.ts.ts#L33-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/stats/types.ts.ts#L33-L39
type AutoFollowStats struct {
AutoFollowedClusters []AutoFollowedCluster `json:"auto_followed_clusters"`
NumberOfFailedFollowIndices int64 `json:"number_of_failed_follow_indices"`
@@ -61,7 +61,7 @@ func (s *AutoFollowStats) UnmarshalJSON(data []byte) error {
}
case "number_of_failed_follow_indices":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -76,7 +76,7 @@ func (s *AutoFollowStats) UnmarshalJSON(data []byte) error {
}
case "number_of_failed_remote_cluster_state_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *AutoFollowStats) UnmarshalJSON(data []byte) error {
}
case "number_of_successful_follow_indices":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingcapacity.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingcapacity.go
index bf0ab4c50c..e23ac9bde8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingcapacity.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingcapacity.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// AutoscalingCapacity type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L38-L41
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L38-L41
type AutoscalingCapacity struct {
Node AutoscalingResources `json:"node"`
Total AutoscalingResources `json:"total"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingdecider.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingdecider.go
index 26cf978fa3..48d9c12713 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingdecider.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingdecider.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AutoscalingDecider type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L52-L56
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L52-L56
type AutoscalingDecider struct {
ReasonDetails json.RawMessage `json:"reason_details,omitempty"`
ReasonSummary *string `json:"reason_summary,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingdeciders.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingdeciders.go
index f35fa436f5..1219897468 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingdeciders.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingdeciders.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// AutoscalingDeciders type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L31-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L31-L36
type AutoscalingDeciders struct {
CurrentCapacity AutoscalingCapacity `json:"current_capacity"`
CurrentNodes []AutoscalingNode `json:"current_nodes"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingnode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingnode.go
index 0826e0d564..25a0ec6cac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingnode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingnode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// AutoscalingNode type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L48-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L48-L50
type AutoscalingNode struct {
Name string `json:"name"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingpolicy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingpolicy.go
index d0e369cf92..9ce0904cfc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingpolicy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingpolicy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// AutoscalingPolicy type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/autoscaling/_types/AutoscalingPolicy.ts#L23-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/_types/AutoscalingPolicy.ts#L23-L27
type AutoscalingPolicy struct {
// Deciders Decider settings
Deciders map[string]json.RawMessage `json:"deciders"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingresources.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingresources.go
index 9aa10bebac..2c4bce4189 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingresources.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/autoscalingresources.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AutoscalingResources type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46
type AutoscalingResources struct {
Memory int `json:"memory"`
Storage int `json:"storage"`
@@ -54,7 +54,7 @@ func (s *AutoscalingResources) UnmarshalJSON(data []byte) error {
case "memory":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *AutoscalingResources) UnmarshalJSON(data []byte) error {
case "storage":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/averageaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/averageaggregation.go
index bd78c4da41..950200bfff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/averageaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/averageaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AverageAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L55-L55
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L55-L55
type AverageAggregation struct {
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/averagebucketaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/averagebucketaggregation.go
index 8dad515f17..0bdd6aa486 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/averagebucketaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/averagebucketaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// AverageBucketAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L78-L78
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L78-L78
type AverageBucketAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,8 +43,6 @@ type AverageBucketAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
}
func (s *AverageBucketAggregation) UnmarshalJSON(data []byte) error {
@@ -84,23 +82,6 @@ func (s *AverageBucketAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/avgaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/avgaggregate.go
index a411ffc055..2052c234d7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/avgaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/avgaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AvgAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L209-L210
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L209-L210
type AvgAggregate struct {
Meta Metadata `json:"meta,omitempty"`
// Value The metric value. A missing value generally means that there was no data to
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/azurerepository.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/azurerepository.go
index 5df24f56fd..2dfd132bae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/azurerepository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/azurerepository.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// AzureRepository type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotRepository.ts#L40-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L40-L43
type AzureRepository struct {
Settings AzureRepositorySettings `json:"settings"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/azurerepositorysettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/azurerepositorysettings.go
index 49427d1173..908d467e7a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/azurerepositorysettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/azurerepositorysettings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// AzureRepositorySettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotRepository.ts#L77-L83
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L77-L83
type AzureRepositorySettings struct {
BasePath *string `json:"base_path,omitempty"`
ChunkSize ByteSize `json:"chunk_size,omitempty"`
@@ -89,7 +89,7 @@ func (s *AzureRepositorySettings) UnmarshalJSON(data []byte) error {
s.Client = &o
case "compress":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -137,7 +137,7 @@ func (s *AzureRepositorySettings) UnmarshalJSON(data []byte) error {
}
case "readonly":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/base.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/base.go
index 2e711410ab..d543fa4002 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/base.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/base.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Base type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L30-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L30-L33
type Base struct {
Available bool `json:"available"`
Enabled bool `json:"enabled"`
@@ -53,7 +53,7 @@ func (s *Base) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -67,7 +67,7 @@ func (s *Base) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/baseindicator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/baseindicator.go
index 9b996908c5..72e4fa8dbf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/baseindicator.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/baseindicator.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// BaseIndicator type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L42-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L42-L47
type BaseIndicator struct {
Diagnosis []Diagnosis `json:"diagnosis,omitempty"`
Impacts []Impact `json:"impacts,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/basenode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/basenode.go
index d64c805a7a..0258ef723b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/basenode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/basenode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// BaseNode type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_spec_utils/BaseNode.ts#L25-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/BaseNode.ts#L25-L32
type BaseNode struct {
Attributes map[string]string `json:"attributes"`
Host string `json:"host"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/binaryproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/binaryproperty.go
index b2a217b00d..89da9a0198 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/binaryproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/binaryproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// BinaryProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L49-L51
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L49-L51
type BinaryProperty struct {
CopyTo []string `json:"copy_to,omitempty"`
DocValues *bool `json:"doc_values,omitempty"`
@@ -80,7 +80,7 @@ func (s *BinaryProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -105,7 +105,7 @@ func (s *BinaryProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -396,6 +396,12 @@ func (s *BinaryProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -407,7 +413,7 @@ func (s *BinaryProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -436,7 +442,7 @@ func (s *BinaryProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -727,6 +733,12 @@ func (s *BinaryProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -749,7 +761,7 @@ func (s *BinaryProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/booleanproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/booleanproperty.go
index b267867a9f..8b5bfec197 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/booleanproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/booleanproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// BooleanProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L53-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L53-L59
type BooleanProperty struct {
Boost *Float64 `json:"boost,omitempty"`
CopyTo []string `json:"copy_to,omitempty"`
@@ -68,7 +68,7 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -130,7 +130,7 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -421,6 +421,12 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -432,7 +438,7 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -447,7 +453,7 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -469,7 +475,7 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error {
}
case "null_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -489,7 +495,7 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -780,6 +786,12 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -802,7 +814,7 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boolquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boolquery.go
index 6526cee13c..e764c11296 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boolquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boolquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// BoolQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L28-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L28-L52
type BoolQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -72,7 +72,7 @@ func (s *BoolQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boostingquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boostingquery.go
index 26431ce425..1a73154911 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boostingquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boostingquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// BoostingQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L54-L67
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L54-L67
type BoostingQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -65,7 +65,7 @@ func (s *BoostingQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -86,7 +86,7 @@ func (s *BoostingQuery) UnmarshalJSON(data []byte) error {
}
case "negative_boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boxplotaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boxplotaggregate.go
index 779524b4b5..4af1fd70ea 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boxplotaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boxplotaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// BoxPlotAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L706-L722
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L706-L722
type BoxPlotAggregate struct {
Lower Float64 `json:"lower"`
LowerAsString *string `json:"lower_as_string,omitempty"`
@@ -66,7 +66,7 @@ func (s *BoxPlotAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "lower":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -94,7 +94,7 @@ func (s *BoxPlotAggregate) UnmarshalJSON(data []byte) error {
s.LowerAsString = &o
case "max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -127,7 +127,7 @@ func (s *BoxPlotAggregate) UnmarshalJSON(data []byte) error {
}
case "min":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -155,7 +155,7 @@ func (s *BoxPlotAggregate) UnmarshalJSON(data []byte) error {
s.MinAsString = &o
case "q1":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -183,7 +183,7 @@ func (s *BoxPlotAggregate) UnmarshalJSON(data []byte) error {
s.Q1AsString = &o
case "q2":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -211,7 +211,7 @@ func (s *BoxPlotAggregate) UnmarshalJSON(data []byte) error {
s.Q2AsString = &o
case "q3":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -239,7 +239,7 @@ func (s *BoxPlotAggregate) UnmarshalJSON(data []byte) error {
s.Q3AsString = &o
case "upper":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boxplotaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boxplotaggregation.go
index 3dced44117..7d825ddb62 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boxplotaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/boxplotaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// BoxplotAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L57-L62
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L57-L62
type BoxplotAggregation struct {
// Compression Limits the maximum number of nodes used by the underlying TDigest algorithm
// to `20 * compression`, enabling control of memory usage and approximation
@@ -61,7 +61,7 @@ func (s *BoxplotAggregation) UnmarshalJSON(data []byte) error {
switch t {
case "compression":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/breaker.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/breaker.go
index 60a0c4a7b2..7ff12acae3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/breaker.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/breaker.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Breaker type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L434-L459
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L434-L459
type Breaker struct {
// EstimatedSize Estimated memory used for the operation.
EstimatedSize *string `json:"estimated_size,omitempty"`
@@ -77,7 +77,7 @@ func (s *Breaker) UnmarshalJSON(data []byte) error {
s.EstimatedSize = &o
case "estimated_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +104,7 @@ func (s *Breaker) UnmarshalJSON(data []byte) error {
s.LimitSize = &o
case "limit_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -119,7 +119,7 @@ func (s *Breaker) UnmarshalJSON(data []byte) error {
}
case "overhead":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -135,7 +135,7 @@ func (s *Breaker) UnmarshalJSON(data []byte) error {
}
case "tripped":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationaggregation.go
index 3a40cdc223..553afda7a8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,19 +26,16 @@ import (
"errors"
"fmt"
"io"
- "strconv"
)
// BucketCorrelationAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L129-L135
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L129-L135
type BucketCorrelationAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
// Function The correlation function to execute.
Function BucketCorrelationFunction `json:"function"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
}
func (s *BucketCorrelationAggregation) UnmarshalJSON(data []byte) error {
@@ -66,23 +63,6 @@ func (s *BucketCorrelationAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Function", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunction.go
index 78c0a5cade..22ce57e995 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunction.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// BucketCorrelationFunction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L137-L142
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L137-L142
type BucketCorrelationFunction struct {
// CountCorrelation The configuration to calculate a count correlation. This function is designed
// for determining the correlation of a term value and a given metric.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunctioncountcorrelation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunctioncountcorrelation.go
index 33c3f09b01..976d094c42 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunctioncountcorrelation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunctioncountcorrelation.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// BucketCorrelationFunctionCountCorrelation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L144-L147
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L144-L147
type BucketCorrelationFunctionCountCorrelation struct {
// Indicator The indicator with which to correlate the configured `bucket_path` values.
Indicator BucketCorrelationFunctionCountCorrelationIndicator `json:"indicator"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunctioncountcorrelationindicator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunctioncountcorrelationindicator.go
index 31eb40c8bd..035c0d0272 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunctioncountcorrelationindicator.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketcorrelationfunctioncountcorrelationindicator.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// BucketCorrelationFunctionCountCorrelationIndicator type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L149-L167
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L149-L167
type BucketCorrelationFunctionCountCorrelationIndicator struct {
// DocCount The total number of documents that initially created the expectations. It’s
// required to be greater
@@ -69,7 +69,7 @@ func (s *BucketCorrelationFunctionCountCorrelationIndicator) UnmarshalJSON(data
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketinfluencer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketinfluencer.go
index f1a3d552cd..076b68b31d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketinfluencer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketinfluencer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// BucketInfluencer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Bucket.ts#L80-L128
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Bucket.ts#L80-L128
type BucketInfluencer struct {
// AnomalyScore A normalized score between 0-100, which is calculated for each bucket
// influencer. This score might be updated as
@@ -83,7 +83,7 @@ func (s *BucketInfluencer) UnmarshalJSON(data []byte) error {
switch t {
case "anomaly_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -109,7 +109,7 @@ func (s *BucketInfluencer) UnmarshalJSON(data []byte) error {
}
case "initial_anomaly_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *BucketInfluencer) UnmarshalJSON(data []byte) error {
}
case "is_interim":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -144,7 +144,7 @@ func (s *BucketInfluencer) UnmarshalJSON(data []byte) error {
}
case "probability":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -160,7 +160,7 @@ func (s *BucketInfluencer) UnmarshalJSON(data []byte) error {
}
case "raw_anomaly_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketksaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketksaggregation.go
index 2f06e48750..7ec45a5dff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketksaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketksaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// BucketKsAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L94-L127
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L94-L127
type BucketKsAggregation struct {
// Alternative A list of string values indicating which K-S test alternative to calculate.
// The valid values
@@ -52,8 +52,6 @@ type BucketKsAggregation struct {
// one used equal percentiles of a
// metric to define the bucket end points.
Fractions []Float64 `json:"fractions,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
// SamplingMethod Indicates the sampling methodology when calculating the K-S test. Note, this
// is sampling of the returned values.
// This determines the cumulative distribution function (CDF) points used
@@ -94,23 +92,6 @@ func (s *BucketKsAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Fractions", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "sampling_method":
var tmp json.RawMessage
if err := dec.Decode(&tmp); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketmetricvalueaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketmetricvalueaggregate.go
index a084366c29..211b0d879c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketmetricvalueaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketmetricvalueaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// BucketMetricValueAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L233-L236
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L233-L236
type BucketMetricValueAggregate struct {
Keys []string `json:"keys"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketpathaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketpathaggregation.go
index 31b9fa0685..9ab7d09c2c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketpathaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketpathaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,17 +26,14 @@ import (
"errors"
"fmt"
"io"
- "strconv"
)
// BucketPathAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L31-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L31-L37
type BucketPathAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
}
func (s *BucketPathAggregation) UnmarshalJSON(data []byte) error {
@@ -59,23 +56,6 @@ func (s *BucketPathAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "BucketsPath", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsadjacencymatrixbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsadjacencymatrixbucket.go
index e25a43f860..347eb1009b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsadjacencymatrixbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsadjacencymatrixbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]AdjacencyMatrixBucket
// []AdjacencyMatrixBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsAdjacencyMatrixBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsAdjacencyMatrixBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsapikeyquerycontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsapikeyquerycontainer.go
index 65b76532fd..4514136856 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsapikeyquerycontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsapikeyquerycontainer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]ApiKeyQueryContainer
// []ApiKeyQueryContainer
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsApiKeyQueryContainer interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsApiKeyQueryContainer any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketscompositebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketscompositebucket.go
index 403bf925a3..52d144ee08 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketscompositebucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketscompositebucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]CompositeBucket
// []CompositeBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsCompositeBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsCompositeBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketscriptaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketscriptaggregation.go
index 0c10d23804..85949641b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketscriptaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketscriptaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// BucketScriptAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L80-L85
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L80-L85
type BucketScriptAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,8 +43,6 @@ type BucketScriptAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
// Script The script to run for this aggregation.
Script Script `json:"script,omitempty"`
}
@@ -86,23 +84,6 @@ func (s *BucketScriptAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "script":
message := json.RawMessage{}
if err := dec.Decode(&message); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsdatehistogrambucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsdatehistogrambucket.go
index 3512ad9fd7..995aa850fc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsdatehistogrambucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsdatehistogrambucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]DateHistogramBucket
// []DateHistogramBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsDateHistogramBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsDateHistogramBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsdoubletermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsdoubletermsbucket.go
index ebca3636c4..1d06f05e06 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsdoubletermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsdoubletermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]DoubleTermsBucket
// []DoubleTermsBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsDoubleTermsBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsDoubleTermsBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketselectoraggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketselectoraggregation.go
index 8e4caa5c76..e746cfa3d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketselectoraggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketselectoraggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// BucketSelectorAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L87-L92
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L87-L92
type BucketSelectorAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,8 +43,6 @@ type BucketSelectorAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
// Script The script to run for this aggregation.
Script Script `json:"script,omitempty"`
}
@@ -86,23 +84,6 @@ func (s *BucketSelectorAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "script":
message := json.RawMessage{}
if err := dec.Decode(&message); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsfiltersbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsfiltersbucket.go
index 187cb5e2db..44359c0d6c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsfiltersbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsfiltersbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]FiltersBucket
// []FiltersBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsFiltersBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsFiltersBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsfrequentitemsetsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsfrequentitemsetsbucket.go
index 91459365e5..9c9ea09562 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsfrequentitemsetsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsfrequentitemsetsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]FrequentItemSetsBucket
// []FrequentItemSetsBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsFrequentItemSetsBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsFrequentItemSetsBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeohashgridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeohashgridbucket.go
index ba7950e5d3..9427912e04 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeohashgridbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeohashgridbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]GeoHashGridBucket
// []GeoHashGridBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsGeoHashGridBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsGeoHashGridBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeohexgridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeohexgridbucket.go
index f6e131c0c8..4f7d2bbbac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeohexgridbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeohexgridbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]GeoHexGridBucket
// []GeoHexGridBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsGeoHexGridBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsGeoHexGridBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeotilegridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeotilegridbucket.go
index fc5edceacc..5819195543 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeotilegridbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsgeotilegridbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]GeoTileGridBucket
// []GeoTileGridBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsGeoTileGridBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsGeoTileGridBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketshistogrambucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketshistogrambucket.go
index f2e832516c..03834d47f1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketshistogrambucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketshistogrambucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]HistogramBucket
// []HistogramBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsHistogramBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsHistogramBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsipprefixbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsipprefixbucket.go
index edce3e4ed5..67ef7205ad 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsipprefixbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsipprefixbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]IpPrefixBucket
// []IpPrefixBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsIpPrefixBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsIpPrefixBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsiprangebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsiprangebucket.go
index 4225c35932..a9df6411b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsiprangebucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsiprangebucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]IpRangeBucket
// []IpRangeBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsIpRangeBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsIpRangeBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketslongraretermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketslongraretermsbucket.go
index 10b5957da8..c67d4e9b09 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketslongraretermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketslongraretermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]LongRareTermsBucket
// []LongRareTermsBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsLongRareTermsBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsLongRareTermsBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketslongtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketslongtermsbucket.go
index a17d804ba0..a9b9801aa3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketslongtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketslongtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]LongTermsBucket
// []LongTermsBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsLongTermsBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsLongTermsBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsmultitermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsmultitermsbucket.go
index f51cb0c4e3..8533226a74 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsmultitermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsmultitermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]MultiTermsBucket
// []MultiTermsBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsMultiTermsBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsMultiTermsBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsortaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsortaggregation.go
index 5ea0a9c7e7..63da5dde87 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsortaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsortaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,14 +33,12 @@ import (
// BucketSortAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L169-L190
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L169-L190
type BucketSortAggregation struct {
// From Buckets in positions prior to `from` will be truncated.
From *int `json:"from,omitempty"`
// GapPolicy The policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
// Size The number of buckets to return.
// Defaults to all buckets of the parent aggregation.
Size *int `json:"size,omitempty"`
@@ -65,7 +63,7 @@ func (s *BucketSortAggregation) UnmarshalJSON(data []byte) error {
case "from":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -84,26 +82,9 @@ func (s *BucketSortAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketspath.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketspath.go
index e92255611c..cab31e1435 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketspath.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketspath.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,5 +26,5 @@ package types
// []string
// map[string]string
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L53-L59
-type BucketsPath interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L53-L59
+type BucketsPath any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsquery.go
index 2606531b3d..5990efa082 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]Query
// []Query
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsQuery interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsQuery any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsrangebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsrangebucket.go
index 1a7455a70a..b46fc535b3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsrangebucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsrangebucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]RangeBucket
// []RangeBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsRangeBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsRangeBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketssignificantlongtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketssignificantlongtermsbucket.go
index da16c46e29..452fc6a9b2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketssignificantlongtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketssignificantlongtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]SignificantLongTermsBucket
// []SignificantLongTermsBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsSignificantLongTermsBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsSignificantLongTermsBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketssignificantstringtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketssignificantstringtermsbucket.go
index 7638dc0139..6a0d908872 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketssignificantstringtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketssignificantstringtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]SignificantStringTermsBucket
// []SignificantStringTermsBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsSignificantStringTermsBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsSignificantStringTermsBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsstringraretermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsstringraretermsbucket.go
index f2d07d7992..66b2b0efdc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsstringraretermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsstringraretermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]StringRareTermsBucket
// []StringRareTermsBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsStringRareTermsBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsStringRareTermsBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsstringtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsstringtermsbucket.go
index 4862ae801c..40d2eb47d4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsstringtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsstringtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]StringTermsBucket
// []StringTermsBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsStringTermsBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsStringTermsBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsummary.go
index 8c0e1e4315..9d60d29c96 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsummary.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// BucketSummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Bucket.ts#L31-L78
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Bucket.ts#L31-L78
type BucketSummary struct {
// AnomalyScore The maximum anomaly score, between 0-100, for any of the bucket influencers.
// This is an overall, rate-limited
@@ -85,7 +85,7 @@ func (s *BucketSummary) UnmarshalJSON(data []byte) error {
switch t {
case "anomaly_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -111,7 +111,7 @@ func (s *BucketSummary) UnmarshalJSON(data []byte) error {
}
case "event_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -126,7 +126,7 @@ func (s *BucketSummary) UnmarshalJSON(data []byte) error {
}
case "initial_anomaly_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -142,7 +142,7 @@ func (s *BucketSummary) UnmarshalJSON(data []byte) error {
}
case "is_interim":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsvariablewidthhistogrambucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsvariablewidthhistogrambucket.go
index 059da93994..4ed864b933 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsvariablewidthhistogrambucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsvariablewidthhistogrambucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// map[string]VariableWidthHistogramBucket
// []VariableWidthHistogramBucket
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsVariableWidthHistogramBucket interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsVariableWidthHistogramBucket any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsvoid.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsvoid.go
index ae3bb4682a..6071f7d8d3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsvoid.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bucketsvoid.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// BucketsVoid holds the union for the following types:
//
-// map[string]interface{}
-// []interface{}
+// map[string]any
+// []any
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L316-L325
-type BucketsVoid interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L316-L325
+type BucketsVoid any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/buildinformation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/buildinformation.go
index 94d0557de9..ad16b5c0c0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/buildinformation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/buildinformation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// BuildInformation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/info/types.ts#L24-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/info/types.ts#L24-L27
type BuildInformation struct {
Date DateTime `json:"date"`
Hash string `json:"hash"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkindexbyscrollfailure.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkindexbyscrollfailure.go
index 56a25aa4ad..b539ed55d4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkindexbyscrollfailure.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkindexbyscrollfailure.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// BulkIndexByScrollFailure type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Errors.ts#L58-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Errors.ts#L58-L64
type BulkIndexByScrollFailure struct {
Cause ErrorCause `json:"cause"`
Id string `json:"id"`
@@ -72,7 +72,7 @@ func (s *BulkIndexByScrollFailure) UnmarshalJSON(data []byte) error {
case "status":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkstats.go
index fd7caf7a3f..06812d34c4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bulkstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// BulkStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L68-L78
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L68-L78
type BulkStats struct {
AvgSize ByteSize `json:"avg_size,omitempty"`
AvgSizeInBytes int64 `json:"avg_size_in_bytes"`
@@ -65,7 +65,7 @@ func (s *BulkStats) UnmarshalJSON(data []byte) error {
}
case "avg_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -90,7 +90,7 @@ func (s *BulkStats) UnmarshalJSON(data []byte) error {
}
case "total_operations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -110,7 +110,7 @@ func (s *BulkStats) UnmarshalJSON(data []byte) error {
}
case "total_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bytenumberproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bytenumberproperty.go
index 260d41ed63..d19775f87c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bytenumberproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bytenumberproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// ByteNumberProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L164-L167
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L166-L169
type ByteNumberProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -79,7 +79,7 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +150,7 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -441,6 +441,12 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -452,7 +458,7 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -467,7 +473,7 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -481,7 +487,7 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +525,7 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -810,6 +816,12 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -868,7 +880,7 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -882,7 +894,7 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error {
}
case "time_series_dimension":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bytesize.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bytesize.go
index 722ba744c3..97d6189054 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bytesize.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bytesize.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// int64
// string
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L96-L97
-type ByteSize interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L96-L97
+type ByteSize any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bytesprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bytesprocessor.go
index 30e622dfdb..d138c501d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bytesprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/bytesprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// BytesProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L392-L408
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L392-L408
type BytesProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -100,7 +100,7 @@ func (s *BytesProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *BytesProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cachequeries.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cachequeries.go
index 618775bfb0..0ea8e196af 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cachequeries.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cachequeries.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CacheQueries type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L405-L407
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L405-L407
type CacheQueries struct {
Enabled bool `json:"enabled"`
}
@@ -52,7 +52,7 @@ func (s *CacheQueries) UnmarshalJSON(data []byte) error {
switch t {
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cachestats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cachestats.go
index 0361121e48..6874c9e7ce 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cachestats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cachestats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CacheStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/enrich/stats/types.ts#L37-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/stats/types.ts#L37-L43
type CacheStats struct {
Count int `json:"count"`
Evictions int `json:"evictions"`
@@ -57,7 +57,7 @@ func (s *CacheStats) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -73,7 +73,7 @@ func (s *CacheStats) UnmarshalJSON(data []byte) error {
case "evictions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -89,7 +89,7 @@ func (s *CacheStats) UnmarshalJSON(data []byte) error {
case "hits":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -105,7 +105,7 @@ func (s *CacheStats) UnmarshalJSON(data []byte) error {
case "misses":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/calendar.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/calendar.go
index 41b9db92b2..76ffe56c24 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/calendar.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/calendar.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Calendar type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_calendars/types.ts#L22-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_calendars/types.ts#L22-L29
type Calendar struct {
// CalendarId A string that uniquely identifies a calendar.
CalendarId string `json:"calendar_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/calendarevent.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/calendarevent.go
index b9ca6244d9..6c785849c4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/calendarevent.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/calendarevent.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CalendarEvent type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/CalendarEvent.ts#L23-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/CalendarEvent.ts#L23-L33
type CalendarEvent struct {
// CalendarId A string that uniquely identifies a calendar.
CalendarId *string `json:"calendar_id,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cardinalityaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cardinalityaggregate.go
index 131c03483c..c14de7f871 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cardinalityaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cardinalityaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CardinalityAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L138-L141
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L138-L141
type CardinalityAggregate struct {
Meta Metadata `json:"meta,omitempty"`
Value int64 `json:"value"`
@@ -58,7 +58,7 @@ func (s *CardinalityAggregate) UnmarshalJSON(data []byte) error {
}
case "value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cardinalityaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cardinalityaggregation.go
index 511baf36b5..3b3fef09c4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cardinalityaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cardinalityaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// CardinalityAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L87-L99
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L87-L99
type CardinalityAggregation struct {
// ExecutionHint Mechanism by which cardinality aggregations is run.
ExecutionHint *cardinalityexecutionmode.CardinalityExecutionMode `json:"execution_hint,omitempty"`
@@ -81,7 +81,7 @@ func (s *CardinalityAggregation) UnmarshalJSON(data []byte) error {
case "precision_threshold":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *CardinalityAggregation) UnmarshalJSON(data []byte) error {
}
case "rehash":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catanonalydetectorcolumns.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catanonalydetectorcolumns.go
index 5a3cc88b33..de3b60cf83 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catanonalydetectorcolumns.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catanonalydetectorcolumns.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,5 +26,5 @@ import (
// CatAnonalyDetectorColumns type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/_types/CatBase.ts#L402-L404
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L402-L404
type CatAnonalyDetectorColumns []catanomalydetectorcolumn.CatAnomalyDetectorColumn
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catcomponenttemplate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catcomponenttemplate.go
index c707a4504f..00c549dbba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catcomponenttemplate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catcomponenttemplate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CatComponentTemplate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/component_templates/types.ts#L20-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/component_templates/types.ts#L20-L28
type CatComponentTemplate struct {
AliasCount string `json:"alias_count"`
IncludedIn string `json:"included_in"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catdatafeedcolumns.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catdatafeedcolumns.go
index a274245eef..df215a7f54 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catdatafeedcolumns.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catdatafeedcolumns.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,5 +26,5 @@ import (
// CatDatafeedColumns type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/_types/CatBase.ts#L559-L559
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L559-L559
type CatDatafeedColumns []catdatafeedcolumn.CatDatafeedColumn
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catdfacolumns.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catdfacolumns.go
index ce9f1df45d..78ee6bd60a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catdfacolumns.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/catdfacolumns.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,5 +26,5 @@ import (
// CatDfaColumns type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/_types/CatBase.ts#L558-L558
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L558-L558
type CatDfaColumns []catdfacolumn.CatDfaColumn
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizationanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizationanalyzer.go
index 9bf426c42f..c8ed9dab94 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizationanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizationanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// CategorizationAnalyzerDefinition
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Analysis.ts#L181-L182
-type CategorizationAnalyzer interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Analysis.ts#L181-L182
+type CategorizationAnalyzer any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizationanalyzerdefinition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizationanalyzerdefinition.go
index ffadea9686..24e84c74b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizationanalyzerdefinition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizationanalyzerdefinition.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// CategorizationAnalyzerDefinition type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Analysis.ts#L184-L197
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Analysis.ts#L184-L197
type CategorizationAnalyzerDefinition struct {
// CharFilter One or more character filters. In addition to the built-in character filters,
// other plugins can provide more character filters. If this property is not
@@ -123,7 +123,7 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error {
}
s.CharFilter = append(s.CharFilter, *o)
default:
- o := new(interface{})
+ o := new(any)
if err := localDec.Decode(&o); err != nil {
return err
}
@@ -131,7 +131,7 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error {
}
default:
source := bytes.NewReader(rawMsg)
- o := new(interface{})
+ o := new(any)
if err := json.NewDecoder(source).Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "CharFilter", err)
}
@@ -402,12 +402,6 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error {
return err
}
s.Filter = append(s.Filter, *o)
- case "icu_tokenizer":
- o := NewIcuTokenizer()
- if err := localDec.Decode(&o); err != nil {
- return err
- }
- s.Filter = append(s.Filter, *o)
case "icu_collation":
o := NewIcuCollationTokenFilter()
if err := localDec.Decode(&o); err != nil {
@@ -445,7 +439,7 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error {
}
s.Filter = append(s.Filter, *o)
default:
- o := new(interface{})
+ o := new(any)
if err := localDec.Decode(&o); err != nil {
return err
}
@@ -453,7 +447,7 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error {
}
default:
source := bytes.NewReader(rawMsg)
- o := new(interface{})
+ o := new(any)
if err := json.NewDecoder(source).Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Filter", err)
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizetextaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizetextaggregation.go
index 5d0fbc6b31..3728d89d71 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizetextaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizetextaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CategorizeTextAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L1036-L1100
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1040-L1104
type CategorizeTextAggregation struct {
// CategorizationAnalyzer The categorization analyzer specifies how the text is analyzed and tokenized
// before being categorized.
@@ -68,11 +68,9 @@ type CategorizeTextAggregation struct {
// Smaller values use less memory and create fewer categories. Larger values
// will use more memory and
// create narrower categories. Max allowed value is 100.
- MaxUniqueTokens *int `json:"max_unique_tokens,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
+ MaxUniqueTokens *int `json:"max_unique_tokens,omitempty"`
// MinDocCount The minimum number of documents in a bucket to be returned to the results.
- MinDocCount *int `json:"min_doc_count,omitempty"`
- Name *string `json:"name,omitempty"`
+ MinDocCount *int `json:"min_doc_count,omitempty"`
// ShardMinDocCount The minimum number of documents in a bucket to be returned from the shard
// before merging.
ShardMinDocCount *int `json:"shard_min_doc_count,omitempty"`
@@ -136,7 +134,7 @@ func (s *CategorizeTextAggregation) UnmarshalJSON(data []byte) error {
case "max_matched_tokens":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -152,7 +150,7 @@ func (s *CategorizeTextAggregation) UnmarshalJSON(data []byte) error {
case "max_unique_tokens":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -166,14 +164,9 @@ func (s *CategorizeTextAggregation) UnmarshalJSON(data []byte) error {
s.MaxUniqueTokens = &f
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "min_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -187,21 +180,9 @@ func (s *CategorizeTextAggregation) UnmarshalJSON(data []byte) error {
s.MinDocCount = &f
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "shard_min_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -217,7 +198,7 @@ func (s *CategorizeTextAggregation) UnmarshalJSON(data []byte) error {
case "shard_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -233,7 +214,7 @@ func (s *CategorizeTextAggregation) UnmarshalJSON(data []byte) error {
case "similarity_threshold":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -249,7 +230,7 @@ func (s *CategorizeTextAggregation) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizetextanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizetextanalyzer.go
index da400c4d46..01e03fe9d1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizetextanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/categorizetextanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// CustomCategorizeTextAnalyzer
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L1102-L1105
-type CategorizeTextAnalyzer interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1106-L1109
+type CategorizeTextAnalyzer any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/category.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/category.go
index 6f95870a80..81dabf3f01 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/category.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/category.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Category type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Category.ts#L23-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Category.ts#L23-L49
type Category struct {
// CategoryId A unique identifier for the category. category_id is unique at the job level,
// even when per-partition categorization is enabled.
@@ -137,7 +137,7 @@ func (s *Category) UnmarshalJSON(data []byte) error {
s.Mlcategory = o
case "num_matches":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cattrainedmodelscolumns.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cattrainedmodelscolumns.go
index 47491298fd..39cb3bc508 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cattrainedmodelscolumns.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cattrainedmodelscolumns.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,5 +26,5 @@ import (
// CatTrainedModelsColumns type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/_types/CatBase.ts#L636-L638
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L636-L638
type CatTrainedModelsColumns []cattrainedmodelscolumn.CatTrainedModelsColumn
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cattransformcolumns.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cattransformcolumns.go
index 4b9886d7a2..7a224d8e2a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cattransformcolumns.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cattransformcolumns.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,5 +26,5 @@ import (
// CatTransformColumns type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/_types/CatBase.ts#L845-L845
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L845-L845
type CatTransformColumns []cattransformcolumn.CatTransformColumn
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ccr.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ccr.go
index cd360217bd..ab7a8fb655 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ccr.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ccr.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Ccr type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L334-L337
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L334-L337
type Ccr struct {
AutoFollowPatternsCount int `json:"auto_follow_patterns_count"`
Available bool `json:"available"`
@@ -56,7 +56,7 @@ func (s *Ccr) UnmarshalJSON(data []byte) error {
case "auto_follow_patterns_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *Ccr) UnmarshalJSON(data []byte) error {
}
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *Ccr) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *Ccr) UnmarshalJSON(data []byte) error {
case "follower_indices_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ccrshardstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ccrshardstats.go
index 704c0ccb5b..29f17afd24 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ccrshardstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ccrshardstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CcrShardStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/_types/FollowIndexStats.ts#L35-L69
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/_types/FollowIndexStats.ts#L35-L69
type CcrShardStats struct {
BytesRead int64 `json:"bytes_read"`
FailedReadRequests int64 `json:"failed_read_requests"`
@@ -84,7 +84,7 @@ func (s *CcrShardStats) UnmarshalJSON(data []byte) error {
switch t {
case "bytes_read":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -99,7 +99,7 @@ func (s *CcrShardStats) UnmarshalJSON(data []byte) error {
}
case "failed_read_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *CcrShardStats) UnmarshalJSON(data []byte) error {
}
case "failed_write_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -139,7 +139,7 @@ func (s *CcrShardStats) UnmarshalJSON(data []byte) error {
}
case "follower_global_checkpoint":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -186,7 +186,7 @@ func (s *CcrShardStats) UnmarshalJSON(data []byte) error {
}
case "leader_global_checkpoint":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -218,7 +218,7 @@ func (s *CcrShardStats) UnmarshalJSON(data []byte) error {
}
case "operations_read":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -233,7 +233,7 @@ func (s *CcrShardStats) UnmarshalJSON(data []byte) error {
}
case "operations_written":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -249,7 +249,7 @@ func (s *CcrShardStats) UnmarshalJSON(data []byte) error {
case "outstanding_read_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -265,7 +265,7 @@ func (s *CcrShardStats) UnmarshalJSON(data []byte) error {
case "outstanding_write_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -298,7 +298,7 @@ func (s *CcrShardStats) UnmarshalJSON(data []byte) error {
case "shard_id":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -313,7 +313,7 @@ func (s *CcrShardStats) UnmarshalJSON(data []byte) error {
}
case "successful_read_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -328,7 +328,7 @@ func (s *CcrShardStats) UnmarshalJSON(data []byte) error {
}
case "successful_write_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -383,7 +383,7 @@ func (s *CcrShardStats) UnmarshalJSON(data []byte) error {
}
case "write_buffer_operation_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/certificateinformation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/certificateinformation.go
index 83e9654d9f..a1750d9a65 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/certificateinformation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/certificateinformation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CertificateInformation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ssl/certificates/types.ts#L22-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ssl/certificates/types.ts#L22-L31
type CertificateInformation struct {
Alias string `json:"alias,omitempty"`
Expiry DateTime `json:"expiry"`
@@ -88,7 +88,7 @@ func (s *CertificateInformation) UnmarshalJSON(data []byte) error {
s.Format = o
case "has_private_key":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroup.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroup.go
index 508513d50e..faef7e3b87 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroup.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroup.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Cgroup type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L461-L474
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L461-L474
type Cgroup struct {
// Cpu Contains statistics about `cpu` control group for the node.
Cpu *CgroupCpu `json:"cpu,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroupcpu.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroupcpu.go
index fe88b8aef2..f010c50580 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroupcpu.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroupcpu.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CgroupCpu type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L487-L504
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L487-L504
type CgroupCpu struct {
// CfsPeriodMicros The period of time, in microseconds, for how regularly all tasks in the same
// cgroup as the Elasticsearch process should have their access to CPU resources
@@ -64,7 +64,7 @@ func (s *CgroupCpu) UnmarshalJSON(data []byte) error {
case "cfs_period_micros":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -80,7 +80,7 @@ func (s *CgroupCpu) UnmarshalJSON(data []byte) error {
case "cfs_quota_micros":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroupcpustat.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroupcpustat.go
index 0b6367431c..677f6fe5e8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroupcpustat.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroupcpustat.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CgroupCpuStat type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L506-L519
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L506-L519
type CgroupCpuStat struct {
// NumberOfElapsedPeriods The number of reporting periods (as specified by `cfs_period_micros`) that
// have elapsed.
@@ -60,7 +60,7 @@ func (s *CgroupCpuStat) UnmarshalJSON(data []byte) error {
switch t {
case "number_of_elapsed_periods":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -75,7 +75,7 @@ func (s *CgroupCpuStat) UnmarshalJSON(data []byte) error {
}
case "number_of_times_throttled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroupmemory.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroupmemory.go
index d9ee420640..97504b09a4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroupmemory.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cgroupmemory.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CgroupMemory type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L521-L537
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L521-L537
type CgroupMemory struct {
// ControlGroup The `memory` control group to which the Elasticsearch process belongs.
ControlGroup *string `json:"control_group,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chaininput.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chaininput.go
index d85c82f03f..9116a89014 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chaininput.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chaininput.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ChainInput type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L35-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L35-L37
type ChainInput struct {
Inputs []map[string]WatcherInput `json:"inputs"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilter.go
index ef3cad37c6..fee369c6d9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// CharFilterDefinition
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/char_filters.ts#L28-L30
-type CharFilter interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/char_filters.ts#L28-L30
+type CharFilter any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilterdefinition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilterdefinition.go
index 18cb10236b..d8a3ec8800 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilterdefinition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilterdefinition.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -28,5 +28,5 @@ package types
// IcuNormalizationCharFilter
// KuromojiIterationMarkCharFilter
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/char_filters.ts#L32-L41
-type CharFilterDefinition interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/char_filters.ts#L32-L41
+type CharFilterDefinition any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilterdetail.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilterdetail.go
index a97f677abb..49c88a91b3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilterdetail.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfilterdetail.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CharFilterDetail type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/analyze/types.ts#L46-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/types.ts#L46-L49
type CharFilterDetail struct {
FilteredText []string `json:"filtered_text"`
Name string `json:"name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfiltertypes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfiltertypes.go
index 5e1b0f58eb..a0d15b02fe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfiltertypes.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/charfiltertypes.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// CharFilterTypes type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L228-L261
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L228-L261
type CharFilterTypes struct {
// AnalyzerTypes Contains statistics about analyzer types used in selected nodes.
AnalyzerTypes []FieldTypes `json:"analyzer_types"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chargrouptokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chargrouptokenizer.go
index 787a9ec231..09ca5fad8d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chargrouptokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chargrouptokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CharGroupTokenizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L56-L60
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L56-L60
type CharGroupTokenizer struct {
MaxTokenLength *int `json:"max_token_length,omitempty"`
TokenizeOnChars []string `json:"tokenize_on_chars"`
@@ -56,7 +56,7 @@ func (s *CharGroupTokenizer) UnmarshalJSON(data []byte) error {
case "max_token_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/checkpointing.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/checkpointing.go
index 68834ffc69..519554455f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/checkpointing.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/checkpointing.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Checkpointing type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/get_transform_stats/types.ts#L85-L92
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform_stats/types.ts#L85-L92
type Checkpointing struct {
ChangesLastDetectedAt *int64 `json:"changes_last_detected_at,omitempty"`
ChangesLastDetectedAtDateTime DateTime `json:"changes_last_detected_at_date_time,omitempty"`
@@ -57,7 +57,7 @@ func (s *Checkpointing) UnmarshalJSON(data []byte) error {
switch t {
case "changes_last_detected_at":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -82,7 +82,7 @@ func (s *Checkpointing) UnmarshalJSON(data []byte) error {
}
case "last_search_time":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -102,7 +102,7 @@ func (s *Checkpointing) UnmarshalJSON(data []byte) error {
}
case "operations_behind":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/checkpointstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/checkpointstats.go
index e8c88963b7..d02666b8d1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/checkpointstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/checkpointstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CheckpointStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/get_transform_stats/types.ts#L76-L83
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform_stats/types.ts#L76-L83
type CheckpointStats struct {
Checkpoint int64 `json:"checkpoint"`
CheckpointProgress *TransformProgress `json:"checkpoint_progress,omitempty"`
@@ -57,7 +57,7 @@ func (s *CheckpointStats) UnmarshalJSON(data []byte) error {
switch t {
case "checkpoint":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/childrenaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/childrenaggregate.go
index b269e3736f..ad7c05c262 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/childrenaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/childrenaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// ChildrenAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L776-L777
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L776-L777
type ChildrenAggregate struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *ChildrenAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +519,7 @@ func (s *ChildrenAggregate) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -569,7 +569,7 @@ func (s *ChildrenAggregate) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -579,7 +579,7 @@ func (s *ChildrenAggregate) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -596,7 +596,7 @@ func (s *ChildrenAggregate) UnmarshalJSON(data []byte) error {
func (s ChildrenAggregate) MarshalJSON() ([]byte, error) {
type opt ChildrenAggregate
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/childrenaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/childrenaggregation.go
index 5f4adddbbd..4f00aebf0b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/childrenaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/childrenaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,15 +26,12 @@ import (
"errors"
"fmt"
"io"
- "strconv"
)
// ChildrenAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L109-L114
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L113-L118
type ChildrenAggregation struct {
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
// Type The child type that should be selected.
Type *string `json:"type,omitempty"`
}
@@ -54,23 +51,6 @@ func (s *ChildrenAggregation) UnmarshalJSON(data []byte) error {
switch t {
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "type":
if err := dec.Decode(&s.Type); err != nil {
return fmt.Errorf("%s | %w", "Type", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chisquareheuristic.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chisquareheuristic.go
index 76290ed201..579d5f25b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chisquareheuristic.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chisquareheuristic.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ChiSquareHeuristic type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L733-L742
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L737-L746
type ChiSquareHeuristic struct {
// BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a
// different set of documents that you want to compare to.
@@ -57,7 +57,7 @@ func (s *ChiSquareHeuristic) UnmarshalJSON(data []byte) error {
switch t {
case "background_is_superset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *ChiSquareHeuristic) UnmarshalJSON(data []byte) error {
}
case "include_negatives":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chunkingconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chunkingconfig.go
index f09a310442..fb0b38a1b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chunkingconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/chunkingconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// ChunkingConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Datafeed.ts#L239-L252
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L238-L251
type ChunkingConfig struct {
// Mode If the mode is `auto`, the chunk size is dynamically calculated;
// this is the recommended value when the datafeed does not use aggregations.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/circleprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/circleprocessor.go
index 185b61dfe5..8587104ab4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/circleprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/circleprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// CircleProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L410-L433
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L410-L433
type CircleProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -93,7 +93,7 @@ func (s *CircleProcessor) UnmarshalJSON(data []byte) error {
s.Description = &o
case "error_distance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -126,7 +126,7 @@ func (s *CircleProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -140,7 +140,7 @@ func (s *CircleProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/classificationinferenceoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/classificationinferenceoptions.go
index 27e8dacd4b..60d8586ed8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/classificationinferenceoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/classificationinferenceoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClassificationInferenceOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L93-L108
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L93-L108
type ClassificationInferenceOptions struct {
// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.
NumTopClasses *int `json:"num_top_classes,omitempty"`
@@ -66,7 +66,7 @@ func (s *ClassificationInferenceOptions) UnmarshalJSON(data []byte) error {
case "num_top_classes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -82,7 +82,7 @@ func (s *ClassificationInferenceOptions) UnmarshalJSON(data []byte) error {
case "num_top_feature_importance_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cleanuprepositoryresults.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cleanuprepositoryresults.go
index b61a7fbdfd..9b9d17e368 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cleanuprepositoryresults.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cleanuprepositoryresults.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CleanupRepositoryResults type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L29-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L29-L34
type CleanupRepositoryResults struct {
// DeletedBlobs Number of binary large objects (blobs) removed during cleanup.
DeletedBlobs int64 `json:"deleted_blobs"`
@@ -55,7 +55,7 @@ func (s *CleanupRepositoryResults) UnmarshalJSON(data []byte) error {
switch t {
case "deleted_blobs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *CleanupRepositoryResults) UnmarshalJSON(data []byte) error {
}
case "deleted_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/client.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/client.go
index 86c257cf6b..bcd1732857 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/client.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/client.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Client type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L649-L696
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L649-L696
type Client struct {
// Agent Reported agent for the HTTP client.
// If unavailable, this property is not included in the response.
@@ -87,7 +87,7 @@ func (s *Client) UnmarshalJSON(data []byte) error {
s.Agent = &o
case "closed_time_millis":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -102,7 +102,7 @@ func (s *Client) UnmarshalJSON(data []byte) error {
}
case "id":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +117,7 @@ func (s *Client) UnmarshalJSON(data []byte) error {
}
case "last_request_time_millis":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -156,7 +156,7 @@ func (s *Client) UnmarshalJSON(data []byte) error {
s.LocalAddress = &o
case "opened_time_millis":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -183,7 +183,7 @@ func (s *Client) UnmarshalJSON(data []byte) error {
s.RemoteAddress = &o
case "request_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -198,7 +198,7 @@ func (s *Client) UnmarshalJSON(data []byte) error {
}
case "request_size_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/closeindexresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/closeindexresult.go
index a6e4289642..476f961562 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/closeindexresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/closeindexresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CloseIndexResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/close/CloseIndexResponse.ts#L32-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/close/CloseIndexResponse.ts#L32-L35
type CloseIndexResult struct {
Closed bool `json:"closed"`
Shards map[string]CloseShardResult `json:"shards,omitempty"`
@@ -53,7 +53,7 @@ func (s *CloseIndexResult) UnmarshalJSON(data []byte) error {
switch t {
case "closed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/closeshardresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/closeshardresult.go
index e0633658df..8751bf96b9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/closeshardresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/closeshardresult.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// CloseShardResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/close/CloseIndexResponse.ts#L37-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/close/CloseIndexResponse.ts#L37-L39
type CloseShardResult struct {
Failures []ShardFailure `json:"failures"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterappliedstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterappliedstats.go
index 5db9654d23..d88a2d242b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterappliedstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterappliedstats.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ClusterAppliedStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L221-L223
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L221-L223
type ClusterAppliedStats struct {
Recordings []Recording `json:"recordings,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clustercomponenttemplate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clustercomponenttemplate.go
index f38601934a..2d2d3c68f9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clustercomponenttemplate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clustercomponenttemplate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ClusterComponentTemplate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/_types/ComponentTemplate.ts#L30-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/_types/ComponentTemplate.ts#L30-L33
type ClusterComponentTemplate struct {
ComponentTemplate ComponentTemplateNode `json:"component_template"`
Name string `json:"name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterdetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterdetails.go
index 8cd0fc0a3d..9d5d835e9b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterdetails.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterdetails.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// ClusterDetails type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L45-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L45-L52
type ClusterDetails struct {
Failures []ShardFailure `json:"failures,omitempty"`
Indices string `json:"indices"`
@@ -86,7 +86,7 @@ func (s *ClusterDetails) UnmarshalJSON(data []byte) error {
}
case "timed_out":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterfilesystem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterfilesystem.go
index 123c67ab59..39a983202d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterfilesystem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterfilesystem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterFileSystem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L34-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L34-L49
type ClusterFileSystem struct {
// AvailableInBytes Total number of bytes available to JVM in file stores across all selected
// nodes.
@@ -62,7 +62,7 @@ func (s *ClusterFileSystem) UnmarshalJSON(data []byte) error {
switch t {
case "available_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -77,7 +77,7 @@ func (s *ClusterFileSystem) UnmarshalJSON(data []byte) error {
}
case "free_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *ClusterFileSystem) UnmarshalJSON(data []byte) error {
}
case "total_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindexingpressure.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindexingpressure.go
index 34cef850c9..81760af791 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindexingpressure.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindexingpressure.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ClusterIndexingPressure type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L570-L572
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L570-L572
type ClusterIndexingPressure struct {
Memory ClusterPressureMemory `json:"memory"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindices.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindices.go
index 7eaa164330..1cbc1e1562 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindices.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindices.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterIndices type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L74-L107
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L74-L107
type ClusterIndices struct {
// Analysis Contains statistics about analyzers and analyzer components used in selected
// nodes.
@@ -85,7 +85,7 @@ func (s *ClusterIndices) UnmarshalJSON(data []byte) error {
}
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindicesshards.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindicesshards.go
index 7b1f4eaa0c..6929758e01 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindicesshards.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindicesshards.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterIndicesShards type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L60-L72
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L60-L72
type ClusterIndicesShards struct {
// Index Contains statistics about shards assigned to selected nodes.
Index *ClusterIndicesShardsIndex `json:"index,omitempty"`
@@ -64,7 +64,7 @@ func (s *ClusterIndicesShards) UnmarshalJSON(data []byte) error {
}
case "primaries":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -80,7 +80,7 @@ func (s *ClusterIndicesShards) UnmarshalJSON(data []byte) error {
}
case "replication":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *ClusterIndicesShards) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindicesshardsindex.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindicesshardsindex.go
index e12ed1fd92..c316e10b02 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindicesshardsindex.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterindicesshardsindex.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ClusterIndicesShardsIndex type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L51-L58
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L51-L58
type ClusterIndicesShardsIndex struct {
// Primaries Contains statistics about the number of primary shards assigned to selected
// nodes.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterinfo.go
index 67a488c50d..e6ad0f3f2d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterinfo.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ClusterInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/allocation_explain/types.ts#L48-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L48-L54
type ClusterInfo struct {
Nodes map[string]NodeDiskUsage `json:"nodes"`
ReservedSizes []ReservedSize `json:"reserved_sizes"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterinfotargets.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterinfotargets.go
index 3676d1dfa9..8fa0c8fe1f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterinfotargets.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterinfotargets.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,5 +26,5 @@ import (
// ClusterInfoTargets type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L386-L386
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L386-L386
type ClusterInfoTargets []clusterinfotarget.ClusterInfoTarget
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteringest.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteringest.go
index 3c8597a3aa..5666beb62e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteringest.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteringest.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterIngest type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L270-L273
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L270-L273
type ClusterIngest struct {
NumberOfPipelines int `json:"number_of_pipelines"`
ProcessorStats map[string]ClusterProcessor `json:"processor_stats"`
@@ -54,7 +54,7 @@ func (s *ClusterIngest) UnmarshalJSON(data []byte) error {
case "number_of_pipelines":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterjvm.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterjvm.go
index 9dc130dee8..215ee17772 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterjvm.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterjvm.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterJvm type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L275-L292
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L275-L292
type ClusterJvm struct {
// MaxUptimeInMillis Uptime duration, in milliseconds, since JVM last started.
MaxUptimeInMillis int64 `json:"max_uptime_in_millis"`
@@ -69,7 +69,7 @@ func (s *ClusterJvm) UnmarshalJSON(data []byte) error {
}
case "threads":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterjvmmemory.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterjvmmemory.go
index 00bbb3ddca..dbcaa1b42f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterjvmmemory.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterjvmmemory.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterJvmMemory type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L294-L303
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L294-L303
type ClusterJvmMemory struct {
// HeapMaxInBytes Maximum amount of memory, in bytes, available for use by the heap across all
// selected nodes.
@@ -56,7 +56,7 @@ func (s *ClusterJvmMemory) UnmarshalJSON(data []byte) error {
switch t {
case "heap_max_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *ClusterJvmMemory) UnmarshalJSON(data []byte) error {
}
case "heap_used_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterjvmversion.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterjvmversion.go
index 7762adf51d..4c0a223e06 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterjvmversion.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterjvmversion.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterJvmVersion type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L305-L335
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L305-L335
type ClusterJvmVersion struct {
// BundledJdk Always `true`. All distributions come with a bundled Java Development Kit
// (JDK).
@@ -68,7 +68,7 @@ func (s *ClusterJvmVersion) UnmarshalJSON(data []byte) error {
switch t {
case "bundled_jdk":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *ClusterJvmVersion) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -98,7 +98,7 @@ func (s *ClusterJvmVersion) UnmarshalJSON(data []byte) error {
}
case "using_bundled_jdk":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternetworktypes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternetworktypes.go
index bb7a56beae..58a00a1297 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternetworktypes.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternetworktypes.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ClusterNetworkTypes type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L337-L346
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L337-L346
type ClusterNetworkTypes struct {
// HttpTypes Contains statistics about the HTTP network types used by selected nodes.
HttpTypes map[string]int `json:"http_types"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternode.go
index 53ef72ad8f..1b10f2c829 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ClusterNode type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/ClusterNode.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/ClusterNode.ts#L22-L24
type ClusterNode struct {
Name string `json:"name"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternodecount.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternodecount.go
index 6f3e1ac92d..d1cb2870c4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternodecount.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternodecount.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterNodeCount type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L348-L367
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L348-L367
type ClusterNodeCount struct {
CoordinatingOnly int `json:"coordinating_only"`
Data int `json:"data"`
@@ -66,7 +66,7 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error {
case "coordinating_only":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -82,7 +82,7 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error {
case "data":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -98,7 +98,7 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error {
case "data_cold":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error {
case "data_content":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -130,7 +130,7 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error {
case "data_frozen":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -146,7 +146,7 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error {
case "data_hot":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -162,7 +162,7 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error {
case "data_warm":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -178,7 +178,7 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error {
case "ingest":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -194,7 +194,7 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error {
case "master":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -210,7 +210,7 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error {
case "ml":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -226,7 +226,7 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error {
case "remote_cluster_client":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -242,7 +242,7 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error {
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -258,7 +258,7 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error {
case "transform":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -274,7 +274,7 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error {
case "voting_only":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternodes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternodes.go
index 468d7d9b32..2134a539a0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternodes.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusternodes.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ClusterNodes type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L369-L402
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L369-L402
type ClusterNodes struct {
// Count Contains counts for nodes selected by the request’s node filters.
Count ClusterNodeCount `json:"count"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystem.go
index a4321a5afe..df0d1ae6cf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterOperatingSystem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L415-L442
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L415-L442
type ClusterOperatingSystem struct {
// AllocatedProcessors Number of processors used to calculate thread pool size across all selected
// nodes.
@@ -69,7 +69,7 @@ func (s *ClusterOperatingSystem) UnmarshalJSON(data []byte) error {
case "allocated_processors":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -90,7 +90,7 @@ func (s *ClusterOperatingSystem) UnmarshalJSON(data []byte) error {
case "available_processors":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystemarchitecture.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystemarchitecture.go
index de0980446a..0873513803 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystemarchitecture.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystemarchitecture.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterOperatingSystemArchitecture type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L404-L413
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L404-L413
type ClusterOperatingSystemArchitecture struct {
// Arch Name of an architecture used by one or more selected nodes.
Arch string `json:"arch"`
@@ -68,7 +68,7 @@ func (s *ClusterOperatingSystemArchitecture) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystemname.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystemname.go
index c969d646ae..5a71fb2103 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystemname.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystemname.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterOperatingSystemName type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L444-L453
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L444-L453
type ClusterOperatingSystemName struct {
// Count Number of selected nodes using the operating system.
Count int `json:"count"`
@@ -56,7 +56,7 @@ func (s *ClusterOperatingSystemName) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystemprettyname.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystemprettyname.go
index 5633232be3..3945c7c2f4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystemprettyname.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusteroperatingsystemprettyname.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterOperatingSystemPrettyName type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L455-L464
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L455-L464
type ClusterOperatingSystemPrettyName struct {
// Count Number of selected nodes using the operating system.
Count int `json:"count"`
@@ -57,7 +57,7 @@ func (s *ClusterOperatingSystemPrettyName) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterpressurememory.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterpressurememory.go
index f9fd864e2d..007b9b8427 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterpressurememory.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterpressurememory.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterPressureMemory type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L574-L578
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L574-L578
type ClusterPressureMemory struct {
Current IndexingPressureMemorySummary `json:"current"`
LimitInBytes int64 `json:"limit_in_bytes"`
@@ -59,7 +59,7 @@ func (s *ClusterPressureMemory) UnmarshalJSON(data []byte) error {
}
case "limit_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocess.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocess.go
index b1aced53ba..89ca93b7bb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocess.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocess.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ClusterProcess type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L466-L475
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L466-L475
type ClusterProcess struct {
// Cpu Contains statistics about CPU used by selected nodes.
Cpu ClusterProcessCpu `json:"cpu"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocesscpu.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocesscpu.go
index 38794c5a57..b0ae8df250 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocesscpu.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocesscpu.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterProcessCpu type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L477-L483
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L477-L483
type ClusterProcessCpu struct {
// Percent Percentage of CPU used across all selected nodes.
// Returns `-1` if not supported.
@@ -55,7 +55,7 @@ func (s *ClusterProcessCpu) UnmarshalJSON(data []byte) error {
case "percent":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocessopenfiledescriptors.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocessopenfiledescriptors.go
index dd3c359b95..ad8117d69d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocessopenfiledescriptors.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocessopenfiledescriptors.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterProcessOpenFileDescriptors type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L485-L501
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L485-L501
type ClusterProcessOpenFileDescriptors struct {
// Avg Average number of concurrently open file descriptors.
// Returns `-1` if not supported.
@@ -62,7 +62,7 @@ func (s *ClusterProcessOpenFileDescriptors) UnmarshalJSON(data []byte) error {
switch t {
case "avg":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -77,7 +77,7 @@ func (s *ClusterProcessOpenFileDescriptors) UnmarshalJSON(data []byte) error {
}
case "max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *ClusterProcessOpenFileDescriptors) UnmarshalJSON(data []byte) error {
}
case "min":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocessor.go
index 037d9f983a..cdd87e35fd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L503-L509
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L503-L509
type ClusterProcessor struct {
Count int64 `json:"count"`
Current int64 `json:"current"`
@@ -56,7 +56,7 @@ func (s *ClusterProcessor) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *ClusterProcessor) UnmarshalJSON(data []byte) error {
}
case "current":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -86,7 +86,7 @@ func (s *ClusterProcessor) UnmarshalJSON(data []byte) error {
}
case "failed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterremoteinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterremoteinfo.go
index d93a8008da..83389d35a4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterremoteinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterremoteinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// ClusterRemoteSniffInfo
// ClusterRemoteProxyInfo
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L28-L29
-type ClusterRemoteInfo interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L29-L30
+type ClusterRemoteInfo any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterremoteproxyinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterremoteproxyinfo.go
index eebbac49a0..5061b841fd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterremoteproxyinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterremoteproxyinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterRemoteProxyInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L41-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L42-L51
type ClusterRemoteProxyInfo struct {
Connected bool `json:"connected"`
InitialConnectTimeout Duration `json:"initial_connect_timeout"`
@@ -59,7 +59,7 @@ func (s *ClusterRemoteProxyInfo) UnmarshalJSON(data []byte) error {
switch t {
case "connected":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -79,7 +79,7 @@ func (s *ClusterRemoteProxyInfo) UnmarshalJSON(data []byte) error {
case "max_proxy_socket_connections":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *ClusterRemoteProxyInfo) UnmarshalJSON(data []byte) error {
case "num_proxy_sockets_connected":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -139,7 +139,7 @@ func (s *ClusterRemoteProxyInfo) UnmarshalJSON(data []byte) error {
s.ServerName = o
case "skip_unavailable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterremotesniffinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterremotesniffinfo.go
index 339cf20cc1..2dbe187a2d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterremotesniffinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterremotesniffinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterRemoteSniffInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L31-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L32-L40
type ClusterRemoteSniffInfo struct {
Connected bool `json:"connected"`
InitialConnectTimeout Duration `json:"initial_connect_timeout"`
@@ -58,7 +58,7 @@ func (s *ClusterRemoteSniffInfo) UnmarshalJSON(data []byte) error {
switch t {
case "connected":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -78,7 +78,7 @@ func (s *ClusterRemoteSniffInfo) UnmarshalJSON(data []byte) error {
case "max_connections_per_cluster":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -98,7 +98,7 @@ func (s *ClusterRemoteSniffInfo) UnmarshalJSON(data []byte) error {
}
case "num_nodes_connected":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -118,7 +118,7 @@ func (s *ClusterRemoteSniffInfo) UnmarshalJSON(data []byte) error {
}
case "skip_unavailable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterruntimefieldtypes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterruntimefieldtypes.go
index bb0a660f37..ea9aea4908 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterruntimefieldtypes.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterruntimefieldtypes.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterRuntimeFieldTypes type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L169-L226
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L169-L226
type ClusterRuntimeFieldTypes struct {
// CharsMax Maximum number of characters for a single runtime field script.
CharsMax int `json:"chars_max"`
@@ -85,7 +85,7 @@ func (s *ClusterRuntimeFieldTypes) UnmarshalJSON(data []byte) error {
case "chars_max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -101,7 +101,7 @@ func (s *ClusterRuntimeFieldTypes) UnmarshalJSON(data []byte) error {
case "chars_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +117,7 @@ func (s *ClusterRuntimeFieldTypes) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -133,7 +133,7 @@ func (s *ClusterRuntimeFieldTypes) UnmarshalJSON(data []byte) error {
case "doc_max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -149,7 +149,7 @@ func (s *ClusterRuntimeFieldTypes) UnmarshalJSON(data []byte) error {
case "doc_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -165,7 +165,7 @@ func (s *ClusterRuntimeFieldTypes) UnmarshalJSON(data []byte) error {
case "index_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -186,7 +186,7 @@ func (s *ClusterRuntimeFieldTypes) UnmarshalJSON(data []byte) error {
case "lines_max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -202,7 +202,7 @@ func (s *ClusterRuntimeFieldTypes) UnmarshalJSON(data []byte) error {
case "lines_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -223,7 +223,7 @@ func (s *ClusterRuntimeFieldTypes) UnmarshalJSON(data []byte) error {
case "scriptless_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -239,7 +239,7 @@ func (s *ClusterRuntimeFieldTypes) UnmarshalJSON(data []byte) error {
case "shadowed_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -255,7 +255,7 @@ func (s *ClusterRuntimeFieldTypes) UnmarshalJSON(data []byte) error {
case "source_max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -271,7 +271,7 @@ func (s *ClusterRuntimeFieldTypes) UnmarshalJSON(data []byte) error {
case "source_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clustershardmetrics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clustershardmetrics.go
index 8e3375e474..23a7efb67b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clustershardmetrics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clustershardmetrics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterShardMetrics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L511-L524
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L511-L524
type ClusterShardMetrics struct {
// Avg Mean number of shards in an index, counting only shards assigned to selected
// nodes.
@@ -60,7 +60,7 @@ func (s *ClusterShardMetrics) UnmarshalJSON(data []byte) error {
switch t {
case "avg":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -76,7 +76,7 @@ func (s *ClusterShardMetrics) UnmarshalJSON(data []byte) error {
}
case "max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *ClusterShardMetrics) UnmarshalJSON(data []byte) error {
}
case "min":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterstatequeue.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterstatequeue.go
index 1e66128132..0313749904 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterstatequeue.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterstatequeue.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterStateQueue type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L248-L261
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L248-L261
type ClusterStateQueue struct {
// Committed Number of committed cluster states in queue.
Committed *int64 `json:"committed,omitempty"`
@@ -57,7 +57,7 @@ func (s *ClusterStateQueue) UnmarshalJSON(data []byte) error {
switch t {
case "committed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *ClusterStateQueue) UnmarshalJSON(data []byte) error {
}
case "pending":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *ClusterStateQueue) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterstateupdate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterstateupdate.go
index 0f96d16de4..0695ebfb35 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterstateupdate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterstateupdate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterStateUpdate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L278-L343
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L278-L343
type ClusterStateUpdate struct {
// CommitTime The cumulative amount of time spent waiting for a successful cluster state
// update to commit, which measures the time from the start of each publication
@@ -161,7 +161,7 @@ func (s *ClusterStateUpdate) UnmarshalJSON(data []byte) error {
}
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterstatistics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterstatistics.go
index 8cc23bb9dc..dc97fb54bd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterstatistics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/clusterstatistics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ClusterStatistics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L27-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L27-L35
type ClusterStatistics struct {
Details map[string]ClusterDetails `json:"details,omitempty"`
Failed int `json:"failed"`
@@ -67,7 +67,7 @@ func (s *ClusterStatistics) UnmarshalJSON(data []byte) error {
case "failed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *ClusterStatistics) UnmarshalJSON(data []byte) error {
case "partial":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -99,7 +99,7 @@ func (s *ClusterStatistics) UnmarshalJSON(data []byte) error {
case "running":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -115,7 +115,7 @@ func (s *ClusterStatistics) UnmarshalJSON(data []byte) error {
case "skipped":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -131,7 +131,7 @@ func (s *ClusterStatistics) UnmarshalJSON(data []byte) error {
case "successful":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -147,7 +147,7 @@ func (s *ClusterStatistics) UnmarshalJSON(data []byte) error {
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/collector.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/collector.go
index 0b0e1ee4e0..ebb3243142 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/collector.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/collector.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Collector type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/profile.ts#L86-L91
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L86-L91
type Collector struct {
Children []Collector `json:"children,omitempty"`
Name string `json:"name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/column.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/column.go
index ed192884ff..b83b8242b8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/column.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/column.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Column type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/sql/types.ts#L23-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/sql/types.ts#L23-L26
type Column struct {
Name string `json:"name"`
Type string `json:"type"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/combinedfieldsquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/combinedfieldsquery.go
index f825d6b983..6229d320ad 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/combinedfieldsquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/combinedfieldsquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// CombinedFieldsQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/abstractions.ts#L445-L479
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/abstractions.ts#L445-L479
type CombinedFieldsQuery struct {
// AutoGenerateSynonymsPhraseQuery If true, match phrase queries are automatically created for multi-term
// synonyms.
@@ -78,7 +78,7 @@ func (s *CombinedFieldsQuery) UnmarshalJSON(data []byte) error {
switch t {
case "auto_generate_synonyms_phrase_query":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *CombinedFieldsQuery) UnmarshalJSON(data []byte) error {
}
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/command.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/command.go
index 1fa7a755ff..e82b9d82e8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/command.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/command.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Command type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/reroute/types.ts#L22-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L22-L43
type Command struct {
// AllocateEmptyPrimary Allocate an empty primary shard to a node. Accepts the index and shard for
// index name and shard number, and node to allocate the shard to. Using this
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandallocateprimaryaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandallocateprimaryaction.go
index c9240a814d..934a3a489c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandallocateprimaryaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandallocateprimaryaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CommandAllocatePrimaryAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/reroute/types.ts#L78-L84
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L78-L84
type CommandAllocatePrimaryAction struct {
// AcceptDataLoss If a node which has a copy of the data rejoins the cluster later on, that
// data will be deleted. To ensure that these implications are well-understood,
@@ -58,7 +58,7 @@ func (s *CommandAllocatePrimaryAction) UnmarshalJSON(data []byte) error {
switch t {
case "accept_data_loss":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -90,7 +90,7 @@ func (s *CommandAllocatePrimaryAction) UnmarshalJSON(data []byte) error {
case "shard":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandallocatereplicaaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandallocatereplicaaction.go
index 6530c8eea7..ac091601f9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandallocatereplicaaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandallocatereplicaaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CommandAllocateReplicaAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/reroute/types.ts#L69-L76
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L69-L76
type CommandAllocateReplicaAction struct {
Index string `json:"index"`
Node string `json:"node"`
@@ -72,7 +72,7 @@ func (s *CommandAllocateReplicaAction) UnmarshalJSON(data []byte) error {
case "shard":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandcancelaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandcancelaction.go
index 4f21a269b2..e9285ea485 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandcancelaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandcancelaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CommandCancelAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/reroute/types.ts#L45-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L45-L50
type CommandCancelAction struct {
AllowPrimary *bool `json:"allow_primary,omitempty"`
Index string `json:"index"`
@@ -55,7 +55,7 @@ func (s *CommandCancelAction) UnmarshalJSON(data []byte) error {
switch t {
case "allow_primary":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *CommandCancelAction) UnmarshalJSON(data []byte) error {
case "shard":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandmoveaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandmoveaction.go
index e0e716d0b9..58c4a59b34 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandmoveaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commandmoveaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CommandMoveAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/reroute/types.ts#L60-L67
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L60-L67
type CommandMoveAction struct {
// FromNode The node to move the shard from
FromNode string `json:"from_node"`
@@ -75,7 +75,7 @@ func (s *CommandMoveAction) UnmarshalJSON(data []byte) error {
case "shard":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commoncatqueryparameters.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commoncatqueryparameters.go
new file mode 100644
index 0000000000..126d380e69
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commoncatqueryparameters.go
@@ -0,0 +1,175 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Code generated from the elasticsearch-specification DO NOT EDIT.
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
+
+package types
+
+import (
+ "bytes"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "strconv"
+)
+
+// CommonCatQueryParameters type.
+//
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/behaviors.ts#L86-L132
+type CommonCatQueryParameters struct {
+ // Format Specifies the format to return the columnar data in, can be set to
+ // `text`, `json`, `cbor`, `yaml`, or `smile`.
+ Format *string `json:"format,omitempty"`
+ // H List of columns to appear in the response. Supports simple wildcards.
+ H []string `json:"h,omitempty"`
+ // Help When set to `true` will output available columns. This option
+ // can't be combined with any other query string option.
+ Help *bool `json:"help,omitempty"`
+ // Local If `true`, the request computes the list of selected nodes from the
+ // local cluster state. If `false` the list of selected nodes are computed
+ // from the cluster state of the master node. In both cases the coordinating
+ // node will send requests for further information to each selected node.
+ Local *bool `json:"local,omitempty"`
+ // MasterTimeout Period to wait for a connection to the master node.
+ MasterTimeout Duration `json:"master_timeout,omitempty"`
+ // S List of columns that determine how the table should be sorted.
+ // Sorting defaults to ascending and can be changed by setting `:asc`
+ // or `:desc` as a suffix to the column name.
+ S []string `json:"s,omitempty"`
+ // V When set to `true` will enable verbose output.
+ V *bool `json:"v,omitempty"`
+}
+
+func (s *CommonCatQueryParameters) UnmarshalJSON(data []byte) error {
+
+ dec := json.NewDecoder(bytes.NewReader(data))
+
+ for {
+ t, err := dec.Token()
+ if err != nil {
+ if errors.Is(err, io.EOF) {
+ break
+ }
+ return err
+ }
+
+ switch t {
+
+ case "format":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "Format", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.Format = &o
+
+ case "h":
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := new(string)
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "H", err)
+ }
+
+ s.H = append(s.H, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.H); err != nil {
+ return fmt.Errorf("%s | %w", "H", err)
+ }
+ }
+
+ case "help":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Help", err)
+ }
+ s.Help = &value
+ case bool:
+ s.Help = &v
+ }
+
+ case "local":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Local", err)
+ }
+ s.Local = &value
+ case bool:
+ s.Local = &v
+ }
+
+ case "master_timeout":
+ if err := dec.Decode(&s.MasterTimeout); err != nil {
+ return fmt.Errorf("%s | %w", "MasterTimeout", err)
+ }
+
+ case "s":
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := new(string)
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "S", err)
+ }
+
+ s.S = append(s.S, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.S); err != nil {
+ return fmt.Errorf("%s | %w", "S", err)
+ }
+ }
+
+ case "v":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "V", err)
+ }
+ s.V = &value
+ case bool:
+ s.V = &v
+ }
+
+ }
+ }
+ return nil
+}
+
+// NewCommonCatQueryParameters returns a CommonCatQueryParameters.
+func NewCommonCatQueryParameters() *CommonCatQueryParameters {
+ r := &CommonCatQueryParameters{}
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commongramstokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commongramstokenfilter.go
index c14be8f4c3..5fcfa13442 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commongramstokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commongramstokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CommonGramsTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L173-L179
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L175-L181
type CommonGramsTokenFilter struct {
CommonWords []string `json:"common_words,omitempty"`
CommonWordsPath *string `json:"common_words_path,omitempty"`
@@ -74,7 +74,7 @@ func (s *CommonGramsTokenFilter) UnmarshalJSON(data []byte) error {
s.CommonWordsPath = &o
case "ignore_case":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *CommonGramsTokenFilter) UnmarshalJSON(data []byte) error {
}
case "query_mode":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commonqueryparameters.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commonqueryparameters.go
new file mode 100644
index 0000000000..410201db99
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commonqueryparameters.go
@@ -0,0 +1,137 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Code generated from the elasticsearch-specification DO NOT EDIT.
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
+
+package types
+
+import (
+ "bytes"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "strconv"
+)
+
+// CommonQueryParameters type.
+//
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/behaviors.ts#L50-L84
+type CommonQueryParameters struct {
+ // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+ // when they occur.
+ ErrorTrace *bool `json:"error_trace,omitempty"`
+ // FilterPath Comma-separated list of filters in dot notation which reduce the response
+ // returned by Elasticsearch.
+ FilterPath []string `json:"filter_path,omitempty"`
+ // Human When set to `true` will return statistics in a format suitable for humans.
+ // For example `"exists_time": "1h"` for humans and
+ // `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+ // readable values will be omitted. This makes sense for responses being
+ // consumed
+ // only by machines.
+ Human *bool `json:"human,omitempty"`
+ // Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+ // this option for debugging only.
+ Pretty *bool `json:"pretty,omitempty"`
+}
+
+func (s *CommonQueryParameters) UnmarshalJSON(data []byte) error {
+
+ dec := json.NewDecoder(bytes.NewReader(data))
+
+ for {
+ t, err := dec.Token()
+ if err != nil {
+ if errors.Is(err, io.EOF) {
+ break
+ }
+ return err
+ }
+
+ switch t {
+
+ case "error_trace":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "ErrorTrace", err)
+ }
+ s.ErrorTrace = &value
+ case bool:
+ s.ErrorTrace = &v
+ }
+
+ case "filter_path":
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := new(string)
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "FilterPath", err)
+ }
+
+ s.FilterPath = append(s.FilterPath, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.FilterPath); err != nil {
+ return fmt.Errorf("%s | %w", "FilterPath", err)
+ }
+ }
+
+ case "human":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Human", err)
+ }
+ s.Human = &value
+ case bool:
+ s.Human = &v
+ }
+
+ case "pretty":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Pretty", err)
+ }
+ s.Pretty = &value
+ case bool:
+ s.Pretty = &v
+ }
+
+ }
+ }
+ return nil
+}
+
+// NewCommonQueryParameters returns a CommonQueryParameters.
+func NewCommonQueryParameters() *CommonQueryParameters {
+ r := &CommonQueryParameters{}
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commontermsquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commontermsquery.go
index 6a5764d6a5..b3ca61b65f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commontermsquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/commontermsquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// CommonTermsQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L34-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L34-L44
type CommonTermsQuery struct {
Analyzer *string `json:"analyzer,omitempty"`
// Boost Floating point number used to decrease or increase the relevance scores of
@@ -87,7 +87,7 @@ func (s *CommonTermsQuery) UnmarshalJSON(data []byte) error {
s.Analyzer = &o
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -103,7 +103,7 @@ func (s *CommonTermsQuery) UnmarshalJSON(data []byte) error {
}
case "cutoff_frequency":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compactnodeinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compactnodeinfo.go
index 685e3ad44f..bb1d7ba8e4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compactnodeinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compactnodeinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// CompactNodeInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L27-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L27-L29
type CompactNodeInfo struct {
Name string `json:"name"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completioncontext.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completioncontext.go
index 3680e461f0..932b7ac552 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completioncontext.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completioncontext.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CompletionContext type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L232-L261
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L232-L261
type CompletionContext struct {
// Boost The factor by which the score of the suggestion should be boosted.
// The score is computed by multiplying the boost with the suggestion weight.
@@ -74,7 +74,7 @@ func (s *CompletionContext) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -120,7 +120,7 @@ func (s *CompletionContext) UnmarshalJSON(data []byte) error {
}
case "prefix":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionproperty.go
index 6115f09e39..2bdf8c6807 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// CompletionProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/specialized.ts#L27-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L33-L41
type CompletionProperty struct {
Analyzer *string `json:"analyzer,omitempty"`
Contexts []SuggestContext `json:"contexts,omitempty"`
@@ -103,7 +103,7 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -128,7 +128,7 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -419,6 +419,12 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -430,7 +436,7 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -446,7 +452,7 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error {
case "max_input_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -469,7 +475,7 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error {
}
case "preserve_position_increments":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -483,7 +489,7 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error {
}
case "preserve_separators":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -503,7 +509,7 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -794,6 +800,12 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -828,7 +840,7 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionresult.go
new file mode 100644
index 0000000000..20d9b449ac
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionresult.go
@@ -0,0 +1,76 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Code generated from the elasticsearch-specification DO NOT EDIT.
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
+
+package types
+
+import (
+ "bytes"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "strconv"
+)
+
+// CompletionResult type.
+//
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Results.ts#L59-L64
+type CompletionResult struct {
+ Result string `json:"result"`
+}
+
+func (s *CompletionResult) UnmarshalJSON(data []byte) error {
+
+ dec := json.NewDecoder(bytes.NewReader(data))
+
+ for {
+ t, err := dec.Token()
+ if err != nil {
+ if errors.Is(err, io.EOF) {
+ break
+ }
+ return err
+ }
+
+ switch t {
+
+ case "result":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "Result", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.Result = o
+
+ }
+ }
+ return nil
+}
+
+// NewCompletionResult returns a CompletionResult.
+func NewCompletionResult() *CompletionResult {
+ r := &CompletionResult{}
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionstats.go
index 747c65c17e..ba56ba79be 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CompletionStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L80-L90
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L80-L90
type CompletionStats struct {
Fields map[string]FieldSizeUsage `json:"fields,omitempty"`
// Size Total amount of memory used for completion across all shards assigned to
@@ -71,7 +71,7 @@ func (s *CompletionStats) UnmarshalJSON(data []byte) error {
}
case "size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionsuggest.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionsuggest.go
index 838cff35f4..b84b1f7c8c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionsuggest.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionsuggest.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CompletionSuggest type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L48-L55
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L48-L55
type CompletionSuggest struct {
Length int `json:"length"`
Offset int `json:"offset"`
@@ -56,7 +56,7 @@ func (s *CompletionSuggest) UnmarshalJSON(data []byte) error {
case "length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *CompletionSuggest) UnmarshalJSON(data []byte) error {
case "offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionsuggester.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionsuggester.go
index 8efb38708b..4e7b02b1eb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionsuggester.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionsuggester.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CompletionSuggester type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L160-L178
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L160-L178
type CompletionSuggester struct {
// Analyzer The analyzer to analyze the suggest text with.
// Defaults to the search analyzer of the suggest field.
@@ -122,7 +122,7 @@ func (s *CompletionSuggester) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -137,7 +137,7 @@ func (s *CompletionSuggester) UnmarshalJSON(data []byte) error {
}
case "skip_duplicates":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionsuggestoption.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionsuggestoption.go
index e76944b2cd..f17dfab9f3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionsuggestoption.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/completionsuggestoption.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CompletionSuggestOption type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L73-L84
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L73-L84
type CompletionSuggestOption struct {
CollateMatch *bool `json:"collate_match,omitempty"`
Contexts map[string][]Context `json:"contexts,omitempty"`
@@ -61,7 +61,7 @@ func (s *CompletionSuggestOption) UnmarshalJSON(data []byte) error {
switch t {
case "collate_match":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,7 +113,7 @@ func (s *CompletionSuggestOption) UnmarshalJSON(data []byte) error {
}
case "score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -129,7 +129,7 @@ func (s *CompletionSuggestOption) UnmarshalJSON(data []byte) error {
}
case "_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/componenttemplatenode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/componenttemplatenode.go
index 7e7b99eae6..fc891d6a25 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/componenttemplatenode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/componenttemplatenode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ComponentTemplateNode type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/_types/ComponentTemplate.ts#L35-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/_types/ComponentTemplate.ts#L35-L40
type ComponentTemplateNode struct {
Meta_ Metadata `json:"_meta,omitempty"`
Template ComponentTemplateSummary `json:"template"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/componenttemplatesummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/componenttemplatesummary.go
index f978137434..675c72cf46 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/componenttemplatesummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/componenttemplatesummary.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ComponentTemplateSummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/_types/ComponentTemplate.ts#L42-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/_types/ComponentTemplate.ts#L42-L54
type ComponentTemplateSummary struct {
Aliases map[string]AliasDefinition `json:"aliases,omitempty"`
Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregate.go
index ac975965be..d7cf1b3cc0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// CompositeAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L618-L623
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L618-L623
type CompositeAggregate struct {
AfterKey CompositeAggregateKey `json:"after_key,omitempty"`
Buckets BucketsCompositeBucket `json:"buckets"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregatekey.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregatekey.go
index bf3ab6eab1..e98d92f521 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregatekey.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregatekey.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// CompositeAggregateKey type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L116-L116
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L120-L120
type CompositeAggregateKey map[string]FieldValue
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregation.go
index b7d53c279e..d864453a10 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,13 +31,11 @@ import (
// CompositeAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L118-L134
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L122-L138
type CompositeAggregation struct {
// After When paginating, use the `after_key` value returned in the previous response
// to retrieve the next page.
After CompositeAggregateKey `json:"after,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
// Size The number of composite buckets that should be returned.
Size *int `json:"size,omitempty"`
// Sources The value sources used to build composite buckets.
@@ -65,26 +63,9 @@ func (s *CompositeAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "After", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregationsource.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregationsource.go
index 268e95724a..d26e633dfb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregationsource.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositeaggregationsource.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// CompositeAggregationSource type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L136-L153
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L140-L157
type CompositeAggregationSource struct {
// DateHistogram A date histogram aggregation.
DateHistogram *CompositeDateHistogramAggregation `json:"date_histogram,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositebucket.go
index 7d445f6f05..6f33bd6f84 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositebucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositebucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// CompositeBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L625-L627
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L625-L627
type CompositeBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *CompositeBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +519,7 @@ func (s *CompositeBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -569,7 +569,7 @@ func (s *CompositeBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -579,7 +579,7 @@ func (s *CompositeBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -596,7 +596,7 @@ func (s *CompositeBucket) UnmarshalJSON(data []byte) error {
func (s CompositeBucket) MarshalJSON() ([]byte, error) {
type opt CompositeBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositedatehistogramaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositedatehistogramaggregation.go
index 096ed33fb0..16b31a1abe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositedatehistogramaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositedatehistogramaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// CompositeDateHistogramAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L172-L180
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L176-L184
type CompositeDateHistogramAggregation struct {
// CalendarInterval Either `calendar_interval` or `fixed_interval` must be present
CalendarInterval *string `json:"calendar_interval,omitempty"`
@@ -97,7 +97,7 @@ func (s *CompositeDateHistogramAggregation) UnmarshalJSON(data []byte) error {
s.Format = &o
case "missing_bucket":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositegeotilegridaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositegeotilegridaggregation.go
index 29a481b095..479e1df48a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositegeotilegridaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositegeotilegridaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// CompositeGeoTileGridAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L182-L185
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L186-L189
type CompositeGeoTileGridAggregation struct {
Bounds GeoBounds `json:"bounds,omitempty"`
// Field Either `field` or `script` must be present
@@ -75,7 +75,7 @@ func (s *CompositeGeoTileGridAggregation) UnmarshalJSON(data []byte) error {
}
case "missing_bucket":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *CompositeGeoTileGridAggregation) UnmarshalJSON(data []byte) error {
case "precision":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositehistogramaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositehistogramaggregation.go
index 7ad56fb38e..98acdfd89a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositehistogramaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositehistogramaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// CompositeHistogramAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L168-L170
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L172-L174
type CompositeHistogramAggregation struct {
// Field Either `field` or `script` must be present
Field *string `json:"field,omitempty"`
@@ -69,7 +69,7 @@ func (s *CompositeHistogramAggregation) UnmarshalJSON(data []byte) error {
}
case "interval":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *CompositeHistogramAggregation) UnmarshalJSON(data []byte) error {
}
case "missing_bucket":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositetermsaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositetermsaggregation.go
index 86bfbe58e6..606db00e61 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositetermsaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/compositetermsaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// CompositeTermsAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L166-L166
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L170-L170
type CompositeTermsAggregation struct {
// Field Either `field` or `script` must be present
Field *string `json:"field,omitempty"`
@@ -68,7 +68,7 @@ func (s *CompositeTermsAggregation) UnmarshalJSON(data []byte) error {
}
case "missing_bucket":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/conditiontokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/conditiontokenfilter.go
index a4bf422b5d..b54460d733 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/conditiontokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/conditiontokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ConditionTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L181-L185
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L183-L187
type ConditionTokenFilter struct {
Filter []string `json:"filter"`
Script Script `json:"script"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/configuration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/configuration.go
index fca8412981..10cb6f82a5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/configuration.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/configuration.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Configuration type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/_types/SnapshotLifecycle.ts#L99-L129
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/_types/SnapshotLifecycle.ts#L99-L129
type Configuration struct {
// FeatureStates A list of feature states to be included in this snapshot. A list of features
// available for inclusion in the snapshot and their descriptions be can be
@@ -85,7 +85,7 @@ func (s *Configuration) UnmarshalJSON(data []byte) error {
}
case "ignore_unavailable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -99,7 +99,7 @@ func (s *Configuration) UnmarshalJSON(data []byte) error {
}
case "include_global_state":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -134,7 +134,7 @@ func (s *Configuration) UnmarshalJSON(data []byte) error {
}
case "partial":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/configurations.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/configurations.go
index 85a3b3f03a..1cc2b6eda9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/configurations.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/configurations.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Configurations type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/_types/Phase.ts#L50-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/_types/Phase.ts#L50-L54
type Configurations struct {
Forcemerge *ForceMergeConfiguration `json:"forcemerge,omitempty"`
Rollover *RolloverConditions `json:"rollover,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/confusionmatrixitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/confusionmatrixitem.go
index e9ec487166..a16b85f32c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/confusionmatrixitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/confusionmatrixitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ConfusionMatrixItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/types.ts#L125-L130
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L125-L130
type ConfusionMatrixItem struct {
ActualClass string `json:"actual_class"`
ActualClassDocCount int `json:"actual_class_doc_count"`
@@ -61,7 +61,7 @@ func (s *ConfusionMatrixItem) UnmarshalJSON(data []byte) error {
case "actual_class_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -77,7 +77,7 @@ func (s *ConfusionMatrixItem) UnmarshalJSON(data []byte) error {
case "other_predicted_class_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/confusionmatrixprediction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/confusionmatrixprediction.go
index cb84afbfc4..4604ca0912 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/confusionmatrixprediction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/confusionmatrixprediction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ConfusionMatrixPrediction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/types.ts#L132-L135
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L132-L135
type ConfusionMatrixPrediction struct {
Count int `json:"count"`
PredictedClass string `json:"predicted_class"`
@@ -54,7 +54,7 @@ func (s *ConfusionMatrixPrediction) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/confusionmatrixthreshold.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/confusionmatrixthreshold.go
index d33224a625..25d4094cf1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/confusionmatrixthreshold.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/confusionmatrixthreshold.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ConfusionMatrixThreshold type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/types.ts#L137-L158
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L137-L158
type ConfusionMatrixThreshold struct {
// FalseNegative False Negative
FalseNegative int `json:"fn"`
@@ -60,7 +60,7 @@ func (s *ConfusionMatrixThreshold) UnmarshalJSON(data []byte) error {
case "fn":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -76,7 +76,7 @@ func (s *ConfusionMatrixThreshold) UnmarshalJSON(data []byte) error {
case "fp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *ConfusionMatrixThreshold) UnmarshalJSON(data []byte) error {
case "tn":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,7 +108,7 @@ func (s *ConfusionMatrixThreshold) UnmarshalJSON(data []byte) error {
case "tp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connection.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connection.go
index d20b25ff18..e526d2dad1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connection.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/connection.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Connection type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/graph/_types/Connection.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/_types/Connection.ts#L22-L27
type Connection struct {
DocCount int64 `json:"doc_count"`
Source int64 `json:"source"`
@@ -55,7 +55,7 @@ func (s *Connection) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *Connection) UnmarshalJSON(data []byte) error {
}
case "source":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *Connection) UnmarshalJSON(data []byte) error {
}
case "target":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *Connection) UnmarshalJSON(data []byte) error {
}
case "weight":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/constantkeywordproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/constantkeywordproperty.go
index 7ad6f281db..b4f09f608c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/constantkeywordproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/constantkeywordproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// ConstantKeywordProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/specialized.ts#L44-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L50-L53
type ConstantKeywordProperty struct {
Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
Fields map[string]Property `json:"fields,omitempty"`
@@ -72,7 +72,7 @@ func (s *ConstantKeywordProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -363,6 +363,12 @@ func (s *ConstantKeywordProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -374,7 +380,7 @@ func (s *ConstantKeywordProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -403,7 +409,7 @@ func (s *ConstantKeywordProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -694,6 +700,12 @@ func (s *ConstantKeywordProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/constantscorequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/constantscorequery.go
index dde7321458..7aff09795f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/constantscorequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/constantscorequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ConstantScoreQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L69-L76
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L69-L76
type ConstantScoreQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -63,7 +63,7 @@ func (s *ConstantScoreQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/context.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/context.go
index 17a2ae973e..f07e2f68a8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/context.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/context.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// GeoLocation
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L225-L230
-type Context interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L225-L230
+type Context any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/contextmethod.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/contextmethod.go
index 67f16fcdc4..9c519945a1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/contextmethod.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/contextmethod.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ContextMethod type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/get_script_context/types.ts#L27-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_script_context/types.ts#L27-L31
type ContextMethod struct {
Name string `json:"name"`
Params []ContextMethodParam `json:"params"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/contextmethodparam.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/contextmethodparam.go
index bc565bb521..e809b9d38f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/contextmethodparam.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/contextmethodparam.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ContextMethodParam type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/get_script_context/types.ts#L33-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_script_context/types.ts#L33-L36
type ContextMethodParam struct {
Name string `json:"name"`
Type string `json:"type"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/convertprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/convertprocessor.go
index 5dbdacd114..0d1fca8d4c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/convertprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/convertprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// ConvertProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L445-L465
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L445-L465
type ConvertProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -104,7 +104,7 @@ func (s *ConvertProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -118,7 +118,7 @@ func (s *ConvertProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/coordinatorstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/coordinatorstats.go
index c15dd35a67..8e881d16b3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/coordinatorstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/coordinatorstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CoordinatorStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/enrich/stats/types.ts#L29-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/stats/types.ts#L29-L35
type CoordinatorStats struct {
ExecutedSearchesTotal int64 `json:"executed_searches_total"`
NodeId string `json:"node_id"`
@@ -56,7 +56,7 @@ func (s *CoordinatorStats) UnmarshalJSON(data []byte) error {
switch t {
case "executed_searches_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -77,7 +77,7 @@ func (s *CoordinatorStats) UnmarshalJSON(data []byte) error {
case "queue_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -93,7 +93,7 @@ func (s *CoordinatorStats) UnmarshalJSON(data []byte) error {
case "remote_requests_current":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,7 +108,7 @@ func (s *CoordinatorStats) UnmarshalJSON(data []byte) error {
}
case "remote_requests_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/coordsgeobounds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/coordsgeobounds.go
index 0d794a2a63..09cd9f67ce 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/coordsgeobounds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/coordsgeobounds.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CoordsGeoBounds type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Geo.ts#L154-L159
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L154-L159
type CoordsGeoBounds struct {
Bottom Float64 `json:"bottom"`
Left Float64 `json:"left"`
@@ -55,7 +55,7 @@ func (s *CoordsGeoBounds) UnmarshalJSON(data []byte) error {
switch t {
case "bottom":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *CoordsGeoBounds) UnmarshalJSON(data []byte) error {
}
case "left":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *CoordsGeoBounds) UnmarshalJSON(data []byte) error {
}
case "right":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -103,7 +103,7 @@ func (s *CoordsGeoBounds) UnmarshalJSON(data []byte) error {
}
case "top":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/coreknnquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/coreknnquery.go
index 2cab19c8ae..953865a7e1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/coreknnquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/coreknnquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,14 +31,14 @@ import (
// CoreKnnQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/knn_search/_types/Knn.ts#L24-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/knn_search/_types/Knn.ts#L24-L33
type CoreKnnQuery struct {
// Field The name of the vector field to search against
Field string `json:"field"`
// K The final number of nearest neighbors to return as top hits
- K int64 `json:"k"`
+ K int `json:"k"`
// NumCandidates The number of nearest neighbor candidates to consider per shard
- NumCandidates int64 `json:"num_candidates"`
+ NumCandidates int `json:"num_candidates"`
// QueryVector The query vector
QueryVector []float32 `json:"query_vector"`
}
@@ -64,32 +64,34 @@ func (s *CoreKnnQuery) UnmarshalJSON(data []byte) error {
}
case "k":
- var tmp interface{}
+
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.ParseInt(v, 10, 64)
+ value, err := strconv.Atoi(v)
if err != nil {
return fmt.Errorf("%s | %w", "K", err)
}
s.K = value
case float64:
- f := int64(v)
+ f := int(v)
s.K = f
}
case "num_candidates":
- var tmp interface{}
+
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.ParseInt(v, 10, 64)
+ value, err := strconv.Atoi(v)
if err != nil {
return fmt.Errorf("%s | %w", "NumCandidates", err)
}
s.NumCandidates = value
case float64:
- f := int64(v)
+ f := int(v)
s.NumCandidates = f
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/counter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/counter.go
index 93997724c6..834a410b6a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/counter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/counter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Counter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L35-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L35-L38
type Counter struct {
Active int64 `json:"active"`
Total int64 `json:"total"`
@@ -53,7 +53,7 @@ func (s *Counter) UnmarshalJSON(data []byte) error {
switch t {
case "active":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -68,7 +68,7 @@ func (s *Counter) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/countrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/countrecord.go
index 76fac30a61..9d607b4c74 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/countrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/countrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CountRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/count/types.ts#L23-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/count/types.ts#L23-L39
type CountRecord struct {
// Count the document count
Count *string `json:"count,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cpu.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cpu.go
index 466aea17a1..c6738871d3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cpu.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cpu.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Cpu type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L539-L548
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L539-L548
type Cpu struct {
LoadAverage map[string]Float64 `json:"load_average,omitempty"`
Percent *int `json:"percent,omitempty"`
@@ -68,7 +68,7 @@ func (s *Cpu) UnmarshalJSON(data []byte) error {
case "percent":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cpuacct.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cpuacct.go
index 8126dd692b..85f1005882 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cpuacct.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cpuacct.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CpuAcct type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L476-L485
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L476-L485
type CpuAcct struct {
// ControlGroup The `cpuacct` control group to which the Elasticsearch process belongs.
ControlGroup *string `json:"control_group,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/createdstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/createdstatus.go
index ead1c00137..9f32112cc0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/createdstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/createdstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CreatedStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/CreatedStatus.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/CreatedStatus.ts#L20-L22
type CreatedStatus struct {
Created bool `json:"created"`
}
@@ -52,7 +52,7 @@ func (s *CreatedStatus) UnmarshalJSON(data []byte) error {
switch t {
case "created":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/createoperation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/createoperation.go
index 3857691246..5f9ae5432e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/createoperation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/createoperation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// CreateOperation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/bulk/types.ts#L130-L130
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L130-L130
type CreateOperation struct {
// DynamicTemplates A map from the full name of fields to the name of dynamic templates.
// Defaults to an empty map.
@@ -91,7 +91,7 @@ func (s *CreateOperation) UnmarshalJSON(data []byte) error {
}
case "if_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -128,7 +128,7 @@ func (s *CreateOperation) UnmarshalJSON(data []byte) error {
s.Pipeline = &o
case "require_alias":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/csvprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/csvprocessor.go
index d155cc9b7c..52a0c045d5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/csvprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/csvprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CsvProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L467-L500
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L467-L500
type CsvProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -115,7 +115,7 @@ func (s *CsvProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -129,7 +129,7 @@ func (s *CsvProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -200,7 +200,7 @@ func (s *CsvProcessor) UnmarshalJSON(data []byte) error {
}
case "trim":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cumulativecardinalityaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cumulativecardinalityaggregate.go
index 8ad7dae956..ffad757ab6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cumulativecardinalityaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cumulativecardinalityaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CumulativeCardinalityAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L747-L755
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L747-L755
type CumulativeCardinalityAggregate struct {
Meta Metadata `json:"meta,omitempty"`
Value int64 `json:"value"`
@@ -59,7 +59,7 @@ func (s *CumulativeCardinalityAggregate) UnmarshalJSON(data []byte) error {
}
case "value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cumulativecardinalityaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cumulativecardinalityaggregation.go
index 453c3a740a..5fa652890b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cumulativecardinalityaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cumulativecardinalityaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// CumulativeCardinalityAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L192-L192
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L192-L192
type CumulativeCardinalityAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,8 +43,6 @@ type CumulativeCardinalityAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
}
func (s *CumulativeCardinalityAggregation) UnmarshalJSON(data []byte) error {
@@ -84,23 +82,6 @@ func (s *CumulativeCardinalityAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cumulativesumaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cumulativesumaggregation.go
index 72b5c941b8..97a1d10b90 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cumulativesumaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/cumulativesumaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// CumulativeSumAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L194-L194
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L194-L194
type CumulativeSumAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,8 +43,6 @@ type CumulativeSumAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
}
func (s *CumulativeSumAggregation) UnmarshalJSON(data []byte) error {
@@ -84,23 +82,6 @@ func (s *CumulativeSumAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/currentnode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/currentnode.go
index d5957358db..946f04d73c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/currentnode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/currentnode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CurrentNode type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/allocation_explain/types.ts#L78-L84
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L78-L84
type CurrentNode struct {
Attributes map[string]string `json:"attributes"`
Id string `json:"id"`
@@ -80,7 +80,7 @@ func (s *CurrentNode) UnmarshalJSON(data []byte) error {
case "weight_ranking":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customanalyzer.go
index c8e8a3ecac..b2f74d2455 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CustomAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/analyzers.ts#L28-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L28-L35
type CustomAnalyzer struct {
CharFilter []string `json:"char_filter,omitempty"`
Filter []string `json:"filter,omitempty"`
@@ -68,7 +68,7 @@ func (s *CustomAnalyzer) UnmarshalJSON(data []byte) error {
case "position_increment_gap":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -84,7 +84,7 @@ func (s *CustomAnalyzer) UnmarshalJSON(data []byte) error {
case "position_offset_gap":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customcategorizetextanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customcategorizetextanalyzer.go
index b9549e7ce0..73c4dcadc5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customcategorizetextanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customcategorizetextanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// CustomCategorizeTextAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L1107-L1111
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1111-L1115
type CustomCategorizeTextAnalyzer struct {
CharFilter []string `json:"char_filter,omitempty"`
Filter []string `json:"filter,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customnormalizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customnormalizer.go
index 2055b1f007..f5ad206874 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customnormalizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/customnormalizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// CustomNormalizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/normalizers.ts#L30-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/normalizers.ts#L30-L34
type CustomNormalizer struct {
CharFilter []string `json:"char_filter,omitempty"`
Filter []string `json:"filter,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dailyschedule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dailyschedule.go
index 4534a551b2..3f70afc731 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dailyschedule.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dailyschedule.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DailySchedule type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Schedule.ts#L33-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L33-L35
type DailySchedule struct {
At []ScheduleTimeOfDay `json:"at"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/danglingindex.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/danglingindex.go
index 524c1f95da..f66c496caf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/danglingindex.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/danglingindex.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DanglingIndex type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L29-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L29-L34
type DanglingIndex struct {
CreationDateMillis int64 `json:"creation_date_millis"`
IndexName string `json:"index_name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datacounts.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datacounts.go
index 002f6306d9..a825f212e7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datacounts.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datacounts.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataCounts type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Job.ts#L352-L372
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L352-L372
type DataCounts struct {
BucketCount int64 `json:"bucket_count"`
EarliestRecordTimestamp *int64 `json:"earliest_record_timestamp,omitempty"`
@@ -70,7 +70,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
switch t {
case "bucket_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "earliest_record_timestamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "empty_bucket_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -115,7 +115,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "input_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -130,7 +130,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "input_field_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -145,7 +145,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "input_record_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -160,7 +160,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "invalid_date_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -180,7 +180,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "last_data_time":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -195,7 +195,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "latest_bucket_timestamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -210,7 +210,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "latest_empty_bucket_timestamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -225,7 +225,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "latest_record_timestamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -240,7 +240,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "latest_sparse_bucket_timestamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -255,7 +255,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "log_time":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -270,7 +270,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "missing_field_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -285,7 +285,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "out_of_order_timestamp_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -300,7 +300,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "processed_field_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -315,7 +315,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "processed_record_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -330,7 +330,7 @@ func (s *DataCounts) UnmarshalJSON(data []byte) error {
}
case "sparse_bucket_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datadescription.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datadescription.go
index 5b1ed0dd21..95120a87b4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datadescription.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datadescription.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataDescription type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Job.ts#L374-L390
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L374-L390
type DataDescription struct {
FieldDelimiter *string `json:"field_delimiter,omitempty"`
// Format Only JSON format is supported at this time.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataemailattachment.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataemailattachment.go
index 2e841f6e9c..08346ed24e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataemailattachment.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataemailattachment.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// DataEmailAttachment type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L234-L236
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L234-L236
type DataEmailAttachment struct {
Format *dataattachmentformat.DataAttachmentFormat `json:"format,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedauthorization.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedauthorization.go
index 8eb75a5e6d..cb7862e3ff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedauthorization.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedauthorization.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DatafeedAuthorization type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Authorization.ts#L31-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Authorization.ts#L31-L43
type DatafeedAuthorization struct {
// ApiKey If an API key was used for the most recent update to the datafeed, its name
// and identifier are listed in the response.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedconfig.go
index a3c99585cd..36a6e7bd03 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DatafeedConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Datafeed.ts#L60-L117
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L59-L116
type DatafeedConfig struct {
// Aggregations If set, the datafeed performs aggregation searches. Support for aggregations
// is limited and should be used only with low cardinality data.
@@ -161,7 +161,7 @@ func (s *DatafeedConfig) UnmarshalJSON(data []byte) error {
case "max_empty_searches":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -200,7 +200,7 @@ func (s *DatafeedConfig) UnmarshalJSON(data []byte) error {
case "scroll_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedrunningstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedrunningstate.go
index 2f0c50dbf8..17d139840c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedrunningstate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedrunningstate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DatafeedRunningState type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Datafeed.ts#L198-L212
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L197-L211
type DatafeedRunningState struct {
// RealTimeConfigured Indicates if the datafeed is "real-time"; meaning that the datafeed has no
// configured `end` time.
@@ -61,7 +61,7 @@ func (s *DatafeedRunningState) UnmarshalJSON(data []byte) error {
switch t {
case "real_time_configured":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -75,7 +75,7 @@ func (s *DatafeedRunningState) UnmarshalJSON(data []byte) error {
}
case "real_time_running":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeeds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeeds.go
index 75b9fb3e92..98174deb37 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeeds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeeds.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Datafeeds type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/info/types.ts#L40-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/info/types.ts#L40-L42
type Datafeeds struct {
ScrollSize int `json:"scroll_size"`
}
@@ -53,7 +53,7 @@ func (s *Datafeeds) UnmarshalJSON(data []byte) error {
case "scroll_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedsrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedsrecord.go
index 81af1c808a..a1780d700b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedsrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedsrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DatafeedsRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/ml_datafeeds/types.ts#L22-L87
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_datafeeds/types.ts#L22-L87
type DatafeedsRecord struct {
// AssignmentExplanation For started datafeeds only, contains messages relating to the selection of a
// node.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedstats.go
index ea3fc039a6..8b2ae00159 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DatafeedStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Datafeed.ts#L140-L169
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L139-L168
type DatafeedStats struct {
// AssignmentExplanation For started datafeeds only, contains messages relating to the selection of a
// node.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedtimingstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedtimingstats.go
index 98c46b2a99..e80a5827e7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedtimingstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datafeedtimingstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DatafeedTimingStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Datafeed.ts#L171-L196
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L170-L195
type DatafeedTimingStats struct {
// AverageSearchTimePerBucketMs The average search time per bucket, in milliseconds.
AverageSearchTimePerBucketMs Float64 `json:"average_search_time_per_bucket_ms,omitempty"`
@@ -68,7 +68,7 @@ func (s *DatafeedTimingStats) UnmarshalJSON(data []byte) error {
}
case "bucket_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -93,7 +93,7 @@ func (s *DatafeedTimingStats) UnmarshalJSON(data []byte) error {
}
case "search_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysis.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysis.go
index 1d3df6524d..4ca5f73fda 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysis.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysis.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalysis type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L134-L213
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L134-L213
type DataframeAnalysis struct {
// Alpha Advanced configuration option. Machine learning uses loss guided tree
// growing, which means that the decision trees grow where the regularized loss
@@ -164,7 +164,7 @@ func (s *DataframeAnalysis) UnmarshalJSON(data []byte) error {
switch t {
case "alpha":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -192,7 +192,7 @@ func (s *DataframeAnalysis) UnmarshalJSON(data []byte) error {
s.DependentVariable = o
case "downsample_factor":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -208,7 +208,7 @@ func (s *DataframeAnalysis) UnmarshalJSON(data []byte) error {
}
case "early_stopping_enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -222,7 +222,7 @@ func (s *DataframeAnalysis) UnmarshalJSON(data []byte) error {
}
case "eta":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -238,7 +238,7 @@ func (s *DataframeAnalysis) UnmarshalJSON(data []byte) error {
}
case "eta_growth_rate_per_tree":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -254,7 +254,7 @@ func (s *DataframeAnalysis) UnmarshalJSON(data []byte) error {
}
case "feature_bag_fraction":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -275,7 +275,7 @@ func (s *DataframeAnalysis) UnmarshalJSON(data []byte) error {
}
case "gamma":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -291,7 +291,7 @@ func (s *DataframeAnalysis) UnmarshalJSON(data []byte) error {
}
case "lambda":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -308,7 +308,7 @@ func (s *DataframeAnalysis) UnmarshalJSON(data []byte) error {
case "max_optimization_rounds_per_hyperparameter":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -324,7 +324,7 @@ func (s *DataframeAnalysis) UnmarshalJSON(data []byte) error {
case "max_trees", "maximum_number_trees":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -340,7 +340,7 @@ func (s *DataframeAnalysis) UnmarshalJSON(data []byte) error {
case "num_top_feature_importance_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -360,7 +360,7 @@ func (s *DataframeAnalysis) UnmarshalJSON(data []byte) error {
}
case "randomize_seed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -377,7 +377,7 @@ func (s *DataframeAnalysis) UnmarshalJSON(data []byte) error {
case "soft_tree_depth_limit":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -392,7 +392,7 @@ func (s *DataframeAnalysis) UnmarshalJSON(data []byte) error {
}
case "soft_tree_depth_tolerance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisanalyzedfields.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisanalyzedfields.go
index 6080ffc9d4..a599c10027 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisanalyzedfields.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisanalyzedfields.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DataframeAnalysisAnalyzedFields type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L238-L244
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L238-L244
type DataframeAnalysisAnalyzedFields struct {
// Excludes An array of strings that defines the fields that will be included in the
// analysis.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisclassification.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisclassification.go
index e74dd5551f..c8a49ad934 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisclassification.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisclassification.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalysisClassification type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L227-L236
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L227-L236
type DataframeAnalysisClassification struct {
// Alpha Advanced configuration option. Machine learning uses loss guided tree
// growing, which means that the decision trees grow where the regularized loss
@@ -173,7 +173,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
switch t {
case "alpha":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -213,7 +213,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
s.DependentVariable = o
case "downsample_factor":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -229,7 +229,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
}
case "early_stopping_enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -243,7 +243,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
}
case "eta":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -259,7 +259,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
}
case "eta_growth_rate_per_tree":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -275,7 +275,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
}
case "feature_bag_fraction":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -296,7 +296,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
}
case "gamma":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -312,7 +312,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
}
case "lambda":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -329,7 +329,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
case "max_optimization_rounds_per_hyperparameter":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -345,7 +345,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
case "max_trees", "maximum_number_trees":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -361,7 +361,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
case "num_top_classes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -377,7 +377,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
case "num_top_feature_importance_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -397,7 +397,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
}
case "randomize_seed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -414,7 +414,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
case "soft_tree_depth_limit":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -429,7 +429,7 @@ func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error {
}
case "soft_tree_depth_tolerance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysiscontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysiscontainer.go
index 0b2cb8564b..1f5ef2056f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysiscontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysiscontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DataframeAnalysisContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L84-L101
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L84-L101
type DataframeAnalysisContainer struct {
// Classification The configuration information necessary to perform classification.
Classification *DataframeAnalysisClassification `json:"classification,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessor.go
index 4945bd1f26..a7d03714c5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessor.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DataframeAnalysisFeatureProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L246-L258
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L246-L258
type DataframeAnalysisFeatureProcessor struct {
// FrequencyEncoding The configuration information necessary to perform frequency encoding.
FrequencyEncoding *DataframeAnalysisFeatureProcessorFrequencyEncoding `json:"frequency_encoding,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessorfrequencyencoding.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessorfrequencyencoding.go
index cdd32f4324..6436a566dd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessorfrequencyencoding.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessorfrequencyencoding.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DataframeAnalysisFeatureProcessorFrequencyEncoding type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L260-L267
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L260-L267
type DataframeAnalysisFeatureProcessorFrequencyEncoding struct {
// FeatureName The resulting feature name.
FeatureName string `json:"feature_name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessormultiencoding.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessormultiencoding.go
index 6b9d88ac50..ca9ee38cd8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessormultiencoding.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessormultiencoding.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DataframeAnalysisFeatureProcessorMultiEncoding type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L269-L272
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L269-L272
type DataframeAnalysisFeatureProcessorMultiEncoding struct {
// Processors The ordered array of custom processors to execute. Must be more than 1.
Processors []int `json:"processors"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessorngramencoding.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessorngramencoding.go
index 7305ce433e..3ac68dfc10 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessorngramencoding.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessorngramencoding.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalysisFeatureProcessorNGramEncoding type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L274-L286
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L274-L286
type DataframeAnalysisFeatureProcessorNGramEncoding struct {
Custom *bool `json:"custom,omitempty"`
// FeaturePrefix The feature name prefix. Defaults to ngram__.
@@ -65,7 +65,7 @@ func (s *DataframeAnalysisFeatureProcessorNGramEncoding) UnmarshalJSON(data []by
switch t {
case "custom":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -97,7 +97,7 @@ func (s *DataframeAnalysisFeatureProcessorNGramEncoding) UnmarshalJSON(data []by
case "length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -118,7 +118,7 @@ func (s *DataframeAnalysisFeatureProcessorNGramEncoding) UnmarshalJSON(data []by
case "start":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessoronehotencoding.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessoronehotencoding.go
index cd9a0be4f7..fd24a6705b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessoronehotencoding.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessoronehotencoding.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalysisFeatureProcessorOneHotEncoding type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L288-L293
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L288-L293
type DataframeAnalysisFeatureProcessorOneHotEncoding struct {
// Field The name of the field to encode.
Field string `json:"field"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessortargetmeanencoding.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessortargetmeanencoding.go
index 21f8a0b08d..a2c0d64356 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessortargetmeanencoding.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisfeatureprocessortargetmeanencoding.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalysisFeatureProcessorTargetMeanEncoding type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L295-L304
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L295-L304
type DataframeAnalysisFeatureProcessorTargetMeanEncoding struct {
// DefaultValue The default value if field value is not found in the target_map.
DefaultValue int `json:"default_value"`
@@ -60,7 +60,7 @@ func (s *DataframeAnalysisFeatureProcessorTargetMeanEncoding) UnmarshalJSON(data
case "default_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisoutlierdetection.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisoutlierdetection.go
index 59fb463886..cf02982960 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisoutlierdetection.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisoutlierdetection.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalysisOutlierDetection type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L103-L132
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L103-L132
type DataframeAnalysisOutlierDetection struct {
// ComputeFeatureInfluence Specifies whether the feature influence calculation is enabled.
ComputeFeatureInfluence *bool `json:"compute_feature_influence,omitempty"`
@@ -75,7 +75,7 @@ func (s *DataframeAnalysisOutlierDetection) UnmarshalJSON(data []byte) error {
switch t {
case "compute_feature_influence":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -89,7 +89,7 @@ func (s *DataframeAnalysisOutlierDetection) UnmarshalJSON(data []byte) error {
}
case "feature_influence_threshold":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -118,7 +118,7 @@ func (s *DataframeAnalysisOutlierDetection) UnmarshalJSON(data []byte) error {
case "n_neighbors":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -133,7 +133,7 @@ func (s *DataframeAnalysisOutlierDetection) UnmarshalJSON(data []byte) error {
}
case "outlier_fraction":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -149,7 +149,7 @@ func (s *DataframeAnalysisOutlierDetection) UnmarshalJSON(data []byte) error {
}
case "standardization_enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisregression.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisregression.go
index 554e15e70d..17e92cb724 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisregression.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalysisregression.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalysisRegression type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L215-L225
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L215-L225
type DataframeAnalysisRegression struct {
// Alpha Advanced configuration option. Machine learning uses loss guided tree
// growing, which means that the decision trees grow where the regularized loss
@@ -170,7 +170,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
switch t {
case "alpha":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -198,7 +198,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
s.DependentVariable = o
case "downsample_factor":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -214,7 +214,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
}
case "early_stopping_enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -228,7 +228,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
}
case "eta":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -244,7 +244,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
}
case "eta_growth_rate_per_tree":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -260,7 +260,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
}
case "feature_bag_fraction":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -281,7 +281,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
}
case "gamma":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -297,7 +297,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
}
case "lambda":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -325,7 +325,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
s.LossFunction = &o
case "loss_function_parameter":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -342,7 +342,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
case "max_optimization_rounds_per_hyperparameter":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -358,7 +358,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
case "max_trees", "maximum_number_trees":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -374,7 +374,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
case "num_top_feature_importance_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -394,7 +394,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
}
case "randomize_seed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -411,7 +411,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
case "soft_tree_depth_limit":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -426,7 +426,7 @@ func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error {
}
case "soft_tree_depth_tolerance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalytics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalytics.go
index a93f50cc14..cd50457d82 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalytics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalytics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DataframeAnalytics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L324-L344
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L324-L344
type DataframeAnalytics struct {
// AnalysisStats An object containing information about the analysis job.
AnalysisStats *DataframeAnalyticsStatsContainer `json:"analysis_stats,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsauthorization.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsauthorization.go
index 3da2d7df9f..0923204b01 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsauthorization.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsauthorization.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalyticsAuthorization type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Authorization.ts#L45-L57
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Authorization.ts#L45-L57
type DataframeAnalyticsAuthorization struct {
// ApiKey If an API key was used for the most recent update to the job, its name and
// identifier are listed in the response.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsdestination.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsdestination.go
index 49bfea95fe..51a24e22d9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsdestination.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsdestination.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DataframeAnalyticsDestination type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L77-L82
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L77-L82
type DataframeAnalyticsDestination struct {
// Index Defines the destination index to store the results of the data frame
// analytics job.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsfieldselection.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsfieldselection.go
index b525c5aae1..6927689818 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsfieldselection.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsfieldselection.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalyticsFieldSelection type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L55-L68
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L55-L68
type DataframeAnalyticsFieldSelection struct {
// FeatureType The feature type of this field for the analysis. May be categorical or
// numerical.
@@ -76,7 +76,7 @@ func (s *DataframeAnalyticsFieldSelection) UnmarshalJSON(data []byte) error {
s.FeatureType = &o
case "is_included":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -90,7 +90,7 @@ func (s *DataframeAnalyticsFieldSelection) UnmarshalJSON(data []byte) error {
}
case "is_required":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsmemoryestimation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsmemoryestimation.go
index 32ec713edb..5bb4123176 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsmemoryestimation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsmemoryestimation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalyticsMemoryEstimation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L70-L75
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L70-L75
type DataframeAnalyticsMemoryEstimation struct {
// ExpectedMemoryWithDisk Estimated memory usage under the assumption that overflowing to disk is
// allowed during data frame analytics. expected_memory_with_disk is usually
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsrecord.go
index 25129c8604..90436113b5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataFrameAnalyticsRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/ml_data_frame_analytics/types.ts#L22-L102
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_data_frame_analytics/types.ts#L22-L102
type DataFrameAnalyticsRecord struct {
// AssignmentExplanation Messages related to the selection of a node.
AssignmentExplanation *string `json:"assignment_explanation,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticssource.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticssource.go
index 05425ebd87..702d82ae26 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticssource.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticssource.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DataframeAnalyticsSource type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L39-L53
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L39-L53
type DataframeAnalyticsSource struct {
// Index Index or indices on which to perform the analysis. It can be a single index
// or index pattern as well as an array of indices or patterns. NOTE: If your
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatscontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatscontainer.go
index 93d5c90c6f..16a3791627 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatscontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatscontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DataframeAnalyticsStatsContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L373-L381
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L373-L381
type DataframeAnalyticsStatsContainer struct {
// ClassificationStats An object containing information about the classification analysis job.
ClassificationStats *DataframeAnalyticsStatsHyperparameters `json:"classification_stats,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsdatacounts.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsdatacounts.go
index d09b32a85f..ae5f5dcac9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsdatacounts.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsdatacounts.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalyticsStatsDataCounts type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L364-L371
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L364-L371
type DataframeAnalyticsStatsDataCounts struct {
// SkippedDocsCount The number of documents that are skipped during the analysis because they
// contained values that are not supported by the analysis. For example, outlier
@@ -63,7 +63,7 @@ func (s *DataframeAnalyticsStatsDataCounts) UnmarshalJSON(data []byte) error {
case "skipped_docs_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -79,7 +79,7 @@ func (s *DataframeAnalyticsStatsDataCounts) UnmarshalJSON(data []byte) error {
case "test_docs_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *DataframeAnalyticsStatsDataCounts) UnmarshalJSON(data []byte) error {
case "training_docs_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatshyperparameters.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatshyperparameters.go
index f6d4a123a6..385e26ac52 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatshyperparameters.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatshyperparameters.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalyticsStatsHyperparameters type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L383-L402
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L383-L402
type DataframeAnalyticsStatsHyperparameters struct {
// Hyperparameters An object containing the parameters of the classification analysis job.
Hyperparameters Hyperparameters `json:"hyperparameters"`
@@ -68,7 +68,7 @@ func (s *DataframeAnalyticsStatsHyperparameters) UnmarshalJSON(data []byte) erro
case "iteration":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsmemoryusage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsmemoryusage.go
index a2b03c7f6d..5bc3fa28b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsmemoryusage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsmemoryusage.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalyticsStatsMemoryUsage type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L353-L362
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L353-L362
type DataframeAnalyticsStatsMemoryUsage struct {
// MemoryReestimateBytes This value is present when the status is hard_limit and it is a new estimate
// of how much memory the job needs.
@@ -60,7 +60,7 @@ func (s *DataframeAnalyticsStatsMemoryUsage) UnmarshalJSON(data []byte) error {
switch t {
case "memory_reestimate_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -75,7 +75,7 @@ func (s *DataframeAnalyticsStatsMemoryUsage) UnmarshalJSON(data []byte) error {
}
case "peak_usage_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsoutlierdetection.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsoutlierdetection.go
index d22de9e72c..3589583791 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsoutlierdetection.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsoutlierdetection.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DataframeAnalyticsStatsOutlierDetection type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L404-L417
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L404-L417
type DataframeAnalyticsStatsOutlierDetection struct {
// Parameters The list of job parameters specified by the user or determined by algorithmic
// heuristics.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsprogress.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsprogress.go
index 34a41e3c62..222c246720 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsprogress.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticsstatsprogress.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalyticsStatsProgress type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L346-L351
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L346-L351
type DataframeAnalyticsStatsProgress struct {
// Phase Defines the phase of the data frame analytics job.
Phase string `json:"phase"`
@@ -69,7 +69,7 @@ func (s *DataframeAnalyticsStatsProgress) UnmarshalJSON(data []byte) error {
case "progress_percent":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticssummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticssummary.go
index bcd21e61a1..e703ed0460 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticssummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeanalyticssummary.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeAnalyticsSummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L306-L322
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L306-L322
type DataframeAnalyticsSummary struct {
AllowLazyStart *bool `json:"allow_lazy_start,omitempty"`
Analysis DataframeAnalysisContainer `json:"analysis"`
@@ -66,7 +66,7 @@ func (s *DataframeAnalyticsSummary) UnmarshalJSON(data []byte) error {
switch t {
case "allow_lazy_start":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -123,7 +123,7 @@ func (s *DataframeAnalyticsSummary) UnmarshalJSON(data []byte) error {
case "max_num_threads":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummary.go
index 032de4ce00..52820faab2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummary.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DataframeClassificationSummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/types.ts#L44-L66
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L44-L66
type DataframeClassificationSummary struct {
// Accuracy Accuracy of predictions (per-class and overall).
Accuracy *DataframeClassificationSummaryAccuracy `json:"accuracy,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummaryaccuracy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummaryaccuracy.go
index 18e847b55b..f341ebba5b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummaryaccuracy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummaryaccuracy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeClassificationSummaryAccuracy type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/types.ts#L111-L114
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L111-L114
type DataframeClassificationSummaryAccuracy struct {
Classes []DataframeEvaluationClass `json:"classes"`
OverallAccuracy Float64 `json:"overall_accuracy"`
@@ -58,7 +58,7 @@ func (s *DataframeClassificationSummaryAccuracy) UnmarshalJSON(data []byte) erro
}
case "overall_accuracy":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummarymulticlassconfusionmatrix.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummarymulticlassconfusionmatrix.go
index 72ad518661..5930563662 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummarymulticlassconfusionmatrix.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummarymulticlassconfusionmatrix.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeClassificationSummaryMulticlassConfusionMatrix type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/types.ts#L120-L123
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L120-L123
type DataframeClassificationSummaryMulticlassConfusionMatrix struct {
ConfusionMatrix []ConfusionMatrixItem `json:"confusion_matrix"`
OtherActualClassCount int `json:"other_actual_class_count"`
@@ -59,7 +59,7 @@ func (s *DataframeClassificationSummaryMulticlassConfusionMatrix) UnmarshalJSON(
case "other_actual_class_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummaryprecision.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummaryprecision.go
index d0e6a6bcc5..2f0fabb798 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummaryprecision.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummaryprecision.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeClassificationSummaryPrecision type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/types.ts#L101-L104
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L101-L104
type DataframeClassificationSummaryPrecision struct {
AvgPrecision Float64 `json:"avg_precision"`
Classes []DataframeEvaluationClass `json:"classes"`
@@ -53,7 +53,7 @@ func (s *DataframeClassificationSummaryPrecision) UnmarshalJSON(data []byte) err
switch t {
case "avg_precision":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummaryrecall.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummaryrecall.go
index 12c9093124..967a1a72db 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummaryrecall.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeclassificationsummaryrecall.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeClassificationSummaryRecall type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/types.ts#L106-L109
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L106-L109
type DataframeClassificationSummaryRecall struct {
AvgRecall Float64 `json:"avg_recall"`
Classes []DataframeEvaluationClass `json:"classes"`
@@ -53,7 +53,7 @@ func (s *DataframeClassificationSummaryRecall) UnmarshalJSON(data []byte) error
switch t {
case "avg_recall":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclass.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclass.go
index de4d41f700..b949e70ee9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclass.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclass.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeEvaluationClass type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/types.ts#L116-L118
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L116-L118
type DataframeEvaluationClass struct {
ClassName string `json:"class_name"`
Value Float64 `json:"value"`
@@ -58,7 +58,7 @@ func (s *DataframeEvaluationClass) UnmarshalJSON(data []byte) error {
}
case "value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclassification.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclassification.go
index 937f36595f..74f59fd59e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclassification.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclassification.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DataframeEvaluationClassification type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeEvaluation.ts#L35-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L35-L44
type DataframeEvaluationClassification struct {
// ActualField The field of the index which contains the ground truth. The data type of this
// field can be boolean or integer. If the data type is integer, the value has
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclassificationmetrics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclassificationmetrics.go
index 4212cd99a6..8605e4ba1d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclassificationmetrics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclassificationmetrics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// DataframeEvaluationClassificationMetrics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeEvaluation.ts#L73-L78
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L73-L78
type DataframeEvaluationClassificationMetrics struct {
// Accuracy Accuracy of predictions (per-class and overall).
Accuracy map[string]json.RawMessage `json:"accuracy,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclassificationmetricsaucroc.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclassificationmetricsaucroc.go
index 57900975af..e74997a721 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclassificationmetricsaucroc.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationclassificationmetricsaucroc.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeEvaluationClassificationMetricsAucRoc type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeEvaluation.ts#L85-L90
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L85-L90
type DataframeEvaluationClassificationMetricsAucRoc struct {
// ClassName Name of the only class that is treated as positive during AUC ROC
// calculation. Other classes are treated as negative ("one-vs-all" strategy).
@@ -64,7 +64,7 @@ func (s *DataframeEvaluationClassificationMetricsAucRoc) UnmarshalJSON(data []by
}
case "include_curve":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationcontainer.go
index 71d7b8886e..4892c495b1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationcontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationcontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DataframeEvaluationContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeEvaluation.ts#L25-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L25-L33
type DataframeEvaluationContainer struct {
// Classification Classification evaluation evaluates the results of a classification analysis
// which outputs a prediction that identifies to which of the classes each
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationmetrics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationmetrics.go
index e7ca740c1f..063c74d1f7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationmetrics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationmetrics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// DataframeEvaluationMetrics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeEvaluation.ts#L64-L71
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L64-L71
type DataframeEvaluationMetrics struct {
// AucRoc The AUC ROC (area under the curve of the receiver operating characteristic)
// score and optionally the curve. It is calculated for a specific class
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationoutlierdetection.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationoutlierdetection.go
index ae7162ab91..9fe2db4171 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationoutlierdetection.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationoutlierdetection.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DataframeEvaluationOutlierDetection type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeEvaluation.ts#L46-L53
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L46-L53
type DataframeEvaluationOutlierDetection struct {
// ActualField The field of the index which contains the ground truth. The data type of this
// field can be boolean or integer. If the data type is integer, the value has
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationoutlierdetectionmetrics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationoutlierdetectionmetrics.go
index 8ff23d07ca..5acbd1a523 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationoutlierdetectionmetrics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationoutlierdetectionmetrics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// DataframeEvaluationOutlierDetectionMetrics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeEvaluation.ts#L80-L83
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L80-L83
type DataframeEvaluationOutlierDetectionMetrics struct {
// AucRoc The AUC ROC (area under the curve of the receiver operating characteristic)
// score and optionally the curve. It is calculated for a specific class
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregression.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregression.go
index 1b81eb9625..98f3b49e08 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregression.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregression.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DataframeEvaluationRegression type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeEvaluation.ts#L55-L62
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L55-L62
type DataframeEvaluationRegression struct {
// ActualField The field of the index which contains the ground truth. The data type of this
// field must be numerical.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregressionmetrics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregressionmetrics.go
index e82553b796..edf9fd2d57 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregressionmetrics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregressionmetrics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// DataframeEvaluationRegressionMetrics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeEvaluation.ts#L92-L110
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L92-L110
type DataframeEvaluationRegressionMetrics struct {
// Huber Pseudo Huber loss function.
Huber *DataframeEvaluationRegressionMetricsHuber `json:"huber,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregressionmetricshuber.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregressionmetricshuber.go
index a8903673eb..8d9ba1104b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregressionmetricshuber.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregressionmetricshuber.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeEvaluationRegressionMetricsHuber type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeEvaluation.ts#L117-L120
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L117-L120
type DataframeEvaluationRegressionMetricsHuber struct {
// Delta Approximates 1/2 (prediction - actual)2 for values much less than delta and
// approximates a straight line with slope delta for values much larger than
@@ -55,7 +55,7 @@ func (s *DataframeEvaluationRegressionMetricsHuber) UnmarshalJSON(data []byte) e
switch t {
case "delta":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregressionmetricsmsle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregressionmetricsmsle.go
index f15b88b200..dbdb2cc50d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregressionmetricsmsle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationregressionmetricsmsle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeEvaluationRegressionMetricsMsle type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeEvaluation.ts#L112-L115
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeEvaluation.ts#L112-L115
type DataframeEvaluationRegressionMetricsMsle struct {
// Offset Defines the transition point at which you switch from minimizing quadratic
// error to minimizing quadratic log error. Defaults to 1.
@@ -54,7 +54,7 @@ func (s *DataframeEvaluationRegressionMetricsMsle) UnmarshalJSON(data []byte) er
switch t {
case "offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationsummaryaucroc.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationsummaryaucroc.go
index f006edbeac..81bc63e3ac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationsummaryaucroc.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationsummaryaucroc.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeEvaluationSummaryAucRoc type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/types.ts#L91-L93
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L91-L93
type DataframeEvaluationSummaryAucRoc struct {
Curve []DataframeEvaluationSummaryAucRocCurveItem `json:"curve,omitempty"`
Value Float64 `json:"value"`
@@ -58,7 +58,7 @@ func (s *DataframeEvaluationSummaryAucRoc) UnmarshalJSON(data []byte) error {
}
case "value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationsummaryaucroccurveitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationsummaryaucroccurveitem.go
index ed9cf559d1..a3b0592b49 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationsummaryaucroccurveitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationsummaryaucroccurveitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeEvaluationSummaryAucRocCurveItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/types.ts#L95-L99
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L95-L99
type DataframeEvaluationSummaryAucRocCurveItem struct {
Fpr Float64 `json:"fpr"`
Threshold Float64 `json:"threshold"`
@@ -54,7 +54,7 @@ func (s *DataframeEvaluationSummaryAucRocCurveItem) UnmarshalJSON(data []byte) e
switch t {
case "fpr":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *DataframeEvaluationSummaryAucRocCurveItem) UnmarshalJSON(data []byte) e
}
case "threshold":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -86,7 +86,7 @@ func (s *DataframeEvaluationSummaryAucRocCurveItem) UnmarshalJSON(data []byte) e
}
case "tpr":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationvalue.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationvalue.go
index cec8dabfdf..8c10d11299 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationvalue.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeevaluationvalue.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframeEvaluationValue type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/types.ts#L87-L89
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L87-L89
type DataframeEvaluationValue struct {
Value Float64 `json:"value"`
}
@@ -52,7 +52,7 @@ func (s *DataframeEvaluationValue) UnmarshalJSON(data []byte) error {
switch t {
case "value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeoutlierdetectionsummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeoutlierdetectionsummary.go
index c5d0411bbd..c0b34ef1d3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeoutlierdetectionsummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeoutlierdetectionsummary.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DataframeOutlierDetectionSummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/types.ts#L24-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L24-L42
type DataframeOutlierDetectionSummary struct {
// AucRoc The AUC ROC (area under the curve of the receiver operating characteristic)
// score and optionally the curve.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframepreviewconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframepreviewconfig.go
index c204f2a983..0774c2ba39 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframepreviewconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframepreviewconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataframePreviewConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/preview_data_frame_analytics/types.ts#L27-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/preview_data_frame_analytics/types.ts#L27-L33
type DataframePreviewConfig struct {
Analysis DataframeAnalysisContainer `json:"analysis"`
AnalyzedFields *DataframeAnalysisAnalyzedFields `json:"analyzed_fields,omitempty"`
@@ -67,7 +67,7 @@ func (s *DataframePreviewConfig) UnmarshalJSON(data []byte) error {
case "max_num_threads":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeregressionsummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeregressionsummary.go
index 0c9eced3a2..3ac698677d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeregressionsummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dataframeregressionsummary.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DataframeRegressionSummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/evaluate_data_frame/types.ts#L68-L85
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/evaluate_data_frame/types.ts#L68-L85
type DataframeRegressionSummary struct {
// Huber Pseudo Huber loss function.
Huber *DataframeEvaluationValue `json:"huber,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datapathstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datapathstats.go
index fb86ba96c7..b405300a21 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datapathstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datapathstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataPathStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L550-L594
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L550-L594
type DataPathStats struct {
// Available Total amount of disk space available to this Java virtual machine on this
// file store.
@@ -90,7 +90,7 @@ func (s *DataPathStats) UnmarshalJSON(data []byte) error {
s.Available = &o
case "available_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -129,7 +129,7 @@ func (s *DataPathStats) UnmarshalJSON(data []byte) error {
s.DiskReadSize = &o
case "disk_read_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -144,7 +144,7 @@ func (s *DataPathStats) UnmarshalJSON(data []byte) error {
}
case "disk_reads":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -171,7 +171,7 @@ func (s *DataPathStats) UnmarshalJSON(data []byte) error {
s.DiskWriteSize = &o
case "disk_write_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -186,7 +186,7 @@ func (s *DataPathStats) UnmarshalJSON(data []byte) error {
}
case "disk_writes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -213,7 +213,7 @@ func (s *DataPathStats) UnmarshalJSON(data []byte) error {
s.Free = &o
case "free_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -264,7 +264,7 @@ func (s *DataPathStats) UnmarshalJSON(data []byte) error {
s.Total = &o
case "total_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastream.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastream.go
index 6e2f5c3e59..711b0ba38d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastream.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastream.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// DataStream type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/DataStream.ts#L39-L112
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStream.ts#L39-L112
type DataStream struct {
// AllowCustomRouting If `true`, the data stream allows custom routing on write request.
AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"`
@@ -106,7 +106,7 @@ func (s *DataStream) UnmarshalJSON(data []byte) error {
switch t {
case "allow_custom_routing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -121,7 +121,7 @@ func (s *DataStream) UnmarshalJSON(data []byte) error {
case "generation":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -136,7 +136,7 @@ func (s *DataStream) UnmarshalJSON(data []byte) error {
}
case "hidden":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -180,7 +180,7 @@ func (s *DataStream) UnmarshalJSON(data []byte) error {
}
case "prefer_ilm":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -194,7 +194,7 @@ func (s *DataStream) UnmarshalJSON(data []byte) error {
}
case "replicated":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -213,7 +213,7 @@ func (s *DataStream) UnmarshalJSON(data []byte) error {
}
case "system":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamindex.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamindex.go
index 6112abb65a..f469675ed3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamindex.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamindex.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DataStreamIndex type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/DataStream.ts#L121-L142
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStream.ts#L121-L142
type DataStreamIndex struct {
// IlmPolicy Name of the current ILM lifecycle policy configured for this backing index.
IlmPolicy *string `json:"ilm_policy,omitempty"`
@@ -84,7 +84,7 @@ func (s *DataStreamIndex) UnmarshalJSON(data []byte) error {
}
case "prefer_ilm":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycle.go
index ef3621ba57..29308f2a0d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DataStreamLifecycle type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/DataStreamLifecycle.ts#L25-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStreamLifecycle.ts#L25-L31
type DataStreamLifecycle struct {
DataRetention Duration `json:"data_retention,omitempty"`
Downsampling *DataStreamLifecycleDownsampling `json:"downsampling,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycledownsampling.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycledownsampling.go
index 7a18374613..452d1bbec5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycledownsampling.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycledownsampling.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DataStreamLifecycleDownsampling type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/DataStreamLifecycleDownsampling.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStreamLifecycleDownsampling.ts#L22-L27
type DataStreamLifecycleDownsampling struct {
// Rounds The list of downsampling rounds to execute as part of this downsampling
// configuration
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycleexplain.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycleexplain.go
index aa050744cd..bf75b355b3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycleexplain.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecycleexplain.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataStreamLifecycleExplain type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41
type DataStreamLifecycleExplain struct {
Error *string `json:"error,omitempty"`
GenerationTime Duration `json:"generation_time,omitempty"`
@@ -92,7 +92,7 @@ func (s *DataStreamLifecycleExplain) UnmarshalJSON(data []byte) error {
}
case "managed_by_lifecycle":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecyclerolloverconditions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecyclerolloverconditions.go
index e2f6bf60cd..f597ac1c3c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecyclerolloverconditions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecyclerolloverconditions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataStreamLifecycleRolloverConditions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/DataStreamLifecycle.ts#L57-L69
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStreamLifecycle.ts#L57-L69
type DataStreamLifecycleRolloverConditions struct {
MaxAge *string `json:"max_age,omitempty"`
MaxDocs *int64 `json:"max_docs,omitempty"`
@@ -73,7 +73,7 @@ func (s *DataStreamLifecycleRolloverConditions) UnmarshalJSON(data []byte) error
s.MaxAge = &o
case "max_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *DataStreamLifecycleRolloverConditions) UnmarshalJSON(data []byte) error
}
case "max_primary_shard_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -118,7 +118,7 @@ func (s *DataStreamLifecycleRolloverConditions) UnmarshalJSON(data []byte) error
}
case "min_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -133,7 +133,7 @@ func (s *DataStreamLifecycleRolloverConditions) UnmarshalJSON(data []byte) error
}
case "min_primary_shard_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecyclewithrollover.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecyclewithrollover.go
index 5a5a30f989..6a1376b541 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecyclewithrollover.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamlifecyclewithrollover.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DataStreamLifecycleWithRollover type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/DataStreamLifecycle.ts#L33-L55
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStreamLifecycle.ts#L33-L55
type DataStreamLifecycleWithRollover struct {
// DataRetention If defined, every document added to this data stream will be stored at least
// for this time frame.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamnames.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamnames.go
index 9b716bc21a..4dc1f1b456 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamnames.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamnames.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DataStreamNames type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L94-L94
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L94-L94
type DataStreamNames []string
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreams.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreams.go
index fdd6fa5507..23cd751bae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreams.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreams.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataStreams type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L81-L84
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L81-L84
type DataStreams struct {
Available bool `json:"available"`
DataStreams int64 `json:"data_streams"`
@@ -55,7 +55,7 @@ func (s *DataStreams) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -69,7 +69,7 @@ func (s *DataStreams) UnmarshalJSON(data []byte) error {
}
case "data_streams":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -84,7 +84,7 @@ func (s *DataStreams) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -98,7 +98,7 @@ func (s *DataStreams) UnmarshalJSON(data []byte) error {
}
case "indices_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamsstatsitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamsstatsitem.go
index 751f92d210..78bf826c26 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamsstatsitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamsstatsitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataStreamsStatsItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L45-L65
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L45-L65
type DataStreamsStatsItem struct {
// BackingIndices Current number of backing indices for the data stream.
BackingIndices int `json:"backing_indices"`
@@ -69,7 +69,7 @@ func (s *DataStreamsStatsItem) UnmarshalJSON(data []byte) error {
case "backing_indices":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -99,7 +99,7 @@ func (s *DataStreamsStatsItem) UnmarshalJSON(data []byte) error {
}
case "store_size_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamtimestamp.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamtimestamp.go
index d6703b8ba2..85d82a52f5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamtimestamp.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamtimestamp.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataStreamTimestamp type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/TypeMapping.ts#L59-L61
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/TypeMapping.ts#L59-L61
type DataStreamTimestamp struct {
Enabled bool `json:"enabled"`
}
@@ -52,7 +52,7 @@ func (s *DataStreamTimestamp) UnmarshalJSON(data []byte) error {
switch t {
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamtimestampfield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamtimestampfield.go
index d70020dc2b..fdc874000d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamtimestampfield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamtimestampfield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DataStreamTimestampField type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/DataStream.ts#L114-L119
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStream.ts#L114-L119
type DataStreamTimestampField struct {
// Name Name of the timestamp field for the data stream, which must be `@timestamp`.
// The `@timestamp` field must be included in every document indexed to the data
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamvisibility.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamvisibility.go
index 27ae53095b..1300301971 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamvisibility.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamvisibility.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataStreamVisibility type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/DataStream.ts#L144-L146
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStream.ts#L144-L146
type DataStreamVisibility struct {
Hidden *bool `json:"hidden,omitempty"`
}
@@ -52,7 +52,7 @@ func (s *DataStreamVisibility) UnmarshalJSON(data []byte) error {
switch t {
case "hidden":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamwithlifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamwithlifecycle.go
index 941d1d5e46..5c7f2a68df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamwithlifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datastreamwithlifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DataStreamWithLifecycle type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30
type DataStreamWithLifecycle struct {
Lifecycle *DataStreamLifecycle `json:"lifecycle,omitempty"`
Name string `json:"name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datatierphasestatistics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datatierphasestatistics.go
index 617b296976..b520b0768b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datatierphasestatistics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datatierphasestatistics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataTierPhaseStatistics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L86-L97
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L86-L97
type DataTierPhaseStatistics struct {
DocCount int64 `json:"doc_count"`
IndexCount int64 `json:"index_count"`
@@ -61,7 +61,7 @@ func (s *DataTierPhaseStatistics) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -76,7 +76,7 @@ func (s *DataTierPhaseStatistics) UnmarshalJSON(data []byte) error {
}
case "index_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *DataTierPhaseStatistics) UnmarshalJSON(data []byte) error {
}
case "node_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -106,7 +106,7 @@ func (s *DataTierPhaseStatistics) UnmarshalJSON(data []byte) error {
}
case "primary_shard_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -121,7 +121,7 @@ func (s *DataTierPhaseStatistics) UnmarshalJSON(data []byte) error {
}
case "primary_shard_size_avg_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -136,7 +136,7 @@ func (s *DataTierPhaseStatistics) UnmarshalJSON(data []byte) error {
}
case "primary_shard_size_mad_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -151,7 +151,7 @@ func (s *DataTierPhaseStatistics) UnmarshalJSON(data []byte) error {
}
case "primary_shard_size_median_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -166,7 +166,7 @@ func (s *DataTierPhaseStatistics) UnmarshalJSON(data []byte) error {
}
case "primary_size_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -181,7 +181,7 @@ func (s *DataTierPhaseStatistics) UnmarshalJSON(data []byte) error {
}
case "total_shard_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -196,7 +196,7 @@ func (s *DataTierPhaseStatistics) UnmarshalJSON(data []byte) error {
}
case "total_size_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datatiers.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datatiers.go
index 8123f63b7b..e2c36aac59 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datatiers.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datatiers.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DataTiers type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L339-L349
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L339-L349
type DataTiers struct {
Available bool `json:"available"`
DataCold DataTierPhaseStatistics `json:"data_cold"`
@@ -58,7 +58,7 @@ func (s *DataTiers) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -97,7 +97,7 @@ func (s *DataTiers) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datedecayfunction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datedecayfunction.go
index 4cdcadb2d9..fdf4a7825d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datedecayfunction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datedecayfunction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -29,7 +29,7 @@ import (
// DateDecayFunction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L186-L188
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L186-L188
type DateDecayFunction struct {
DateDecayFunction map[string]DecayPlacementDateMathDuration `json:"-"`
// MultiValueMode Determines how the distance is calculated when a field used for computing the
@@ -41,7 +41,7 @@ type DateDecayFunction struct {
func (s DateDecayFunction) MarshalJSON() ([]byte, error) {
type opt DateDecayFunction
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datedistancefeaturequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datedistancefeaturequery.go
index f9ece3fafc..722efec39e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datedistancefeaturequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datedistancefeaturequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DateDistanceFeatureQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L67-L70
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L67-L70
type DateDistanceFeatureQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -78,7 +78,7 @@ func (s *DateDistanceFeatureQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogramaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogramaggregate.go
index 0bb32b11d6..35c3af52da 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogramaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogramaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DateHistogramAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L348-L349
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L348-L349
type DateHistogramAggregate struct {
Buckets BucketsDateHistogramBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogramaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogramaggregation.go
index 0ad2fda1f4..54e6ad49b7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogramaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogramaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// DateHistogramAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L187-L245
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L191-L249
type DateHistogramAggregation struct {
// CalendarInterval Calendar-aware interval.
// Can be specified using the unit name, such as `month`, or as a single unit
@@ -56,8 +56,7 @@ type DateHistogramAggregation struct {
Interval Duration `json:"interval,omitempty"`
// Keyed Set to `true` to associate a unique string key with each bucket and return
// the ranges as a hash rather than an array.
- Keyed *bool `json:"keyed,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
+ Keyed *bool `json:"keyed,omitempty"`
// MinDocCount Only returns buckets that have `min_doc_count` number of documents.
// By default, all buckets between the first bucket that matches documents and
// the last one are returned.
@@ -65,7 +64,6 @@ type DateHistogramAggregation struct {
// Missing The value to apply to documents that do not have a value.
// By default, documents without a value are ignored.
Missing DateTime `json:"missing,omitempty"`
- Name *string `json:"name,omitempty"`
// Offset Changes the start value of each bucket by the specified positive (`+`) or
// negative offset (`-`) duration.
Offset Duration `json:"offset,omitempty"`
@@ -136,7 +134,7 @@ func (s *DateHistogramAggregation) UnmarshalJSON(data []byte) error {
}
case "keyed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -149,14 +147,9 @@ func (s *DateHistogramAggregation) UnmarshalJSON(data []byte) error {
s.Keyed = &v
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "min_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -175,18 +168,6 @@ func (s *DateHistogramAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Missing", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "offset":
if err := dec.Decode(&s.Offset); err != nil {
return fmt.Errorf("%s | %w", "Offset", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogrambucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogrambucket.go
index 9c33b8ee98..8fb20dc1ba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogrambucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogrambucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// DateHistogramBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L351-L354
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L351-L354
type DateHistogramBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -56,7 +56,7 @@ func (s *DateHistogramBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -532,7 +532,7 @@ func (s *DateHistogramBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -582,7 +582,7 @@ func (s *DateHistogramBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -592,7 +592,7 @@ func (s *DateHistogramBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -609,7 +609,7 @@ func (s *DateHistogramBucket) UnmarshalJSON(data []byte) error {
func (s DateHistogramBucket) MarshalJSON() ([]byte, error) {
type opt DateHistogramBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogramgrouping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogramgrouping.go
index 29f98eebb9..cb12bb6adf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogramgrouping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datehistogramgrouping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DateHistogramGrouping type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/_types/Groupings.ts#L42-L73
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/_types/Groupings.ts#L42-L73
type DateHistogramGrouping struct {
// CalendarInterval The interval of time buckets to be generated when rolling up.
CalendarInterval Duration `json:"calendar_interval,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dateindexnameprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dateindexnameprocessor.go
index 2e15fe1070..fddefe69b0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dateindexnameprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dateindexnameprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DateIndexNameProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L502-L540
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L502-L540
type DateIndexNameProcessor struct {
// DateFormats An array of the expected date formats for parsing dates / timestamps in the
// document being preprocessed.
@@ -135,7 +135,7 @@ func (s *DateIndexNameProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datenanosproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datenanosproperty.go
index 127b0489db..4f2c3787ab 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datenanosproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datenanosproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DateNanosProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L73-L81
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L73-L81
type DateNanosProperty struct {
Boost *Float64 `json:"boost,omitempty"`
CopyTo []string `json:"copy_to,omitempty"`
@@ -70,7 +70,7 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -102,7 +102,7 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -127,7 +127,7 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -418,6 +418,12 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -441,7 +447,7 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -456,7 +462,7 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -470,7 +476,7 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -498,7 +504,7 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error {
case "precision_step":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +525,7 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -810,6 +816,12 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -832,7 +844,7 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dateprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dateprocessor.go
index 5e2de97d15..fe5c393f24 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dateprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dateprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DateProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L542-L569
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L542-L569
type DateProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -112,7 +112,7 @@ func (s *DateProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dateproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dateproperty.go
index a5da073130..b9c2013e39 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dateproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dateproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DateProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L61-L71
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L61-L71
type DateProperty struct {
Boost *Float64 `json:"boost,omitempty"`
CopyTo []string `json:"copy_to,omitempty"`
@@ -72,7 +72,7 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +104,7 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -134,7 +134,7 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -425,6 +425,12 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -448,7 +454,7 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -463,7 +469,7 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -477,7 +483,7 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -517,7 +523,7 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error {
case "precision_step":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -538,7 +544,7 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -829,6 +835,12 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -851,7 +863,7 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeaggregate.go
index 9df485f857..47c1eb2a8e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DateRangeAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L543-L548
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L543-L548
type DateRangeAggregate struct {
Buckets BucketsRangeBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeaggregation.go
index 91f7c20c18..68853dcf31 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DateRangeAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L266-L292
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L270-L296
type DateRangeAggregation struct {
// Field The date field whose values are use to build ranges.
Field *string `json:"field,omitempty"`
@@ -39,12 +39,10 @@ type DateRangeAggregation struct {
Format *string `json:"format,omitempty"`
// Keyed Set to `true` to associate a unique string key with each bucket and returns
// the ranges as a hash rather than an array.
- Keyed *bool `json:"keyed,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
+ Keyed *bool `json:"keyed,omitempty"`
// Missing The value to apply to documents that do not have a value.
// By default, documents without a value are ignored.
Missing Missing `json:"missing,omitempty"`
- Name *string `json:"name,omitempty"`
// Ranges Array of date ranges.
Ranges []DateRangeExpression `json:"ranges,omitempty"`
// TimeZone Time zone used to convert dates from another time zone to UTC.
@@ -84,7 +82,7 @@ func (s *DateRangeAggregation) UnmarshalJSON(data []byte) error {
s.Format = &o
case "keyed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -97,28 +95,11 @@ func (s *DateRangeAggregation) UnmarshalJSON(data []byte) error {
s.Keyed = &v
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "missing":
if err := dec.Decode(&s.Missing); err != nil {
return fmt.Errorf("%s | %w", "Missing", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "ranges":
if err := dec.Decode(&s.Ranges); err != nil {
return fmt.Errorf("%s | %w", "Ranges", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeexpression.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeexpression.go
index 4e42b02bcb..a330c15d2a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeexpression.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeexpression.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DateRangeExpression type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L303-L316
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L307-L320
type DateRangeExpression struct {
// From Start of the range (inclusive).
From FieldDateMath `json:"from,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeproperty.go
index 9473039d2f..0e746355a6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangeproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DateRangeProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/range.ts#L29-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/range.ts#L29-L32
type DateRangeProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -68,7 +68,7 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -84,7 +84,7 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -139,7 +139,7 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -430,6 +430,12 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -453,7 +459,7 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -468,7 +474,7 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -496,7 +502,7 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -787,6 +793,12 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -809,7 +821,7 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangequery.go
index 66785e0e03..a804d41133 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/daterangequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DateRangeQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L116-L143
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L116-L143
type DateRangeQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -77,7 +77,7 @@ func (s *DateRangeQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datetime.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datetime.go
index 20b01daa2f..3f3a0f6a44 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datetime.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/datetime.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// int64
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Time.ts#L22-L27
-type DateTime interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L22-L27
+type DateTime any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunction.go
index 7facce71df..ba5795cda5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayfunction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,5 +26,5 @@ package types
// NumericDecayFunction
// GeoDecayFunction
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L194-L199
-type DecayFunction interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L194-L199
+type DecayFunction any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacementdatemathduration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacementdatemathduration.go
index 08504a875e..1a9491beb2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacementdatemathduration.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacementdatemathduration.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DecayPlacementDateMathDuration type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L153-L172
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L153-L172
type DecayPlacementDateMathDuration struct {
// Decay Defines how documents are scored at the distance given at scale.
Decay *Float64 `json:"decay,omitempty"`
@@ -62,7 +62,7 @@ func (s *DecayPlacementDateMathDuration) UnmarshalJSON(data []byte) error {
switch t {
case "decay":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacementdoubledouble.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacementdoubledouble.go
index 1ff8240f89..08e9ed7152 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacementdoubledouble.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacementdoubledouble.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DecayPlacementdoubledouble type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L153-L172
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L153-L172
type DecayPlacementdoubledouble struct {
// Decay Defines how documents are scored at the distance given at scale.
Decay *Float64 `json:"decay,omitempty"`
@@ -62,7 +62,7 @@ func (s *DecayPlacementdoubledouble) UnmarshalJSON(data []byte) error {
switch t {
case "decay":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -78,7 +78,7 @@ func (s *DecayPlacementdoubledouble) UnmarshalJSON(data []byte) error {
}
case "offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -94,7 +94,7 @@ func (s *DecayPlacementdoubledouble) UnmarshalJSON(data []byte) error {
}
case "origin":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -110,7 +110,7 @@ func (s *DecayPlacementdoubledouble) UnmarshalJSON(data []byte) error {
}
case "scale":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacementgeolocationdistance.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacementgeolocationdistance.go
index f684dc5cae..e8be643557 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacementgeolocationdistance.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/decayplacementgeolocationdistance.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DecayPlacementGeoLocationDistance type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L153-L172
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L153-L172
type DecayPlacementGeoLocationDistance struct {
// Decay Defines how documents are scored at the distance given at scale.
Decay *Float64 `json:"decay,omitempty"`
@@ -62,7 +62,7 @@ func (s *DecayPlacementGeoLocationDistance) UnmarshalJSON(data []byte) error {
switch t {
case "decay":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/defaults.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/defaults.go
index 3d9953f870..42b101aefd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/defaults.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/defaults.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Defaults type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/info/types.ts#L24-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/info/types.ts#L24-L27
type Defaults struct {
AnomalyDetectors AnomalyDetectors `json:"anomaly_detectors"`
Datafeeds Datafeeds `json:"datafeeds"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/definition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/definition.go
index 2491aaa5d7..503e92cb8c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/definition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/definition.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Definition type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model/types.ts#L24-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L24-L29
type Definition struct {
// Preprocessors Collection of preprocessors
Preprocessors []Preprocessor `json:"preprocessors,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/delayeddatacheckconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/delayeddatacheckconfig.go
index 13d5be6f5a..629302dda6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/delayeddatacheckconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/delayeddatacheckconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DelayedDataCheckConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Datafeed.ts#L119-L130
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L118-L129
type DelayedDataCheckConfig struct {
// CheckWindow The window of time that is searched for late data. This window of time ends
// with the latest finalized bucket.
@@ -65,7 +65,7 @@ func (s *DelayedDataCheckConfig) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteoperation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteoperation.go
index af55c2b963..967a3a1dfd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteoperation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deleteoperation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DeleteOperation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/bulk/types.ts#L134-L134
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L134-L134
type DeleteOperation struct {
// Id_ The document ID.
Id_ *string `json:"_id,omitempty"`
@@ -68,7 +68,7 @@ func (s *DeleteOperation) UnmarshalJSON(data []byte) error {
}
case "if_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/delimitedpayloadtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/delimitedpayloadtokenfilter.go
index a344fb1918..3225d8abac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/delimitedpayloadtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/delimitedpayloadtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DelimitedPayloadTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L68-L72
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L68-L72
type DelimitedPayloadTokenFilter struct {
Delimiter *string `json:"delimiter,omitempty"`
Encoding *delimitedpayloadencoding.DelimitedPayloadEncoding `json:"encoding,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/densevectorindexoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/densevectorindexoptions.go
index f4c574158c..c6c531438c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/densevectorindexoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/densevectorindexoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DenseVectorIndexOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/DenseVectorIndexOptions.ts#L22-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/DenseVectorIndexOptions.ts#L22-L26
type DenseVectorIndexOptions struct {
EfConstruction int `json:"ef_construction"`
M int `json:"m"`
@@ -55,7 +55,7 @@ func (s *DenseVectorIndexOptions) UnmarshalJSON(data []byte) error {
case "ef_construction":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *DenseVectorIndexOptions) UnmarshalJSON(data []byte) error {
case "m":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/densevectorproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/densevectorproperty.go
index ce47f15851..84105860c6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/densevectorproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/densevectorproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,10 +33,11 @@ import (
// DenseVectorProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/complex.ts#L52-L58
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/complex.ts#L52-L59
type DenseVectorProperty struct {
Dims *int `json:"dims,omitempty"`
Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
+ ElementType *string `json:"element_type,omitempty"`
Fields map[string]Property `json:"fields,omitempty"`
IgnoreAbove *int `json:"ignore_above,omitempty"`
Index *bool `json:"index,omitempty"`
@@ -65,7 +66,7 @@ func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error {
case "dims":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -84,6 +85,18 @@ func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Dynamic", err)
}
+ case "element_type":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "ElementType", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.ElementType = &o
+
case "fields":
if s.Fields == nil {
s.Fields = make(map[string]Property, 0)
@@ -91,7 +104,7 @@ func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -382,6 +395,12 @@ func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -393,7 +412,7 @@ func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -408,7 +427,7 @@ func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -441,7 +460,7 @@ func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -732,6 +751,12 @@ func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -769,6 +794,7 @@ func (s DenseVectorProperty) MarshalJSON() ([]byte, error) {
tmp := innerDenseVectorProperty{
Dims: s.Dims,
Dynamic: s.Dynamic,
+ ElementType: s.ElementType,
Fields: s.Fields,
IgnoreAbove: s.IgnoreAbove,
Index: s.Index,
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deprecation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deprecation.go
index f1fec38910..de69e26a81 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deprecation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deprecation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// Deprecation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/migration/deprecations/types.ts#L29-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/deprecations/types.ts#L29-L35
type Deprecation struct {
Details string `json:"details"`
// Level The level property describes the significance of the issue.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deprecationindexing.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deprecationindexing.go
index eb56949d4d..b2dbee3f89 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deprecationindexing.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/deprecationindexing.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DeprecationIndexing type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L144-L146
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L144-L146
type DeprecationIndexing struct {
Enabled string `json:"enabled"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/derivativeaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/derivativeaggregate.go
index 1fd68b3290..3401ba7256 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/derivativeaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/derivativeaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DerivativeAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L227-L231
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L227-L231
type DerivativeAggregate struct {
Meta Metadata `json:"meta,omitempty"`
NormalizedValue *Float64 `json:"normalized_value,omitempty"`
@@ -64,7 +64,7 @@ func (s *DerivativeAggregate) UnmarshalJSON(data []byte) error {
}
case "normalized_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/derivativeaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/derivativeaggregation.go
index 54491484a8..0b72aabec2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/derivativeaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/derivativeaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DerivativeAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L196-L196
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L196-L196
type DerivativeAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,8 +43,6 @@ type DerivativeAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
}
func (s *DerivativeAggregation) UnmarshalJSON(data []byte) error {
@@ -84,23 +82,6 @@ func (s *DerivativeAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/detectionrule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/detectionrule.go
index ef30ceffa2..64aac5bc07 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/detectionrule.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/detectionrule.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// DetectionRule type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Rule.ts#L25-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Rule.ts#L25-L39
type DetectionRule struct {
// Actions The set of actions to be triggered when the rule applies. If more than one
// action is specified the effects of all actions are combined.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/detector.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/detector.go
index 9145d25aa5..f2a007e7b5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/detector.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/detector.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// Detector type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Detector.ts#L25-L67
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Detector.ts#L25-L67
type Detector struct {
// ByFieldName The field used to split the data. In particular, this property is used for
// analyzing the splits with respect to their own history. It is used for
@@ -112,7 +112,7 @@ func (s *Detector) UnmarshalJSON(data []byte) error {
case "detector_index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -159,7 +159,7 @@ func (s *Detector) UnmarshalJSON(data []byte) error {
}
case "use_null":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/detectorread.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/detectorread.go
index d2ba382c35..dd70517786 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/detectorread.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/detectorread.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DetectorRead type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Detector.ts#L69-L125
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Detector.ts#L69-L125
type DetectorRead struct {
// ByFieldName The field used to split the data.
// In particular, this property is used for analyzing the splits with respect to
@@ -119,7 +119,7 @@ func (s *DetectorRead) UnmarshalJSON(data []byte) error {
case "detector_index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -166,7 +166,7 @@ func (s *DetectorRead) UnmarshalJSON(data []byte) error {
}
case "use_null":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diagnosis.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diagnosis.go
index 90ef37ad47..b0cfb4f99a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diagnosis.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diagnosis.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Diagnosis type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L49-L55
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L49-L55
type Diagnosis struct {
Action string `json:"action"`
AffectedResources DiagnosisAffectedResources `json:"affected_resources"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diagnosisaffectedresources.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diagnosisaffectedresources.go
index 30ffe91307..634d0aaeb7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diagnosisaffectedresources.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diagnosisaffectedresources.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DiagnosisAffectedResources type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L57-L63
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L57-L63
type DiagnosisAffectedResources struct {
FeatureStates []string `json:"feature_states,omitempty"`
Indices []string `json:"indices,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dictionarydecompoundertokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dictionarydecompoundertokenfilter.go
index e65559cac1..c05832509c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dictionarydecompoundertokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dictionarydecompoundertokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DictionaryDecompounderTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L54-L56
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L54-L56
type DictionaryDecompounderTokenFilter struct {
HyphenationPatternsPath *string `json:"hyphenation_patterns_path,omitempty"`
MaxSubwordSize *int `json:"max_subword_size,omitempty"`
@@ -73,7 +73,7 @@ func (s *DictionaryDecompounderTokenFilter) UnmarshalJSON(data []byte) error {
case "max_subword_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -89,7 +89,7 @@ func (s *DictionaryDecompounderTokenFilter) UnmarshalJSON(data []byte) error {
case "min_subword_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -105,7 +105,7 @@ func (s *DictionaryDecompounderTokenFilter) UnmarshalJSON(data []byte) error {
case "min_word_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -120,7 +120,7 @@ func (s *DictionaryDecompounderTokenFilter) UnmarshalJSON(data []byte) error {
}
case "only_longest_match":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/directgenerator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/directgenerator.go
index 056c6206e3..27a1ed32d1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/directgenerator.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/directgenerator.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DirectGenerator type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L265-L328
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L265-L328
type DirectGenerator struct {
// Field The field to fetch the candidate suggestions from.
// Needs to be set globally or per suggestion.
@@ -102,7 +102,7 @@ func (s *DirectGenerator) UnmarshalJSON(data []byte) error {
case "max_edits":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +117,7 @@ func (s *DirectGenerator) UnmarshalJSON(data []byte) error {
}
case "max_inspections":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -133,7 +133,7 @@ func (s *DirectGenerator) UnmarshalJSON(data []byte) error {
}
case "max_term_freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -149,7 +149,7 @@ func (s *DirectGenerator) UnmarshalJSON(data []byte) error {
}
case "min_doc_freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -166,7 +166,7 @@ func (s *DirectGenerator) UnmarshalJSON(data []byte) error {
case "min_word_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -206,7 +206,7 @@ func (s *DirectGenerator) UnmarshalJSON(data []byte) error {
case "prefix_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -222,7 +222,7 @@ func (s *DirectGenerator) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/discovery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/discovery.go
index f7aaa43931..880ca1f6bc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/discovery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/discovery.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Discovery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L201-L219
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L201-L219
type Discovery struct {
ClusterApplierStats *ClusterAppliedStats `json:"cluster_applier_stats,omitempty"`
// ClusterStateQueue Contains statistics for the cluster state queue of the node.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/discoverynode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/discoverynode.go
index c4553d52d4..7cc57649bd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/discoverynode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/discoverynode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DiscoveryNode type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DiscoveryNode.ts#L24-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DiscoveryNode.ts#L24-L30
type DiscoveryNode struct {
Attributes map[string]string `json:"attributes"`
EphemeralId string `json:"ephemeral_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diskindicator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diskindicator.go
index 0b04e39914..9b849e2c80 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diskindicator.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diskindicator.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DiskIndicator type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L121-L125
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L121-L125
type DiskIndicator struct {
Details *DiskIndicatorDetails `json:"details,omitempty"`
Diagnosis []Diagnosis `json:"diagnosis,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diskindicatordetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diskindicatordetails.go
index 1c61641613..641ec875f2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diskindicatordetails.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diskindicatordetails.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DiskIndicatorDetails type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L126-L132
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L126-L132
type DiskIndicatorDetails struct {
IndicesWithReadonlyBlock int64 `json:"indices_with_readonly_block"`
NodesOverFloodStageWatermark int64 `json:"nodes_over_flood_stage_watermark"`
@@ -56,7 +56,7 @@ func (s *DiskIndicatorDetails) UnmarshalJSON(data []byte) error {
switch t {
case "indices_with_readonly_block":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *DiskIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "nodes_over_flood_stage_watermark":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -86,7 +86,7 @@ func (s *DiskIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "nodes_over_high_watermark":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -101,7 +101,7 @@ func (s *DiskIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "nodes_with_enough_disk_space":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -116,7 +116,7 @@ func (s *DiskIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "nodes_with_unknown_disk_status":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diskusage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diskusage.go
index 435e0d261a..f3135976e7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diskusage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diskusage.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DiskUsage type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/allocation_explain/types.ts#L62-L69
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L62-L69
type DiskUsage struct {
FreeBytes int64 `json:"free_bytes"`
FreeDiskPercent Float64 `json:"free_disk_percent"`
@@ -57,7 +57,7 @@ func (s *DiskUsage) UnmarshalJSON(data []byte) error {
switch t {
case "free_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *DiskUsage) UnmarshalJSON(data []byte) error {
}
case "free_disk_percent":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *DiskUsage) UnmarshalJSON(data []byte) error {
s.Path = o
case "total_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -115,7 +115,7 @@ func (s *DiskUsage) UnmarshalJSON(data []byte) error {
}
case "used_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -130,7 +130,7 @@ func (s *DiskUsage) UnmarshalJSON(data []byte) error {
}
case "used_disk_percent":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dismaxquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dismaxquery.go
index 9d2b6983d7..2830f7cbd8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dismaxquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dismaxquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DisMaxQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L78-L90
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L78-L90
type DisMaxQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -66,7 +66,7 @@ func (s *DisMaxQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -99,7 +99,7 @@ func (s *DisMaxQuery) UnmarshalJSON(data []byte) error {
s.QueryName_ = &o
case "tie_breaker":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dissectprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dissectprocessor.go
index a584757043..3def605ab5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dissectprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dissectprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DissectProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L571-L590
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L571-L590
type DissectProcessor struct {
// AppendSeparator The character(s) that separate the appended fields.
AppendSeparator *string `json:"append_separator,omitempty"`
@@ -113,7 +113,7 @@ func (s *DissectProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -127,7 +127,7 @@ func (s *DissectProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/distancefeaturequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/distancefeaturequery.go
index 14bb7d3827..6df29eec3e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/distancefeaturequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/distancefeaturequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// GeoDistanceFeatureQuery
// DateDistanceFeatureQuery
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L72-L76
-type DistanceFeatureQuery interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L72-L76
+type DistanceFeatureQuery any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/distancefeaturequerybasedatemathduration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/distancefeaturequerybasedatemathduration.go
index b6ba5289da..d333717587 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/distancefeaturequerybasedatemathduration.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/distancefeaturequerybasedatemathduration.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DistanceFeatureQueryBaseDateMathDuration type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L40-L60
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L40-L60
type DistanceFeatureQueryBaseDateMathDuration struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -78,7 +78,7 @@ func (s *DistanceFeatureQueryBaseDateMathDuration) UnmarshalJSON(data []byte) er
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/distancefeaturequerybasegeolocationdistance.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/distancefeaturequerybasegeolocationdistance.go
index 9cf2b17b3e..ac8e3ae6e3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/distancefeaturequerybasegeolocationdistance.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/distancefeaturequerybasegeolocationdistance.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DistanceFeatureQueryBaseGeoLocationDistance type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L40-L60
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L40-L60
type DistanceFeatureQueryBaseGeoLocationDistance struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -78,7 +78,7 @@ func (s *DistanceFeatureQueryBaseGeoLocationDistance) UnmarshalJSON(data []byte)
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diversifiedsampleraggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diversifiedsampleraggregation.go
index c943a58337..f9440a8182 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diversifiedsampleraggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/diversifiedsampleraggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,17 +33,15 @@ import (
// DiversifiedSamplerAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L318-L339
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L322-L343
type DiversifiedSamplerAggregation struct {
// ExecutionHint The type of value used for de-duplication.
ExecutionHint *sampleraggregationexecutionhint.SamplerAggregationExecutionHint `json:"execution_hint,omitempty"`
// Field The field used to provide values used for de-duplication.
Field *string `json:"field,omitempty"`
// MaxDocsPerValue Limits how many documents are permitted per choice of de-duplicating value.
- MaxDocsPerValue *int `json:"max_docs_per_value,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
- Script Script `json:"script,omitempty"`
+ MaxDocsPerValue *int `json:"max_docs_per_value,omitempty"`
+ Script Script `json:"script,omitempty"`
// ShardSize Limits how many top-scoring documents are collected in the sample processed
// on each shard.
ShardSize *int `json:"shard_size,omitempty"`
@@ -76,7 +74,7 @@ func (s *DiversifiedSamplerAggregation) UnmarshalJSON(data []byte) error {
case "max_docs_per_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -90,23 +88,6 @@ func (s *DiversifiedSamplerAggregation) UnmarshalJSON(data []byte) error {
s.MaxDocsPerValue = &f
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "script":
message := json.RawMessage{}
if err := dec.Decode(&message); err != nil {
@@ -145,7 +126,7 @@ func (s *DiversifiedSamplerAggregation) UnmarshalJSON(data []byte) error {
case "shard_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/docstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/docstats.go
index ad6f05dabf..f0f908ca0e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/docstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/docstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DocStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L97-L109
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L97-L109
type DocStats struct {
// Count Total number of non-deleted documents across all primary shards assigned to
// selected nodes.
@@ -62,7 +62,7 @@ func (s *DocStats) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -77,7 +77,7 @@ func (s *DocStats) UnmarshalJSON(data []byte) error {
}
case "deleted":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/document.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/document.go
index 900f51c2b7..1bd0842c4f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/document.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/document.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// Document type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/simulate/types.ts#L41-L55
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/simulate/types.ts#L41-L55
type Document struct {
// Id_ Unique identifier for the document.
// This ID must be unique within the `_index`.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/documentrating.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/documentrating.go
index fb5fe79346..d7f756837e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/documentrating.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/documentrating.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DocumentRating type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/types.ts#L116-L123
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L116-L123
type DocumentRating struct {
// Id_ The document ID.
Id_ string `json:"_id"`
@@ -69,7 +69,7 @@ func (s *DocumentRating) UnmarshalJSON(data []byte) error {
case "rating":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/documentsimulation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/documentsimulation.go
index 3d4514de42..ddee968914 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/documentsimulation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/documentsimulation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DocumentSimulation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/simulate/types.ts#L57-L85
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/simulate/types.ts#L57-L85
type DocumentSimulation struct {
DocumentSimulation map[string]string `json:"-"`
// Id_ Unique identifier for the document. This ID must be unique within the
@@ -132,7 +132,7 @@ func (s *DocumentSimulation) UnmarshalJSON(data []byte) error {
func (s DocumentSimulation) MarshalJSON() ([]byte, error) {
type opt DocumentSimulation
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dotexpanderprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dotexpanderprocessor.go
index 48890517a5..7868cf4985 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dotexpanderprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dotexpanderprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DotExpanderProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L592-L603
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L592-L603
type DotExpanderProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -99,7 +99,7 @@ func (s *DotExpanderProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doublenumberproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doublenumberproperty.go
index ed387f2e7e..fa248551e9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doublenumberproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doublenumberproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// DoubleNumberProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L144-L147
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L146-L149
type DoubleNumberProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -79,7 +79,7 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +150,7 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -441,6 +441,12 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -452,7 +458,7 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -467,7 +473,7 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -481,7 +487,7 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -503,7 +509,7 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error {
}
case "null_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -530,7 +536,7 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -821,6 +827,12 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -879,7 +891,7 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -893,7 +905,7 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error {
}
case "time_series_dimension":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doublerangeproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doublerangeproperty.go
index f109fcd448..f2f9a64e50 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doublerangeproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doublerangeproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// DoubleRangeProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/range.ts#L34-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/range.ts#L34-L36
type DoubleRangeProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -67,7 +67,7 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,7 +113,7 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +138,7 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -429,6 +429,12 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -440,7 +446,7 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -455,7 +461,7 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -483,7 +489,7 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -774,6 +780,12 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -796,7 +808,7 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doubletermsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doubletermsaggregate.go
index 752e1060a3..445c386d20 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doubletermsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doubletermsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DoubleTermsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L411-L416
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L411-L416
type DoubleTermsAggregate struct {
Buckets BucketsDoubleTermsBucket `json:"buckets"`
DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`
@@ -76,7 +76,7 @@ func (s *DoubleTermsAggregate) UnmarshalJSON(data []byte) error {
}
case "doc_count_error_upper_bound":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *DoubleTermsAggregate) UnmarshalJSON(data []byte) error {
}
case "sum_other_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doubletermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doubletermsbucket.go
index bd88f9eb71..e375dd72b5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doubletermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/doubletermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,13 +32,13 @@ import (
// DoubleTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L418-L421
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L418-L421
type DoubleTermsBucket struct {
- Aggregations map[string]Aggregate `json:"-"`
- DocCount int64 `json:"doc_count"`
- DocCountError *int64 `json:"doc_count_error,omitempty"`
- Key Float64 `json:"key"`
- KeyAsString *string `json:"key_as_string,omitempty"`
+ Aggregations map[string]Aggregate `json:"-"`
+ DocCount int64 `json:"doc_count"`
+ DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`
+ Key Float64 `json:"key"`
+ KeyAsString *string `json:"key_as_string,omitempty"`
}
func (s *DoubleTermsBucket) UnmarshalJSON(data []byte) error {
@@ -57,7 +57,7 @@ func (s *DoubleTermsBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,23 +71,23 @@ func (s *DoubleTermsBucket) UnmarshalJSON(data []byte) error {
s.DocCount = f
}
- case "doc_count_error":
- var tmp interface{}
+ case "doc_count_error_upper_bound":
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
- return fmt.Errorf("%s | %w", "DocCountError", err)
+ return fmt.Errorf("%s | %w", "DocCountErrorUpperBound", err)
}
- s.DocCountError = &value
+ s.DocCountErrorUpperBound = &value
case float64:
f := int64(v)
- s.DocCountError = &f
+ s.DocCountErrorUpperBound = &f
}
case "key":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -559,7 +559,7 @@ func (s *DoubleTermsBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -609,7 +609,7 @@ func (s *DoubleTermsBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -619,7 +619,7 @@ func (s *DoubleTermsBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -636,7 +636,7 @@ func (s *DoubleTermsBucket) UnmarshalJSON(data []byte) error {
func (s DoubleTermsBucket) MarshalJSON() ([]byte, error) {
type opt DoubleTermsBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/downsampleconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/downsampleconfig.go
index 2eab3827b5..87223e92c2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/downsampleconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/downsampleconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DownsampleConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/Downsample.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/Downsample.ts#L22-L27
type DownsampleConfig struct {
// FixedInterval The interval at which to aggregate the original time series index.
FixedInterval string `json:"fixed_interval"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/downsamplinground.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/downsamplinground.go
index 7d937d36b7..d39f18d322 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/downsamplinground.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/downsamplinground.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DownsamplingRound type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/DownsamplingRound.ts#L23-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DownsamplingRound.ts#L23-L32
type DownsamplingRound struct {
// After The duration since rollover when this downsampling round should execute
After Duration `json:"after"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dropprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dropprocessor.go
index 7e224c5074..9eef069c31 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dropprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dropprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// DropProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L605-L605
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L605-L605
type DropProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -87,7 +87,7 @@ func (s *DropProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/duration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/duration.go
index 93273f3c4c..0f7e88ed03 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/duration.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/duration.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -24,5 +24,5 @@ package types
//
// string
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Time.ts#L52-L58
-type Duration interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L52-L58
+type Duration any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitfloatmillis.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitfloatmillis.go
index 80d6e9ecef..07bec211e6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitfloatmillis.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitfloatmillis.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DurationValueUnitFloatMillis type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Time.ts#L67-L67
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L67-L67
type DurationValueUnitFloatMillis Float64
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitmillis.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitmillis.go
index e4dc287708..d440ea5113 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitmillis.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitmillis.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DurationValueUnitMillis type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Time.ts#L67-L67
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L67-L67
type DurationValueUnitMillis int64
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitnanos.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitnanos.go
index 7d9f7ac7af..95f47e9409 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitnanos.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitnanos.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DurationValueUnitNanos type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Time.ts#L67-L67
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L67-L67
type DurationValueUnitNanos int64
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitseconds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitseconds.go
index 4bb6ad48c3..9d76e64b6b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitseconds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/durationvalueunitseconds.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// DurationValueUnitSeconds type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Time.ts#L67-L67
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L67-L67
type DurationValueUnitSeconds int64
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dutchanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dutchanalyzer.go
index 3e1026028d..c2c61a385b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dutchanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dutchanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// DutchAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/analyzers.ts#L61-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L61-L64
type DutchAnalyzer struct {
Stopwords []string `json:"stopwords,omitempty"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dynamicproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dynamicproperty.go
index 953fa63c08..e83e1e9adf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dynamicproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dynamicproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -37,7 +37,7 @@ import (
// DynamicProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L286-L317
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L288-L319
type DynamicProperty struct {
Analyzer *string `json:"analyzer,omitempty"`
Boost *Float64 `json:"boost,omitempty"`
@@ -102,7 +102,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
s.Analyzer = &o
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -118,7 +118,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -148,7 +148,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -167,7 +167,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
}
case "eager_global_ordinals":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -181,7 +181,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -201,7 +201,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -492,6 +492,12 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -515,7 +521,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -530,7 +536,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -544,7 +550,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -563,7 +569,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
}
case "index_phrases":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -602,7 +608,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
}
case "norms":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -627,7 +633,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
case "position_increment_gap":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -643,7 +649,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
case "precision_step":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -664,7 +670,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -955,6 +961,12 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -1037,7 +1049,7 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dynamictemplate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dynamictemplate.go
index b9bb32432c..efe0c730e3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dynamictemplate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/dynamictemplate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,22 +26,23 @@ import (
"errors"
"fmt"
"io"
- "strconv"
"github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/matchtype"
)
// DynamicTemplate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/dynamic-template.ts#L22-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/dynamic-template.ts#L22-L42
type DynamicTemplate struct {
- Mapping Property `json:"mapping,omitempty"`
- Match *string `json:"match,omitempty"`
- MatchMappingType *string `json:"match_mapping_type,omitempty"`
- MatchPattern *matchtype.MatchType `json:"match_pattern,omitempty"`
- PathMatch *string `json:"path_match,omitempty"`
- PathUnmatch *string `json:"path_unmatch,omitempty"`
- Unmatch *string `json:"unmatch,omitempty"`
+ Mapping Property `json:"mapping,omitempty"`
+ Match []string `json:"match,omitempty"`
+ MatchMappingType []string `json:"match_mapping_type,omitempty"`
+ MatchPattern *matchtype.MatchType `json:"match_pattern,omitempty"`
+ PathMatch []string `json:"path_match,omitempty"`
+ PathUnmatch []string `json:"path_unmatch,omitempty"`
+ Runtime Property `json:"runtime,omitempty"`
+ Unmatch []string `json:"unmatch,omitempty"`
+ UnmatchMappingType []string `json:"unmatch_mapping_type,omitempty"`
}
func (s *DynamicTemplate) UnmarshalJSON(data []byte) error {
@@ -355,6 +356,12 @@ func (s *DynamicTemplate) UnmarshalJSON(data []byte) error {
return err
}
s.Mapping = *o
+ case "icu_collation_keyword":
+ o := NewIcuCollationProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Mapping = *o
default:
if err := localDec.Decode(&s.Mapping); err != nil {
return err
@@ -362,28 +369,36 @@ func (s *DynamicTemplate) UnmarshalJSON(data []byte) error {
}
case "match":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Match", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := new(string)
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "Match", err)
+ }
+
+ s.Match = append(s.Match, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Match); err != nil {
+ return fmt.Errorf("%s | %w", "Match", err)
+ }
}
- s.Match = &o
case "match_mapping_type":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "MatchMappingType", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := new(string)
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "MatchMappingType", err)
+ }
+
+ s.MatchMappingType = append(s.MatchMappingType, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.MatchMappingType); err != nil {
+ return fmt.Errorf("%s | %w", "MatchMappingType", err)
+ }
}
- s.MatchMappingType = &o
case "match_pattern":
if err := dec.Decode(&s.MatchPattern); err != nil {
@@ -391,40 +406,376 @@ func (s *DynamicTemplate) UnmarshalJSON(data []byte) error {
}
case "path_match":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "PathMatch", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := new(string)
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "PathMatch", err)
+ }
+
+ s.PathMatch = append(s.PathMatch, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.PathMatch); err != nil {
+ return fmt.Errorf("%s | %w", "PathMatch", err)
+ }
}
- s.PathMatch = &o
case "path_unmatch":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "PathUnmatch", err)
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := new(string)
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "PathUnmatch", err)
+ }
+
+ s.PathUnmatch = append(s.PathUnmatch, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.PathUnmatch); err != nil {
+ return fmt.Errorf("%s | %w", "PathUnmatch", err)
+ }
}
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
+
+ case "runtime":
+
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ source := bytes.NewReader(rawMsg)
+ kind := make(map[string]string, 0)
+ localDec := json.NewDecoder(source)
+ localDec.Decode(&kind)
+ source.Seek(0, io.SeekStart)
+ if _, ok := kind["type"]; !ok {
+ kind["type"] = "object"
+ }
+ switch kind["type"] {
+
+ case "binary":
+ o := NewBinaryProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "boolean":
+ o := NewBooleanProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "{dynamic_type}":
+ o := NewDynamicProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "join":
+ o := NewJoinProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "keyword":
+ o := NewKeywordProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "match_only_text":
+ o := NewMatchOnlyTextProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "percolator":
+ o := NewPercolatorProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "rank_feature":
+ o := NewRankFeatureProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "rank_features":
+ o := NewRankFeaturesProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "search_as_you_type":
+ o := NewSearchAsYouTypeProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "text":
+ o := NewTextProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "version":
+ o := NewVersionProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "wildcard":
+ o := NewWildcardProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "date_nanos":
+ o := NewDateNanosProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "date":
+ o := NewDateProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "aggregate_metric_double":
+ o := NewAggregateMetricDoubleProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "dense_vector":
+ o := NewDenseVectorProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "sparse_vector":
+ o := NewSparseVectorProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "flattened":
+ o := NewFlattenedProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "nested":
+ o := NewNestedProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "object":
+ o := NewObjectProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "completion":
+ o := NewCompletionProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "constant_keyword":
+ o := NewConstantKeywordProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "alias":
+ o := NewFieldAliasProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "histogram":
+ o := NewHistogramProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "ip":
+ o := NewIpProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "murmur3":
+ o := NewMurmur3HashProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "token_count":
+ o := NewTokenCountProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "geo_point":
+ o := NewGeoPointProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "geo_shape":
+ o := NewGeoShapeProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "point":
+ o := NewPointProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "shape":
+ o := NewShapeProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "byte":
+ o := NewByteNumberProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "double":
+ o := NewDoubleNumberProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "float":
+ o := NewFloatNumberProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "half_float":
+ o := NewHalfFloatNumberProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "integer":
+ o := NewIntegerNumberProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "long":
+ o := NewLongNumberProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "scaled_float":
+ o := NewScaledFloatNumberProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "short":
+ o := NewShortNumberProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "unsigned_long":
+ o := NewUnsignedLongNumberProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "date_range":
+ o := NewDateRangeProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "double_range":
+ o := NewDoubleRangeProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "float_range":
+ o := NewFloatRangeProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "integer_range":
+ o := NewIntegerRangeProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "ip_range":
+ o := NewIpRangeProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "long_range":
+ o := NewLongRangeProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ case "icu_collation_keyword":
+ o := NewIcuCollationProperty()
+ if err := localDec.Decode(&o); err != nil {
+ return err
+ }
+ s.Runtime = *o
+ default:
+ if err := localDec.Decode(&s.Runtime); err != nil {
+ return err
+ }
}
- s.PathUnmatch = &o
case "unmatch":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Unmatch", err)
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := new(string)
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "Unmatch", err)
+ }
+
+ s.Unmatch = append(s.Unmatch, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Unmatch); err != nil {
+ return fmt.Errorf("%s | %w", "Unmatch", err)
+ }
}
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
+
+ case "unmatch_mapping_type":
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := new(string)
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "UnmatchMappingType", err)
+ }
+
+ s.UnmatchMappingType = append(s.UnmatchMappingType, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.UnmatchMappingType); err != nil {
+ return fmt.Errorf("%s | %w", "UnmatchMappingType", err)
+ }
}
- s.Unmatch = &o
}
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/edgengramtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/edgengramtokenfilter.go
index a8f72b9886..c92d2f5370 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/edgengramtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/edgengramtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// EdgeNGramTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L79-L85
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L79-L85
type EdgeNGramTokenFilter struct {
MaxGram *int `json:"max_gram,omitempty"`
MinGram *int `json:"min_gram,omitempty"`
@@ -60,7 +60,7 @@ func (s *EdgeNGramTokenFilter) UnmarshalJSON(data []byte) error {
case "max_gram":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -76,7 +76,7 @@ func (s *EdgeNGramTokenFilter) UnmarshalJSON(data []byte) error {
case "min_gram":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/edgengramtokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/edgengramtokenizer.go
index 1a30fbc218..b9f5c535cc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/edgengramtokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/edgengramtokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// EdgeNGramTokenizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L31-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L31-L37
type EdgeNGramTokenizer struct {
CustomTokenChars *string `json:"custom_token_chars,omitempty"`
MaxGram int `json:"max_gram"`
@@ -72,7 +72,7 @@ func (s *EdgeNGramTokenizer) UnmarshalJSON(data []byte) error {
case "max_gram":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *EdgeNGramTokenizer) UnmarshalJSON(data []byte) error {
case "min_gram":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/elasticsearchversioninfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/elasticsearchversioninfo.go
index b009a6ad6e..5d4ab3320e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/elasticsearchversioninfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/elasticsearchversioninfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ElasticsearchVersionInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Base.ts#L54-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Base.ts#L54-L64
type ElasticsearchVersionInfo struct {
BuildDate DateTime `json:"build_date"`
BuildFlavor string `json:"build_flavor"`
@@ -89,7 +89,7 @@ func (s *ElasticsearchVersionInfo) UnmarshalJSON(data []byte) error {
s.BuildHash = o
case "build_snapshot":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/elasticsearchversionmininfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/elasticsearchversionmininfo.go
index eb386dcddb..b972f05dcc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/elasticsearchversionmininfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/elasticsearchversionmininfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ElasticsearchVersionMinInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Base.ts#L66-L74
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Base.ts#L66-L74
type ElasticsearchVersionMinInfo struct {
BuildFlavor string `json:"build_flavor"`
Int string `json:"number"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/elisiontokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/elisiontokenfilter.go
index d7f65ba8bf..6943349dbb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/elisiontokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/elisiontokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ElisionTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L187-L192
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L189-L194
type ElisionTokenFilter struct {
Articles []string `json:"articles,omitempty"`
ArticlesCase Stringifiedboolean `json:"articles_case,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/email.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/email.go
index 177c9ac5c8..ce94b11c89 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/email.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/email.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// Email type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L238-L250
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L238-L250
type Email struct {
Attachments map[string]EmailAttachmentContainer `json:"attachments,omitempty"`
Bcc []string `json:"bcc,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailaction.go
index 3c1e8470ec..8e0a49401c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// EmailAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L252-L252
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L252-L252
type EmailAction struct {
Attachments map[string]EmailAttachmentContainer `json:"attachments,omitempty"`
Bcc []string `json:"bcc,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailattachmentcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailattachmentcontainer.go
index af7b157193..1e3e97fcb5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailattachmentcontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailattachmentcontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// EmailAttachmentContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L211-L216
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L211-L216
type EmailAttachmentContainer struct {
Data *DataEmailAttachment `json:"data,omitempty"`
Http *HttpEmailAttachment `json:"http,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailbody.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailbody.go
index cdac1b0bbd..48133ad59e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailbody.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailbody.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// EmailBody type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L192-L195
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L192-L195
type EmailBody struct {
Html *string `json:"html,omitempty"`
Text *string `json:"text,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailresult.go
index aa318ede08..edc79f9dcd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emailresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// EmailResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L205-L209
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L205-L209
type EmailResult struct {
Account *string `json:"account,omitempty"`
Message Email `json:"message"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emptyobject.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emptyobject.go
index f673f9b441..4e8092dea7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emptyobject.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/emptyobject.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// EmptyObject type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L160-L161
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L160-L161
type EmptyObject struct {
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enrichpolicy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enrichpolicy.go
index b892d8b5db..88fed99f5a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enrichpolicy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enrichpolicy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// EnrichPolicy type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/enrich/_types/Policy.ts#L34-L41
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/_types/Policy.ts#L34-L41
type EnrichPolicy struct {
ElasticsearchVersion *string `json:"elasticsearch_version,omitempty"`
EnrichFields []string `json:"enrich_fields"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enrichprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enrichprocessor.go
index 51b6fa5f8a..37312ca53a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enrichprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enrichprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// EnrichProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L607-L646
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L607-L646
type EnrichProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -121,7 +121,7 @@ func (s *EnrichProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -135,7 +135,7 @@ func (s *EnrichProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +150,7 @@ func (s *EnrichProcessor) UnmarshalJSON(data []byte) error {
case "max_matches":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -170,7 +170,7 @@ func (s *EnrichProcessor) UnmarshalJSON(data []byte) error {
}
case "override":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ensemble.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ensemble.go
index 4495907dee..ac4644cc1d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ensemble.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ensemble.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Ensemble type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model/types.ts#L93-L99
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L93-L99
type Ensemble struct {
AggregateOutput *AggregateOutput `json:"aggregate_output,omitempty"`
ClassificationLabels []string `json:"classification_labels,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/accesstokengranttype/accesstokengranttype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/accesstokengranttype/accesstokengranttype.go
index f12c72355b..000eee67c7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/accesstokengranttype/accesstokengranttype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/accesstokengranttype/accesstokengranttype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package accesstokengranttype
package accesstokengranttype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_token/types.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_token/types.ts#L23-L28
type AccessTokenGrantType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/acknowledgementoptions/acknowledgementoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/acknowledgementoptions/acknowledgementoptions.go
index 063ebceb19..281c2fc449 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/acknowledgementoptions/acknowledgementoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/acknowledgementoptions/acknowledgementoptions.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package acknowledgementoptions
package acknowledgementoptions
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Action.ts#L109-L113
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L109-L113
type AcknowledgementOptions struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionexecutionmode/actionexecutionmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionexecutionmode/actionexecutionmode.go
index cd6602c8e0..3b389eddee 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionexecutionmode/actionexecutionmode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionexecutionmode/actionexecutionmode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package actionexecutionmode
package actionexecutionmode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Action.ts#L73-L94
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L73-L94
type ActionExecutionMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionstatusoptions/actionstatusoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionstatusoptions/actionstatusoptions.go
index 6164f40e82..0aab2234e2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionstatusoptions/actionstatusoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionstatusoptions/actionstatusoptions.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package actionstatusoptions
package actionstatusoptions
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Action.ts#L102-L107
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L102-L107
type ActionStatusOptions struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actiontype/actiontype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actiontype/actiontype.go
index f6566ff4c4..784f6f65e9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actiontype/actiontype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actiontype/actiontype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package actiontype
package actiontype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Action.ts#L64-L71
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L64-L71
type ActionType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/allocationexplaindecision/allocationexplaindecision.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/allocationexplaindecision/allocationexplaindecision.go
index 86957e6226..d966f26a89 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/allocationexplaindecision/allocationexplaindecision.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/allocationexplaindecision/allocationexplaindecision.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package allocationexplaindecision
package allocationexplaindecision
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/allocation_explain/types.ts#L32-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L32-L37
type AllocationExplainDecision struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/apikeygranttype/apikeygranttype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/apikeygranttype/apikeygranttype.go
index 646820b86b..6d4b069dc4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/apikeygranttype/apikeygranttype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/apikeygranttype/apikeygranttype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package apikeygranttype
package apikeygranttype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/grant_api_key/types.ts#L48-L51
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/grant_api_key/types.ts#L48-L51
type ApiKeyGrantType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/appliesto/appliesto.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/appliesto/appliesto.go
index eb67aa5c05..37ad514e48 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/appliesto/appliesto.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/appliesto/appliesto.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package appliesto
package appliesto
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Rule.ts#L67-L72
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Rule.ts#L67-L72
type AppliesTo struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/boundaryscanner/boundaryscanner.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/boundaryscanner/boundaryscanner.go
index 7329676c88..2c19e413bc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/boundaryscanner/boundaryscanner.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/boundaryscanner/boundaryscanner.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package boundaryscanner
package boundaryscanner
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/highlighting.ts#L27-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L27-L46
type BoundaryScanner struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes/bytes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes/bytes.go
index c6f66e3c57..eac137aaee 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes/bytes.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes/bytes.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package bytes
package bytes
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L169-L181
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L169-L181
type Bytes struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/calendarinterval/calendarinterval.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/calendarinterval/calendarinterval.go
index 0ebb2daa2a..2387aee213 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/calendarinterval/calendarinterval.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/calendarinterval/calendarinterval.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package calendarinterval
package calendarinterval
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L247-L264
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L251-L268
type CalendarInterval struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cardinalityexecutionmode/cardinalityexecutionmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cardinalityexecutionmode/cardinalityexecutionmode.go
index f88034da93..a705cc741c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cardinalityexecutionmode/cardinalityexecutionmode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cardinalityexecutionmode/cardinalityexecutionmode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package cardinalityexecutionmode
package cardinalityexecutionmode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L64-L85
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L64-L85
type CardinalityExecutionMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catanomalydetectorcolumn/catanomalydetectorcolumn.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catanomalydetectorcolumn/catanomalydetectorcolumn.go
index 262287fdeb..c8201a9e42 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catanomalydetectorcolumn/catanomalydetectorcolumn.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catanomalydetectorcolumn/catanomalydetectorcolumn.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package catanomalydetectorcolumn
package catanomalydetectorcolumn
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/_types/CatBase.ts#L32-L401
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L32-L401
type CatAnomalyDetectorColumn struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catdatafeedcolumn/catdatafeedcolumn.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catdatafeedcolumn/catdatafeedcolumn.go
index e27306490c..df51b503aa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catdatafeedcolumn/catdatafeedcolumn.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catdatafeedcolumn/catdatafeedcolumn.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package catdatafeedcolumn
package catdatafeedcolumn
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/_types/CatBase.ts#L405-L471
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L405-L471
type CatDatafeedColumn struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catdfacolumn/catdfacolumn.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catdfacolumn/catdfacolumn.go
index a2f754d52c..42572ed0c6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catdfacolumn/catdfacolumn.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catdfacolumn/catdfacolumn.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package catdfacolumn
package catdfacolumn
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/_types/CatBase.ts#L472-L557
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L472-L557
type CatDfaColumn struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/categorizationstatus/categorizationstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/categorizationstatus/categorizationstatus.go
index 324b6e4155..16a14c0132 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/categorizationstatus/categorizationstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/categorizationstatus/categorizationstatus.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package categorizationstatus
package categorizationstatus
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Model.ts#L83-L86
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Model.ts#L83-L86
type CategorizationStatus struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cattrainedmodelscolumn/cattrainedmodelscolumn.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cattrainedmodelscolumn/cattrainedmodelscolumn.go
index cb870de10a..29f512d4ab 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cattrainedmodelscolumn/cattrainedmodelscolumn.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cattrainedmodelscolumn/cattrainedmodelscolumn.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package cattrainedmodelscolumn
package cattrainedmodelscolumn
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/_types/CatBase.ts#L561-L635
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L561-L635
type CatTrainedModelsColumn struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cattransformcolumn/cattransformcolumn.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cattransformcolumn/cattransformcolumn.go
index de3707f705..d99f7f693c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cattransformcolumn/cattransformcolumn.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cattransformcolumn/cattransformcolumn.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package cattransformcolumn
package cattransformcolumn
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/_types/CatBase.ts#L640-L844
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/_types/CatBase.ts#L640-L844
type CatTransformColumn struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/childscoremode/childscoremode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/childscoremode/childscoremode.go
index 26d9e20417..153e701b78 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/childscoremode/childscoremode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/childscoremode/childscoremode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package childscoremode
package childscoremode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/joining.ts#L25-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/joining.ts#L25-L39
type ChildScoreMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/chunkingmode/chunkingmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/chunkingmode/chunkingmode.go
index fe728508c9..73b1b896e3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/chunkingmode/chunkingmode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/chunkingmode/chunkingmode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package chunkingmode
package chunkingmode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Datafeed.ts#L233-L237
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L232-L236
type ChunkingMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterinfotarget/clusterinfotarget.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterinfotarget/clusterinfotarget.go
index b4f2a48c2e..3d8421f9c9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterinfotarget/clusterinfotarget.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterinfotarget/clusterinfotarget.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package clusterinfotarget
package clusterinfotarget
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L378-L384
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L378-L384
type ClusterInfoTarget struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege/clusterprivilege.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege/clusterprivilege.go
index 10c9000584..59d0d9367b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege/clusterprivilege.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege/clusterprivilege.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package clusterprivilege
package clusterprivilege
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/Privileges.ts#L41-L80
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L41-L102
type ClusterPrivilege struct {
Name string
}
@@ -35,20 +35,36 @@ var (
Createsnapshot = ClusterPrivilege{"create_snapshot"}
+ Crossclusterreplication = ClusterPrivilege{"cross_cluster_replication"}
+
+ Crossclustersearch = ClusterPrivilege{"cross_cluster_search"}
+
+ Delegatepki = ClusterPrivilege{"delegate_pki"}
+
Grantapikey = ClusterPrivilege{"grant_api_key"}
Manage = ClusterPrivilege{"manage"}
Manageapikey = ClusterPrivilege{"manage_api_key"}
+ Manageautoscaling = ClusterPrivilege{"manage_autoscaling"}
+
+ Managebehavioralanalytics = ClusterPrivilege{"manage_behavioral_analytics"}
+
Manageccr = ClusterPrivilege{"manage_ccr"}
+ Managedataframetransforms = ClusterPrivilege{"manage_data_frame_transforms"}
+
+ Managedatastreamglobalretention = ClusterPrivilege{"manage_data_stream_global_retention"}
+
Manageenrich = ClusterPrivilege{"manage_enrich"}
Manageilm = ClusterPrivilege{"manage_ilm"}
Manageindextemplates = ClusterPrivilege{"manage_index_templates"}
+ Manageinference = ClusterPrivilege{"manage_inference"}
+
Manageingestpipelines = ClusterPrivilege{"manage_ingest_pipelines"}
Managelogstashpipelines = ClusterPrivilege{"manage_logstash_pipelines"}
@@ -65,6 +81,12 @@ var (
Managesaml = ClusterPrivilege{"manage_saml"}
+ Managesearchapplication = ClusterPrivilege{"manage_search_application"}
+
+ Managesearchqueryrules = ClusterPrivilege{"manage_search_query_rules"}
+
+ Managesearchsynonyms = ClusterPrivilege{"manage_search_synonyms"}
+
Managesecurity = ClusterPrivilege{"manage_security"}
Manageserviceaccount = ClusterPrivilege{"manage_service_account"}
@@ -81,6 +103,14 @@ var (
Monitor = ClusterPrivilege{"monitor"}
+ Monitordataframetransforms = ClusterPrivilege{"monitor_data_frame_transforms"}
+
+ Monitordatastreamglobalretention = ClusterPrivilege{"monitor_data_stream_global_retention"}
+
+ Monitorenrich = ClusterPrivilege{"monitor_enrich"}
+
+ Monitorinference = ClusterPrivilege{"monitor_inference"}
+
Monitorml = ClusterPrivilege{"monitor_ml"}
Monitorrollup = ClusterPrivilege{"monitor_rollup"}
@@ -93,15 +123,29 @@ var (
Monitorwatcher = ClusterPrivilege{"monitor_watcher"}
+ None = ClusterPrivilege{"none"}
+
+ Postbehavioralanalyticsevent = ClusterPrivilege{"post_behavioral_analytics_event"}
+
Readccr = ClusterPrivilege{"read_ccr"}
+ Readconnectorsecrets = ClusterPrivilege{"read_connector_secrets"}
+
+ Readfleetsecrets = ClusterPrivilege{"read_fleet_secrets"}
+
Readilm = ClusterPrivilege{"read_ilm"}
Readpipeline = ClusterPrivilege{"read_pipeline"}
+ Readsecurity = ClusterPrivilege{"read_security"}
+
Readslm = ClusterPrivilege{"read_slm"}
Transportclient = ClusterPrivilege{"transport_client"}
+
+ Writeconnectorsecrets = ClusterPrivilege{"write_connector_secrets"}
+
+ Writefleetsecrets = ClusterPrivilege{"write_fleet_secrets"}
)
func (c ClusterPrivilege) MarshalText() (text []byte, err error) {
@@ -117,20 +161,36 @@ func (c *ClusterPrivilege) UnmarshalText(text []byte) error {
*c = Canceltask
case "create_snapshot":
*c = Createsnapshot
+ case "cross_cluster_replication":
+ *c = Crossclusterreplication
+ case "cross_cluster_search":
+ *c = Crossclustersearch
+ case "delegate_pki":
+ *c = Delegatepki
case "grant_api_key":
*c = Grantapikey
case "manage":
*c = Manage
case "manage_api_key":
*c = Manageapikey
+ case "manage_autoscaling":
+ *c = Manageautoscaling
+ case "manage_behavioral_analytics":
+ *c = Managebehavioralanalytics
case "manage_ccr":
*c = Manageccr
+ case "manage_data_frame_transforms":
+ *c = Managedataframetransforms
+ case "manage_data_stream_global_retention":
+ *c = Managedatastreamglobalretention
case "manage_enrich":
*c = Manageenrich
case "manage_ilm":
*c = Manageilm
case "manage_index_templates":
*c = Manageindextemplates
+ case "manage_inference":
+ *c = Manageinference
case "manage_ingest_pipelines":
*c = Manageingestpipelines
case "manage_logstash_pipelines":
@@ -147,6 +207,12 @@ func (c *ClusterPrivilege) UnmarshalText(text []byte) error {
*c = Managerollup
case "manage_saml":
*c = Managesaml
+ case "manage_search_application":
+ *c = Managesearchapplication
+ case "manage_search_query_rules":
+ *c = Managesearchqueryrules
+ case "manage_search_synonyms":
+ *c = Managesearchsynonyms
case "manage_security":
*c = Managesecurity
case "manage_service_account":
@@ -163,6 +229,14 @@ func (c *ClusterPrivilege) UnmarshalText(text []byte) error {
*c = Managewatcher
case "monitor":
*c = Monitor
+ case "monitor_data_frame_transforms":
+ *c = Monitordataframetransforms
+ case "monitor_data_stream_global_retention":
+ *c = Monitordatastreamglobalretention
+ case "monitor_enrich":
+ *c = Monitorenrich
+ case "monitor_inference":
+ *c = Monitorinference
case "monitor_ml":
*c = Monitorml
case "monitor_rollup":
@@ -175,16 +249,30 @@ func (c *ClusterPrivilege) UnmarshalText(text []byte) error {
*c = Monitortransform
case "monitor_watcher":
*c = Monitorwatcher
+ case "none":
+ *c = None
+ case "post_behavioral_analytics_event":
+ *c = Postbehavioralanalyticsevent
case "read_ccr":
*c = Readccr
+ case "read_connector_secrets":
+ *c = Readconnectorsecrets
+ case "read_fleet_secrets":
+ *c = Readfleetsecrets
case "read_ilm":
*c = Readilm
case "read_pipeline":
*c = Readpipeline
+ case "read_security":
+ *c = Readsecurity
case "read_slm":
*c = Readslm
case "transport_client":
*c = Transportclient
+ case "write_connector_secrets":
+ *c = Writeconnectorsecrets
+ case "write_fleet_secrets":
+ *c = Writefleetsecrets
default:
*c = ClusterPrivilege{string(text)}
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clustersearchstatus/clustersearchstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clustersearchstatus/clustersearchstatus.go
index 7cdef786ac..44f17d9cc0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clustersearchstatus/clustersearchstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clustersearchstatus/clustersearchstatus.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package clustersearchstatus
package clustersearchstatus
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L37-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L37-L43
type ClusterSearchStatus struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/combinedfieldsoperator/combinedfieldsoperator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/combinedfieldsoperator/combinedfieldsoperator.go
index e26e6bca5a..18ed6da0ca 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/combinedfieldsoperator/combinedfieldsoperator.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/combinedfieldsoperator/combinedfieldsoperator.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package combinedfieldsoperator
package combinedfieldsoperator
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/abstractions.ts#L489-L492
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/abstractions.ts#L489-L492
type CombinedFieldsOperator struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/combinedfieldszeroterms/combinedfieldszeroterms.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/combinedfieldszeroterms/combinedfieldszeroterms.go
index 4d057d1f97..f5bd3eef97 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/combinedfieldszeroterms/combinedfieldszeroterms.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/combinedfieldszeroterms/combinedfieldszeroterms.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package combinedfieldszeroterms
package combinedfieldszeroterms
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/abstractions.ts#L494-L503
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/abstractions.ts#L494-L503
type CombinedFieldsZeroTerms struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditionop/conditionop.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditionop/conditionop.go
index f2acb273c1..c6227b4f65 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditionop/conditionop.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditionop/conditionop.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package conditionop
package conditionop
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Conditions.ts#L38-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L38-L45
type ConditionOp struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditionoperator/conditionoperator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditionoperator/conditionoperator.go
index 4b0a5c840b..bc1edc7af9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditionoperator/conditionoperator.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditionoperator/conditionoperator.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package conditionoperator
package conditionoperator
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Rule.ts#L74-L79
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Rule.ts#L74-L79
type ConditionOperator struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditiontype/conditiontype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditiontype/conditiontype.go
index 117e92c47b..f76a86e6a8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditiontype/conditiontype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditiontype/conditiontype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package conditiontype
package conditiontype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Conditions.ts#L61-L67
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L61-L67
type ConditionType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conflicts/conflicts.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conflicts/conflicts.go
index 7de848536d..8948b6f33c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conflicts/conflicts.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conflicts/conflicts.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package conflicts
package conflicts
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L183-L192
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L183-L192
type Conflicts struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectionscheme/connectionscheme.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectionscheme/connectionscheme.go
index 8eb49c9647..42099c8430 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectionscheme/connectionscheme.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectionscheme/connectionscheme.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package connectionscheme
package connectionscheme
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L39-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L39-L42
type ConnectionScheme struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/converttype/converttype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/converttype/converttype.go
index 5822678553..0853bd7048 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/converttype/converttype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/converttype/converttype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package converttype
package converttype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L435-L443
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L435-L443
type ConvertType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataattachmentformat/dataattachmentformat.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataattachmentformat/dataattachmentformat.go
index 0f37c085f4..e4d43f290d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataattachmentformat/dataattachmentformat.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataattachmentformat/dataattachmentformat.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package dataattachmentformat
package dataattachmentformat
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L187-L190
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L187-L190
type DataAttachmentFormat struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/datafeedstate/datafeedstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/datafeedstate/datafeedstate.go
index d2cbdaa9ba..2fd9ea460d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/datafeedstate/datafeedstate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/datafeedstate/datafeedstate.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package datafeedstate
package datafeedstate
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Datafeed.ts#L133-L138
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L132-L137
type DatafeedState struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataframestate/dataframestate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataframestate/dataframestate.go
index 9793826b49..e92d6e0dab 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataframestate/dataframestate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataframestate/dataframestate.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package dataframestate
package dataframestate
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Dataframe.ts#L20-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Dataframe.ts#L20-L26
type DataframeState struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/day/day.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/day/day.go
index e6b670b4e6..495f164f14 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/day/day.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/day/day.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package day
package day
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Schedule.ts#L37-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L37-L45
type Day struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/decision/decision.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/decision/decision.go
index d11f9ee960..405a9d8358 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/decision/decision.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/decision/decision.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package decision
package decision
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/allocation_explain/types.ts#L86-L95
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L86-L95
type Decision struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/delimitedpayloadencoding/delimitedpayloadencoding.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/delimitedpayloadencoding/delimitedpayloadencoding.go
index 01aa4799c0..10e6730075 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/delimitedpayloadencoding/delimitedpayloadencoding.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/delimitedpayloadencoding/delimitedpayloadencoding.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package delimitedpayloadencoding
package delimitedpayloadencoding
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L62-L66
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L62-L66
type DelimitedPayloadEncoding struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentallocationstate/deploymentallocationstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentallocationstate/deploymentallocationstate.go
index 0cabfed839..12de3dc475 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentallocationstate/deploymentallocationstate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentallocationstate/deploymentallocationstate.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package deploymentallocationstate
package deploymentallocationstate
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L289-L302
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L289-L302
type DeploymentAllocationState struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentassignmentstate/deploymentassignmentstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentassignmentstate/deploymentassignmentstate.go
index 459fd2326c..846d68ae31 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentassignmentstate/deploymentassignmentstate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentassignmentstate/deploymentassignmentstate.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package deploymentassignmentstate
package deploymentassignmentstate
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L304-L309
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L304-L309
type DeploymentAssignmentState struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentstate/deploymentstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentstate/deploymentstate.go
index ee895ae0eb..24ea59e4f8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentstate/deploymentstate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentstate/deploymentstate.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package deploymentstate
package deploymentstate
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L274-L287
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L274-L287
type DeploymentState struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deprecationlevel/deprecationlevel.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deprecationlevel/deprecationlevel.go
index 1c30b3c3cb..9a9e1705b4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deprecationlevel/deprecationlevel.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deprecationlevel/deprecationlevel.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package deprecationlevel
package deprecationlevel
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/migration/deprecations/types.ts#L20-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/deprecations/types.ts#L20-L27
type DeprecationLevel struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfiindependencemeasure/dfiindependencemeasure.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfiindependencemeasure/dfiindependencemeasure.go
index d06c297beb..730b51fecd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfiindependencemeasure/dfiindependencemeasure.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfiindependencemeasure/dfiindependencemeasure.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package dfiindependencemeasure
package dfiindependencemeasure
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Similarity.ts#L20-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Similarity.ts#L20-L24
type DFIIndependenceMeasure struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfraftereffect/dfraftereffect.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfraftereffect/dfraftereffect.go
index 322e8348a0..d568ab550f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfraftereffect/dfraftereffect.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfraftereffect/dfraftereffect.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package dfraftereffect
package dfraftereffect
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Similarity.ts#L26-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Similarity.ts#L26-L30
type DFRAfterEffect struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfrbasicmodel/dfrbasicmodel.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfrbasicmodel/dfrbasicmodel.go
index b3956eb353..355e469acb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfrbasicmodel/dfrbasicmodel.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfrbasicmodel/dfrbasicmodel.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package dfrbasicmodel
package dfrbasicmodel
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Similarity.ts#L32-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Similarity.ts#L32-L40
type DFRBasicModel struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/distanceunit/distanceunit.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/distanceunit/distanceunit.go
index 74f6aa5edd..a332ed3c74 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/distanceunit/distanceunit.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/distanceunit/distanceunit.go
@@ -16,36 +16,36 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package distanceunit
package distanceunit
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Geo.ts#L30-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L30-L40
type DistanceUnit struct {
Name string
}
var (
- In = DistanceUnit{"in"}
+ Inches = DistanceUnit{"in"}
- Ft = DistanceUnit{"ft"}
+ Feet = DistanceUnit{"ft"}
- Yd = DistanceUnit{"yd"}
+ Yards = DistanceUnit{"yd"}
- Mi = DistanceUnit{"mi"}
+ Miles = DistanceUnit{"mi"}
- Nmi = DistanceUnit{"nmi"}
+ Nauticmiles = DistanceUnit{"nmi"}
- Km = DistanceUnit{"km"}
+ Kilometers = DistanceUnit{"km"}
- M = DistanceUnit{"m"}
+ Meters = DistanceUnit{"m"}
- Cm = DistanceUnit{"cm"}
+ Centimeters = DistanceUnit{"cm"}
- Mm = DistanceUnit{"mm"}
+ Millimeters = DistanceUnit{"mm"}
)
func (d DistanceUnit) MarshalText() (text []byte, err error) {
@@ -56,23 +56,23 @@ func (d *DistanceUnit) UnmarshalText(text []byte) error {
switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") {
case "in":
- *d = In
+ *d = Inches
case "ft":
- *d = Ft
+ *d = Feet
case "yd":
- *d = Yd
+ *d = Yards
case "mi":
- *d = Mi
+ *d = Miles
case "nmi":
- *d = Nmi
+ *d = Nauticmiles
case "km":
- *d = Km
+ *d = Kilometers
case "m":
- *d = M
+ *d = Meters
case "cm":
- *d = Cm
+ *d = Centimeters
case "mm":
- *d = Mm
+ *d = Millimeters
default:
*d = DistanceUnit{string(text)}
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping/dynamicmapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping/dynamicmapping.go
index 958ff1f465..f203536a6e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping/dynamicmapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping/dynamicmapping.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package dynamicmapping
package dynamicmapping
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/dynamic-template.ts#L37-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/dynamic-template.ts#L49-L58
type DynamicMapping struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/edgengramside/edgengramside.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/edgengramside/edgengramside.go
index 9b81839ad7..5a8fce0bbd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/edgengramside/edgengramside.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/edgengramside/edgengramside.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package edgengramside
package edgengramside
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L74-L77
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L74-L77
type EdgeNGramSide struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/emailpriority/emailpriority.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/emailpriority/emailpriority.go
index 75d03f9609..170773471d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/emailpriority/emailpriority.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/emailpriority/emailpriority.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package emailpriority
package emailpriority
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L197-L203
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L197-L203
type EmailPriority struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/enrichpolicyphase/enrichpolicyphase.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/enrichpolicyphase/enrichpolicyphase.go
index bd1d4839b5..912f94635a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/enrichpolicyphase/enrichpolicyphase.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/enrichpolicyphase/enrichpolicyphase.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package enrichpolicyphase
package enrichpolicyphase
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/enrich/execute_policy/types.ts#L24-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/execute_policy/types.ts#L24-L29
type EnrichPolicyPhase struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/excludefrequent/excludefrequent.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/excludefrequent/excludefrequent.go
index d12d5e83ca..c7f4eda0c3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/excludefrequent/excludefrequent.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/excludefrequent/excludefrequent.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package excludefrequent
package excludefrequent
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Detector.ts#L127-L132
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Detector.ts#L127-L132
type ExcludeFrequent struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/executionphase/executionphase.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/executionphase/executionphase.go
index b1bf6c89bd..897a5f847e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/executionphase/executionphase.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/executionphase/executionphase.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package executionphase
package executionphase
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Execution.ts#L49-L58
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Execution.ts#L49-L58
type ExecutionPhase struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/executionstatus/executionstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/executionstatus/executionstatus.go
index 395de145a9..01d88d58ba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/executionstatus/executionstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/executionstatus/executionstatus.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package executionstatus
package executionstatus
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Execution.ts#L38-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Execution.ts#L38-L47
type ExecutionStatus struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard/expandwildcard.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard/expandwildcard.go
index 57df1bd6f9..225edbe7aa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard/expandwildcard.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard/expandwildcard.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package expandwildcard
package expandwildcard
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L201-L215
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L201-L215
type ExpandWildcard struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/feature/feature.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/feature/feature.go
index ed67d9ab99..e602613e1a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/feature/feature.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/feature/feature.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package feature
package feature
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get/IndicesGetRequest.ts#L90-L94
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get/IndicesGetRequest.ts#L90-L94
type Feature struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldsortnumerictype/fieldsortnumerictype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldsortnumerictype/fieldsortnumerictype.go
index c79bb24e25..1206dc80af 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldsortnumerictype/fieldsortnumerictype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldsortnumerictype/fieldsortnumerictype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package fieldsortnumerictype
package fieldsortnumerictype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/sort.ts#L37-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L37-L42
type FieldSortNumericType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldtype/fieldtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldtype/fieldtype.go
index c6a27b9cd1..4012989d5f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldtype/fieldtype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldtype/fieldtype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package fieldtype
package fieldtype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/Property.ts#L160-L204
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/Property.ts#L164-L210
type FieldType struct {
Name string
}
@@ -57,6 +57,8 @@ var (
Object = FieldType{"object"}
+ Version = FieldType{"version"}
+
Murmur3 = FieldType{"murmur3"}
Tokencount = FieldType{"token_count"}
@@ -114,6 +116,8 @@ var (
Sparsevector = FieldType{"sparse_vector"}
Matchonlytext = FieldType{"match_only_text"}
+
+ Icucollationkeyword = FieldType{"icu_collation_keyword"}
)
func (f FieldType) MarshalText() (text []byte, err error) {
@@ -151,6 +155,8 @@ func (f *FieldType) UnmarshalText(text []byte) error {
*f = Nested
case "object":
*f = Object
+ case "version":
+ *f = Version
case "murmur3":
*f = Murmur3
case "token_count":
@@ -209,6 +215,8 @@ func (f *FieldType) UnmarshalText(text []byte) error {
*f = Sparsevector
case "match_only_text":
*f = Matchonlytext
+ case "icu_collation_keyword":
+ *f = Icucollationkeyword
default:
*f = FieldType{string(text)}
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldvaluefactormodifier/fieldvaluefactormodifier.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldvaluefactormodifier/fieldvaluefactormodifier.go
index b886bfcdcc..0fdf41a00a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldvaluefactormodifier/fieldvaluefactormodifier.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldvaluefactormodifier/fieldvaluefactormodifier.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package fieldvaluefactormodifier
package fieldvaluefactormodifier
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L298-L341
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L298-L341
type FieldValueFactorModifier struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filtertype/filtertype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filtertype/filtertype.go
index 1ebddea4dc..8807b19caa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filtertype/filtertype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filtertype/filtertype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package filtertype
package filtertype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Filter.ts#L43-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Filter.ts#L43-L46
type FilterType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/followerindexstatus/followerindexstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/followerindexstatus/followerindexstatus.go
index e0db840816..65d6cd02ec 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/followerindexstatus/followerindexstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/followerindexstatus/followerindexstatus.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package followerindexstatus
package followerindexstatus
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/follow_info/types.ts#L30-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/follow_info/types.ts#L30-L33
type FollowerIndexStatus struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionboostmode/functionboostmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionboostmode/functionboostmode.go
index 60a0593f20..4f2fb61f2e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionboostmode/functionboostmode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionboostmode/functionboostmode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package functionboostmode
package functionboostmode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L270-L296
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L270-L296
type FunctionBoostMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionscoremode/functionscoremode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionscoremode/functionscoremode.go
index 919f88bdd6..bbfa7d4074 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionscoremode/functionscoremode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionscoremode/functionscoremode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package functionscoremode
package functionscoremode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L243-L268
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L243-L268
type FunctionScoreMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy/gappolicy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy/gappolicy.go
index cfc23a4c39..9635658938 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy/gappolicy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy/gappolicy.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package gappolicy
package gappolicy
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L61-L76
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L61-L76
type GapPolicy struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geodistancetype/geodistancetype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geodistancetype/geodistancetype.go
index 85c48094b6..129f6ab18f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geodistancetype/geodistancetype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geodistancetype/geodistancetype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package geodistancetype
package geodistancetype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Geo.ts#L42-L51
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L42-L51
type GeoDistanceType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoexecution/geoexecution.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoexecution/geoexecution.go
index e2c026cc66..4f9c312e0d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoexecution/geoexecution.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoexecution/geoexecution.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package geoexecution
package geoexecution
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/geo.ts#L52-L55
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L52-L55
type GeoExecution struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoorientation/geoorientation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoorientation/geoorientation.go
index 5c6c032bf5..d98a5b91a1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoorientation/geoorientation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoorientation/geoorientation.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package geoorientation
package geoorientation
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/geo.ts#L34-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/geo.ts#L34-L39
type GeoOrientation struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoshaperelation/geoshaperelation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoshaperelation/geoshaperelation.go
index dff22d1853..eb9b449402 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoshaperelation/geoshaperelation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoshaperelation/geoshaperelation.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package geoshaperelation
package geoshaperelation
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Geo.ts#L64-L82
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L64-L82
type GeoShapeRelation struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geostrategy/geostrategy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geostrategy/geostrategy.go
index 15659e4b87..f2f13d66af 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geostrategy/geostrategy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geostrategy/geostrategy.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package geostrategy
package geostrategy
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/geo.ts#L56-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/geo.ts#L56-L59
type GeoStrategy struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geovalidationmethod/geovalidationmethod.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geovalidationmethod/geovalidationmethod.go
index 4a30574cd1..1550ce6621 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geovalidationmethod/geovalidationmethod.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geovalidationmethod/geovalidationmethod.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package geovalidationmethod
package geovalidationmethod
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/geo.ts#L147-L157
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L147-L157
type GeoValidationMethod struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/granttype/granttype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/granttype/granttype.go
index b2b842b6dd..d36390d9ea 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/granttype/granttype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/granttype/granttype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package granttype
package granttype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/GrantType.ts#L20-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/GrantType.ts#L20-L29
type GrantType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gridaggregationtype/gridaggregationtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gridaggregationtype/gridaggregationtype.go
index 1cfc8a3298..f24a26c6ff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gridaggregationtype/gridaggregationtype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gridaggregationtype/gridaggregationtype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package gridaggregationtype
package gridaggregationtype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search_mvt/_types/GridType.ts#L30-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_mvt/_types/GridType.ts#L30-L33
type GridAggregationType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gridtype/gridtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gridtype/gridtype.go
index cf05369e8f..3cee507fda 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gridtype/gridtype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gridtype/gridtype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package gridtype
package gridtype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search_mvt/_types/GridType.ts#L20-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_mvt/_types/GridType.ts#L20-L28
type GridType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/groupby/groupby.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/groupby/groupby.go
index a354cbe7e9..32021969eb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/groupby/groupby.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/groupby/groupby.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package groupby
package groupby
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/tasks/_types/GroupBy.ts#L20-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/_types/GroupBy.ts#L20-L27
type GroupBy struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/healthstatus/healthstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/healthstatus/healthstatus.go
index a5ed7bef3d..4a8e41ff74 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/healthstatus/healthstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/healthstatus/healthstatus.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package healthstatus
package healthstatus
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L219-L239
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L219-L239
type HealthStatus struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterencoder/highlighterencoder.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterencoder/highlighterencoder.go
index 85b96a1c58..04da8359fc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterencoder/highlighterencoder.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterencoder/highlighterencoder.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package highlighterencoder
package highlighterencoder
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/highlighting.ts#L158-L161
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L158-L161
type HighlighterEncoder struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterfragmenter/highlighterfragmenter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterfragmenter/highlighterfragmenter.go
index b2ed8705f4..3b0efbef4b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterfragmenter/highlighterfragmenter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterfragmenter/highlighterfragmenter.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package highlighterfragmenter
package highlighterfragmenter
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/highlighting.ts#L163-L166
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L163-L166
type HighlighterFragmenter struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterorder/highlighterorder.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterorder/highlighterorder.go
index 74e9ba6895..06f07fbdf1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterorder/highlighterorder.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterorder/highlighterorder.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package highlighterorder
package highlighterorder
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/highlighting.ts#L168-L170
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L168-L170
type HighlighterOrder struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertagsschema/highlightertagsschema.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertagsschema/highlightertagsschema.go
index 917c2eaf52..0daa52ae2a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertagsschema/highlightertagsschema.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertagsschema/highlightertagsschema.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package highlightertagsschema
package highlightertagsschema
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/highlighting.ts#L172-L174
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L172-L174
type HighlighterTagsSchema struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertype/highlightertype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertype/highlightertype.go
index 113bede458..061fdd7557 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertype/highlightertype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertype/highlightertype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package highlightertype
package highlightertype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/highlighting.ts#L176-L191
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L176-L191
type HighlighterType struct {
Name string
}
@@ -31,7 +31,7 @@ type HighlighterType struct {
var (
Plain = HighlighterType{"plain"}
- Fvh = HighlighterType{"fvh"}
+ Fastvector = HighlighterType{"fvh"}
Unified = HighlighterType{"unified"}
)
@@ -46,7 +46,7 @@ func (h *HighlighterType) UnmarshalText(text []byte) error {
case "plain":
*h = Plain
case "fvh":
- *h = Fvh
+ *h = Fastvector
case "unified":
*h = Unified
default:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/holtwinterstype/holtwinterstype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/holtwinterstype/holtwinterstype.go
index dcbcf16c2b..248faf8c97 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/holtwinterstype/holtwinterstype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/holtwinterstype/holtwinterstype.go
@@ -16,22 +16,22 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package holtwinterstype
package holtwinterstype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L283-L286
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L283-L286
type HoltWintersType struct {
Name string
}
var (
- Add = HoltWintersType{"add"}
+ Additive = HoltWintersType{"add"}
- Mult = HoltWintersType{"mult"}
+ Multiplicative = HoltWintersType{"mult"}
)
func (h HoltWintersType) MarshalText() (text []byte, err error) {
@@ -42,9 +42,9 @@ func (h *HoltWintersType) UnmarshalText(text []byte) error {
switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") {
case "add":
- *h = Add
+ *h = Additive
case "mult":
- *h = Mult
+ *h = Multiplicative
default:
*h = HoltWintersType{string(text)}
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/httpinputmethod/httpinputmethod.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/httpinputmethod/httpinputmethod.go
index a9ca713696..daae0c9726 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/httpinputmethod/httpinputmethod.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/httpinputmethod/httpinputmethod.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package httpinputmethod
package httpinputmethod
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L59-L65
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L59-L65
type HttpInputMethod struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ibdistribution/ibdistribution.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ibdistribution/ibdistribution.go
index 858a6d00ea..f6bdb18dd4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ibdistribution/ibdistribution.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ibdistribution/ibdistribution.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package ibdistribution
package ibdistribution
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Similarity.ts#L42-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Similarity.ts#L42-L45
type IBDistribution struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/iblambda/iblambda.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/iblambda/iblambda.go
index 5ee54744e5..5497063da4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/iblambda/iblambda.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/iblambda/iblambda.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package iblambda
package iblambda
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Similarity.ts#L47-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Similarity.ts#L47-L50
type IBLambda struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationalternate/icucollationalternate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationalternate/icucollationalternate.go
index f52eed860c..8b92c9c6a8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationalternate/icucollationalternate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationalternate/icucollationalternate.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package icucollationalternate
package icucollationalternate
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/icu-plugin.ts#L89-L92
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L89-L92
type IcuCollationAlternate struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationcasefirst/icucollationcasefirst.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationcasefirst/icucollationcasefirst.go
index 68202cc78a..82beb495ae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationcasefirst/icucollationcasefirst.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationcasefirst/icucollationcasefirst.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package icucollationcasefirst
package icucollationcasefirst
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/icu-plugin.ts#L94-L97
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L94-L97
type IcuCollationCaseFirst struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationdecomposition/icucollationdecomposition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationdecomposition/icucollationdecomposition.go
index 178056eff9..93f66bad0a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationdecomposition/icucollationdecomposition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationdecomposition/icucollationdecomposition.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package icucollationdecomposition
package icucollationdecomposition
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/icu-plugin.ts#L99-L102
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L99-L102
type IcuCollationDecomposition struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationstrength/icucollationstrength.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationstrength/icucollationstrength.go
index b6b14066cb..cb87b73566 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationstrength/icucollationstrength.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationstrength/icucollationstrength.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package icucollationstrength
package icucollationstrength
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/icu-plugin.ts#L104-L110
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L104-L110
type IcuCollationStrength struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationmode/icunormalizationmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationmode/icunormalizationmode.go
index 20ce2e178e..df430aec76 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationmode/icunormalizationmode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationmode/icunormalizationmode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package icunormalizationmode
package icunormalizationmode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/icu-plugin.ts#L78-L81
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L78-L81
type IcuNormalizationMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationtype/icunormalizationtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationtype/icunormalizationtype.go
index bd935b825b..e7bb536380 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationtype/icunormalizationtype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationtype/icunormalizationtype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package icunormalizationtype
package icunormalizationtype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/icu-plugin.ts#L83-L87
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L83-L87
type IcuNormalizationType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icutransformdirection/icutransformdirection.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icutransformdirection/icutransformdirection.go
index 4dca17c82e..6ba58552a8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icutransformdirection/icutransformdirection.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icutransformdirection/icutransformdirection.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package icutransformdirection
package icutransformdirection
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/icu-plugin.ts#L73-L76
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L73-L76
type IcuTransformDirection struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/impactarea/impactarea.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/impactarea/impactarea.go
index 94aa19992d..a9ddb63645 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/impactarea/impactarea.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/impactarea/impactarea.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package impactarea
package impactarea
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L72-L77
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L72-L77
type ImpactArea struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/include/include.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/include/include.go
index 13c34159fe..3cccaba3ef 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/include/include.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/include/include.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package include
package include
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Include.ts#L20-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Include.ts#L20-L47
type Include struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexcheckonstartup/indexcheckonstartup.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexcheckonstartup/indexcheckonstartup.go
index e614f49aa0..06070b7151 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexcheckonstartup/indexcheckonstartup.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexcheckonstartup/indexcheckonstartup.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package indexcheckonstartup
package indexcheckonstartup
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L260-L267
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L260-L267
type IndexCheckOnStartup struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexingjobstate/indexingjobstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexingjobstate/indexingjobstate.go
index 2488180741..c8d5bd9d33 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexingjobstate/indexingjobstate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexingjobstate/indexingjobstate.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package indexingjobstate
package indexingjobstate
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/get_jobs/types.ts#L66-L72
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_jobs/types.ts#L66-L72
type IndexingJobState struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexmetadatastate/indexmetadatastate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexmetadatastate/indexmetadatastate.go
index 049545e180..ecb32bcc43 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexmetadatastate/indexmetadatastate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexmetadatastate/indexmetadatastate.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package indexmetadatastate
package indexmetadatastate
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L225-L232
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L225-L232
type IndexMetadataState struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions/indexoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions/indexoptions.go
index 9759f26d99..a11e004ae8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions/indexoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions/indexoptions.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package indexoptions
package indexoptions
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L243-L248
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L245-L250
type IndexOptions struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexprivilege/indexprivilege.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexprivilege/indexprivilege.go
index e85e49dffb..48bb2edb69 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexprivilege/indexprivilege.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexprivilege/indexprivilege.go
@@ -16,21 +16,19 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package indexprivilege
package indexprivilege
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/Privileges.ts#L166-L187
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L188-L212
type IndexPrivilege struct {
Name string
}
var (
- None = IndexPrivilege{"none"}
-
All = IndexPrivilege{"all"}
Autoconfigure = IndexPrivilege{"auto_configure"}
@@ -41,6 +39,10 @@ var (
Createindex = IndexPrivilege{"create_index"}
+ Crossclusterreplication = IndexPrivilege{"cross_cluster_replication"}
+
+ Crossclusterreplicationinternal = IndexPrivilege{"cross_cluster_replication_internal"}
+
Delete = IndexPrivilege{"delete"}
Deleteindex = IndexPrivilege{"delete_index"}
@@ -51,6 +53,8 @@ var (
Manage = IndexPrivilege{"manage"}
+ Managedatastreamlifecycle = IndexPrivilege{"manage_data_stream_lifecycle"}
+
Managefollowindex = IndexPrivilege{"manage_follow_index"}
Manageilm = IndexPrivilege{"manage_ilm"}
@@ -59,6 +63,8 @@ var (
Monitor = IndexPrivilege{"monitor"}
+ None = IndexPrivilege{"none"}
+
Read = IndexPrivilege{"read"}
Readcrosscluster = IndexPrivilege{"read_cross_cluster"}
@@ -75,8 +81,6 @@ func (i IndexPrivilege) MarshalText() (text []byte, err error) {
func (i *IndexPrivilege) UnmarshalText(text []byte) error {
switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") {
- case "none":
- *i = None
case "all":
*i = All
case "auto_configure":
@@ -87,6 +91,10 @@ func (i *IndexPrivilege) UnmarshalText(text []byte) error {
*i = Createdoc
case "create_index":
*i = Createindex
+ case "cross_cluster_replication":
+ *i = Crossclusterreplication
+ case "cross_cluster_replication_internal":
+ *i = Crossclusterreplicationinternal
case "delete":
*i = Delete
case "delete_index":
@@ -97,6 +105,8 @@ func (i *IndexPrivilege) UnmarshalText(text []byte) error {
*i = Maintenance
case "manage":
*i = Manage
+ case "manage_data_stream_lifecycle":
+ *i = Managedatastreamlifecycle
case "manage_follow_index":
*i = Managefollowindex
case "manage_ilm":
@@ -105,6 +115,8 @@ func (i *IndexPrivilege) UnmarshalText(text []byte) error {
*i = Manageleaderindex
case "monitor":
*i = Monitor
+ case "none":
+ *i = None
case "read":
*i = Read
case "read_cross_cluster":
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexroutingallocationoptions/indexroutingallocationoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexroutingallocationoptions/indexroutingallocationoptions.go
index 330f9053dd..2e3762febd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexroutingallocationoptions/indexroutingallocationoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexroutingallocationoptions/indexroutingallocationoptions.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package indexroutingallocationoptions
package indexroutingallocationoptions
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexRouting.ts#L38-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L38-L43
type IndexRoutingAllocationOptions struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexroutingrebalanceoptions/indexroutingrebalanceoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexroutingrebalanceoptions/indexroutingrebalanceoptions.go
index 7a984b1512..ae862c4ecf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexroutingrebalanceoptions/indexroutingrebalanceoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexroutingrebalanceoptions/indexroutingrebalanceoptions.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package indexroutingrebalanceoptions
package indexroutingrebalanceoptions
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexRouting.ts#L45-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L45-L50
type IndexRoutingRebalanceOptions struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus/indicatorhealthstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus/indicatorhealthstatus.go
index 3a46828b4a..ae4ad1e792 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus/indicatorhealthstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus/indicatorhealthstatus.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package indicatorhealthstatus
package indicatorhealthstatus
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L25-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L25-L30
type IndicatorHealthStatus struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/inputtype/inputtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/inputtype/inputtype.go
index 1a3ce378a9..d6fb23036c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/inputtype/inputtype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/inputtype/inputtype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package inputtype
package inputtype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L100-L104
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L100-L104
type InputType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jobblockedreason/jobblockedreason.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jobblockedreason/jobblockedreason.go
index ac74158da2..a22eb9966e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jobblockedreason/jobblockedreason.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jobblockedreason/jobblockedreason.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package jobblockedreason
package jobblockedreason
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Job.ts#L397-L401
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L397-L401
type JobBlockedReason struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jobstate/jobstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jobstate/jobstate.go
index 2c7b84be7e..efbf1ea04f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jobstate/jobstate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jobstate/jobstate.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package jobstate
package jobstate
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Job.ts#L36-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L36-L52
type JobState struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jsonprocessorconflictstrategy/jsonprocessorconflictstrategy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jsonprocessorconflictstrategy/jsonprocessorconflictstrategy.go
index 02ea2c7f5c..962c1093d1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jsonprocessorconflictstrategy/jsonprocessorconflictstrategy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jsonprocessorconflictstrategy/jsonprocessorconflictstrategy.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package jsonprocessorconflictstrategy
package jsonprocessorconflictstrategy
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L849-L854
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L849-L854
type JsonProcessorConflictStrategy struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/keeptypesmode/keeptypesmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/keeptypesmode/keeptypesmode.go
index 6b46dc8816..835f0c0b1b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/keeptypesmode/keeptypesmode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/keeptypesmode/keeptypesmode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package keeptypesmode
package keeptypesmode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L213-L216
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L215-L218
type KeepTypesMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/kuromojitokenizationmode/kuromojitokenizationmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/kuromojitokenizationmode/kuromojitokenizationmode.go
index 7dafe20f51..4bcf43846d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/kuromojitokenizationmode/kuromojitokenizationmode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/kuromojitokenizationmode/kuromojitokenizationmode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package kuromojitokenizationmode
package kuromojitokenizationmode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/kuromoji-plugin.ts#L52-L56
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/kuromoji-plugin.ts#L52-L56
type KuromojiTokenizationMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/language/language.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/language/language.go
index 3c1b574cc0..7a44b4d1d5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/language/language.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/language/language.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package language
package language
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/languages.ts#L20-L55
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/languages.ts#L20-L55
type Language struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/level/level.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/level/level.go
index 2f1b5db1c0..c4a18ac683 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/level/level.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/level/level.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package level
package level
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L249-L253
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L249-L253
type Level struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensestatus/licensestatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensestatus/licensestatus.go
index f3c4b3a2c1..d083a7f5ac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensestatus/licensestatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensestatus/licensestatus.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package licensestatus
package licensestatus
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/license/_types/License.ts#L35-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/_types/License.ts#L35-L40
type LicenseStatus struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensetype/licensetype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensetype/licensetype.go
index af896c5502..40b05c8a00 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensetype/licensetype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensetype/licensetype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package licensetype
package licensetype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/license/_types/License.ts#L23-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/_types/License.ts#L23-L33
type LicenseType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/lifecycleoperationmode/lifecycleoperationmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/lifecycleoperationmode/lifecycleoperationmode.go
index 965e714cc0..6a5d6574ee 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/lifecycleoperationmode/lifecycleoperationmode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/lifecycleoperationmode/lifecycleoperationmode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package lifecycleoperationmode
package lifecycleoperationmode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Lifecycle.ts#L20-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Lifecycle.ts#L20-L24
type LifecycleOperationMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/managedby/managedby.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/managedby/managedby.go
index 0788c625b1..39ca2b2f94 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/managedby/managedby.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/managedby/managedby.go
@@ -16,22 +16,22 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package managedby
package managedby
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/DataStream.ts#L32-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/DataStream.ts#L32-L37
type ManagedBy struct {
Name string
}
var (
- IndexLifecycleManagement = ManagedBy{"Index Lifecycle Management"}
+ Ilm = ManagedBy{"Index Lifecycle Management"}
- DataStreamLifecycle = ManagedBy{"Data stream lifecycle"}
+ Datastream = ManagedBy{"Data stream lifecycle"}
Unmanaged = ManagedBy{"Unmanaged"}
)
@@ -44,9 +44,9 @@ func (m *ManagedBy) UnmarshalText(text []byte) error {
switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") {
case "Index Lifecycle Management":
- *m = IndexLifecycleManagement
+ *m = Ilm
case "Data stream lifecycle":
- *m = DataStreamLifecycle
+ *m = Datastream
case "Unmanaged":
*m = Unmanaged
default:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/matchtype/matchtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/matchtype/matchtype.go
index 809a91232c..2e4dd5bf36 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/matchtype/matchtype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/matchtype/matchtype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package matchtype
package matchtype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/dynamic-template.ts#L32-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/dynamic-template.ts#L44-L47
type MatchType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/memorystatus/memorystatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/memorystatus/memorystatus.go
index ea3a525131..8f2bd79061 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/memorystatus/memorystatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/memorystatus/memorystatus.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package memorystatus
package memorystatus
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Model.ts#L88-L92
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Model.ts#L88-L92
type MemoryStatus struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/metric/metric.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/metric/metric.go
index 43e285d22b..ef9b817080 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/metric/metric.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/metric/metric.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package metric
package metric
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/_types/Metric.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/_types/Metric.ts#L22-L28
type Metric struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/migrationstatus/migrationstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/migrationstatus/migrationstatus.go
index 3efb6815d6..d79d7dcf68 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/migrationstatus/migrationstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/migrationstatus/migrationstatus.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package migrationstatus
package migrationstatus
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L30-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L30-L35
type MigrationStatus struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/minimuminterval/minimuminterval.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/minimuminterval/minimuminterval.go
index 85872a1620..a86fce2a6a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/minimuminterval/minimuminterval.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/minimuminterval/minimuminterval.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package minimuminterval
package minimuminterval
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L100-L107
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L104-L111
type MinimumInterval struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder/missingorder.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder/missingorder.go
index 812899e4ea..191432a4c3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder/missingorder.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder/missingorder.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package missingorder
package missingorder
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/AggregationContainer.ts#L518-L522
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/AggregationContainer.ts#L517-L521
type MissingOrder struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/month/month.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/month/month.go
index 6894cc1cab..feffc75dbf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/month/month.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/month/month.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package month
package month
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Schedule.ts#L65-L78
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L65-L78
type Month struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode/multivaluemode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode/multivaluemode.go
index 1d267cc21a..de1ab9eeea 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode/multivaluemode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode/multivaluemode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package multivaluemode
package multivaluemode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L343-L360
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L343-L360
type MultiValueMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole/noderole.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole/noderole.go
index ebdfc4787f..54c7593a5b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole/noderole.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole/noderole.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package noderole
package noderole
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Node.ts#L77-L95
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Node.ts#L77-L95
type NodeRole struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noridecompoundmode/noridecompoundmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noridecompoundmode/noridecompoundmode.go
index 182db85d85..bbf7e6dffa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noridecompoundmode/noridecompoundmode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noridecompoundmode/noridecompoundmode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package noridecompoundmode
package noridecompoundmode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L75-L79
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L75-L79
type NoriDecompoundMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalization/normalization.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalization/normalization.go
index 26bf8ff222..a92a053d06 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalization/normalization.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalization/normalization.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package normalization
package normalization
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Similarity.ts#L52-L58
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Similarity.ts#L52-L58
type Normalization struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalizemethod/normalizemethod.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalizemethod/normalizemethod.go
index 6e48959d55..5d67ab21a7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalizemethod/normalizemethod.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalizemethod/normalizemethod.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package normalizemethod
package normalizemethod
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L326-L352
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L326-L352
type NormalizeMethod struct {
Name string
}
@@ -37,7 +37,7 @@ var (
Mean = NormalizeMethod{"mean"}
- ZScore = NormalizeMethod{"z-score"}
+ Zscore = NormalizeMethod{"z-score"}
Softmax = NormalizeMethod{"softmax"}
)
@@ -58,7 +58,7 @@ func (n *NormalizeMethod) UnmarshalText(text []byte) error {
case "mean":
*n = Mean
case "z-score":
- *n = ZScore
+ *n = Zscore
case "softmax":
*n = Softmax
default:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/numericfielddataformat/numericfielddataformat.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/numericfielddataformat/numericfielddataformat.go
index adf758546d..fbf02e2eac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/numericfielddataformat/numericfielddataformat.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/numericfielddataformat/numericfielddataformat.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package numericfielddataformat
package numericfielddataformat
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/NumericFielddataFormat.ts#L20-L23
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/NumericFielddataFormat.ts#L20-L23
type NumericFielddataFormat struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror/onscripterror.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror/onscripterror.go
index d1ed4c797b..0313e77428 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror/onscripterror.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror/onscripterror.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package onscripterror
package onscripterror
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L129-L132
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L131-L134
type OnScriptError struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operationtype/operationtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operationtype/operationtype.go
index 7aa19bd579..4845e2837a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operationtype/operationtype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operationtype/operationtype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package operationtype
package operationtype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/bulk/types.ts#L83-L88
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L83-L88
type OperationType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator/operator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator/operator.go
index ebf8fa954c..ebc0c82429 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator/operator.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator/operator.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package operator
package operator
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/Operator.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/Operator.ts#L22-L27
type Operator struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/optype/optype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/optype/optype.go
index f0e2e6520d..92b1ac8332 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/optype/optype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/optype/optype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package optype
package optype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L255-L264
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L255-L264
type OpType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutycontexttype/pagerdutycontexttype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutycontexttype/pagerdutycontexttype.go
index ca598c6522..194da6b60a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutycontexttype/pagerdutycontexttype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutycontexttype/pagerdutycontexttype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package pagerdutycontexttype
package pagerdutycontexttype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L67-L70
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L67-L70
type PagerDutyContextType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutyeventtype/pagerdutyeventtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutyeventtype/pagerdutyeventtype.go
index b0c0e4de50..43916350ed 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutyeventtype/pagerdutyeventtype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutyeventtype/pagerdutyeventtype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package pagerdutyeventtype
package pagerdutyeventtype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L72-L76
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L72-L76
type PagerDutyEventType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticencoder/phoneticencoder.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticencoder/phoneticencoder.go
index 0f060783f7..0c91895be8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticencoder/phoneticencoder.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticencoder/phoneticencoder.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package phoneticencoder
package phoneticencoder
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/phonetic-plugin.ts#L23-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/phonetic-plugin.ts#L23-L36
type PhoneticEncoder struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticlanguage/phoneticlanguage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticlanguage/phoneticlanguage.go
index 30a475694a..0edee349d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticlanguage/phoneticlanguage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticlanguage/phoneticlanguage.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package phoneticlanguage
package phoneticlanguage
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/phonetic-plugin.ts#L38-L51
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/phonetic-plugin.ts#L38-L51
type PhoneticLanguage struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticnametype/phoneticnametype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticnametype/phoneticnametype.go
index 4b747b45db..0a95fc702f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticnametype/phoneticnametype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticnametype/phoneticnametype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package phoneticnametype
package phoneticnametype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/phonetic-plugin.ts#L53-L57
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/phonetic-plugin.ts#L53-L57
type PhoneticNameType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticruletype/phoneticruletype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticruletype/phoneticruletype.go
index 7244e40188..30130ab1c8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticruletype/phoneticruletype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticruletype/phoneticruletype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package phoneticruletype
package phoneticruletype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/phonetic-plugin.ts#L59-L62
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/phonetic-plugin.ts#L59-L62
type PhoneticRuleType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/policytype/policytype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/policytype/policytype.go
index 865f8c5046..4cf0debcd3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/policytype/policytype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/policytype/policytype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package policytype
package policytype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/enrich/_types/Policy.ts#L28-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/_types/Policy.ts#L28-L32
type PolicyType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/quantifier/quantifier.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/quantifier/quantifier.go
index d3b1d5effd..99af96e2b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/quantifier/quantifier.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/quantifier/quantifier.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package quantifier
package quantifier
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Conditions.ts#L71-L74
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L71-L74
type Quantifier struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryrulecriteriatype/queryrulecriteriatype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryrulecriteriatype/queryrulecriteriatype.go
index c1b8a605b5..11946e6829 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryrulecriteriatype/queryrulecriteriatype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryrulecriteriatype/queryrulecriteriatype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package queryrulecriteriatype
package queryrulecriteriatype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/query_ruleset/_types/QueryRuleset.ts#L54-L65
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/_types/QueryRuleset.ts#L54-L65
type QueryRuleCriteriaType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype/queryruletype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype/queryruletype.go
index dcb440559e..1f023dc0fe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype/queryruletype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype/queryruletype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package queryruletype
package queryruletype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/query_ruleset/_types/QueryRuleset.ts#L44-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/_types/QueryRuleset.ts#L44-L46
type QueryRuleType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation/rangerelation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation/rangerelation.go
index 6ecc5f9a36..4ca01e5368 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation/rangerelation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation/rangerelation.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package rangerelation
package rangerelation
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L170-L183
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L170-L183
type RangeRelation struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ratemode/ratemode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ratemode/ratemode.go
index c50d53a65c..150bf75be2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ratemode/ratemode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ratemode/ratemode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package ratemode
package ratemode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L243-L252
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L243-L252
type RateMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh/refresh.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh/refresh.go
index 9033ce4f43..0da048c014 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh/refresh.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh/refresh.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package refresh
package refresh
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L266-L273
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L266-L273
type Refresh struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/responsecontenttype/responsecontenttype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/responsecontenttype/responsecontenttype.go
index 591bd50375..f9292ddbc7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/responsecontenttype/responsecontenttype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/responsecontenttype/responsecontenttype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package responsecontenttype
package responsecontenttype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L106-L110
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L106-L110
type ResponseContentType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result/result.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result/result.go
index d2ef0fcdff..b2508745a4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result/result.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result/result.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package result
package result
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Result.ts#L20-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Result.ts#L20-L26
type Result struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/resultposition/resultposition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/resultposition/resultposition.go
index fe1e5bc377..9a4aa19d2f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/resultposition/resultposition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/resultposition/resultposition.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package resultposition
package resultposition
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/eql/search/types.ts#L20-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/search/types.ts#L20-L32
type ResultPosition struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/routingstate/routingstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/routingstate/routingstate.go
index 80c8ab8255..2fd17c02c9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/routingstate/routingstate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/routingstate/routingstate.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package routingstate
package routingstate
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L351-L372
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L351-L372
type RoutingState struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ruleaction/ruleaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ruleaction/ruleaction.go
index 053cf0d99c..9ad763a8ba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ruleaction/ruleaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ruleaction/ruleaction.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package ruleaction
package ruleaction
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Rule.ts#L41-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Rule.ts#L41-L50
type RuleAction struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/runtimefieldtype/runtimefieldtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/runtimefieldtype/runtimefieldtype.go
index 071264a97b..1686a1cce0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/runtimefieldtype/runtimefieldtype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/runtimefieldtype/runtimefieldtype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package runtimefieldtype
package runtimefieldtype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/RuntimeFields.ts#L56-L66
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/RuntimeFields.ts#L56-L66
type RuntimeFieldType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sampleraggregationexecutionhint/sampleraggregationexecutionhint.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sampleraggregationexecutionhint/sampleraggregationexecutionhint.go
index e6be3bec5c..088e7e5c4a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sampleraggregationexecutionhint/sampleraggregationexecutionhint.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sampleraggregationexecutionhint/sampleraggregationexecutionhint.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package sampleraggregationexecutionhint
package sampleraggregationexecutionhint
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L341-L354
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L345-L358
type SamplerAggregationExecutionHint struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scoremode/scoremode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scoremode/scoremode.go
index 233c44c84e..b70edbe41b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scoremode/scoremode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scoremode/scoremode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package scoremode
package scoremode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/rescoring.ts#L52-L74
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/rescoring.ts#L64-L86
type ScoreMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage/scriptlanguage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage/scriptlanguage.go
index 4364bf82e6..489d34ae79 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage/scriptlanguage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage/scriptlanguage.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package scriptlanguage
package scriptlanguage
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Scripting.ts#L24-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Scripting.ts#L24-L45
type ScriptLanguage struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptsorttype/scriptsorttype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptsorttype/scriptsorttype.go
index d418770129..f13e172f92 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptsorttype/scriptsorttype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptsorttype/scriptsorttype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package scriptsorttype
package scriptsorttype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/sort.ts#L76-L80
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L76-L80
type ScriptSortType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype/searchtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype/searchtype.go
index 9c511d011c..94972755a1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype/searchtype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype/searchtype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package searchtype
package searchtype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L275-L280
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L275-L280
type SearchType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortmissing/segmentsortmissing.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortmissing/segmentsortmissing.go
index da4a041d78..98eeda8c9d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortmissing/segmentsortmissing.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortmissing/segmentsortmissing.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package segmentsortmissing
package segmentsortmissing
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSegmentSort.ts#L43-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSegmentSort.ts#L43-L46
type SegmentSortMissing struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortmode/segmentsortmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortmode/segmentsortmode.go
index c1b9ead6d4..8be3b9347f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortmode/segmentsortmode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortmode/segmentsortmode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package segmentsortmode
package segmentsortmode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSegmentSort.ts#L36-L41
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSegmentSort.ts#L36-L41
type SegmentSortMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortorder/segmentsortorder.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortorder/segmentsortorder.go
index f0e05892e1..7276589d28 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortorder/segmentsortorder.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortorder/segmentsortorder.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package segmentsortorder
package segmentsortorder
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSegmentSort.ts#L29-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSegmentSort.ts#L29-L34
type SegmentSortOrder struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shapetype/shapetype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shapetype/shapetype.go
index c9181a22db..032afceb20 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shapetype/shapetype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shapetype/shapetype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package shapetype
package shapetype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L1070-L1073
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1074-L1077
type ShapeType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardroutingstate/shardroutingstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardroutingstate/shardroutingstate.go
index 18e337da1b..afdd29c807 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardroutingstate/shardroutingstate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardroutingstate/shardroutingstate.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package shardroutingstate
package shardroutingstate
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L169-L174
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L169-L174
type ShardRoutingState struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardsstatsstage/shardsstatsstage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardsstatsstage/shardsstatsstage.go
index 0dcca80661..c09f02701c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardsstatsstage/shardsstatsstage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardsstatsstage/shardsstatsstage.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package shardsstatsstage
package shardsstatsstage
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotShardsStatsStage.ts#L20-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotShardsStatsStage.ts#L20-L31
type ShardsStatsStage struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardstoreallocation/shardstoreallocation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardstoreallocation/shardstoreallocation.go
index e5b8bed571..8e1a28ef1b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardstoreallocation/shardstoreallocation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardstoreallocation/shardstoreallocation.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package shardstoreallocation
package shardstoreallocation
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/shard_stores/types.ts#L45-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/types.ts#L45-L49
type ShardStoreAllocation struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardstorestatus/shardstorestatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardstorestatus/shardstorestatus.go
index ab6fcfe5c5..136e93d0ff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardstorestatus/shardstorestatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardstorestatus/shardstorestatus.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package shardstorestatus
package shardstorestatus
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/shard_stores/types.ts#L60-L69
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/types.ts#L60-L69
type ShardStoreStatus struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shutdownstatus/shutdownstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shutdownstatus/shutdownstatus.go
index c46e00e3a6..5c8ea93387 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shutdownstatus/shutdownstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shutdownstatus/shutdownstatus.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package shutdownstatus
package shutdownstatus
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L45-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L45-L50
type ShutdownStatus struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shutdowntype/shutdowntype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shutdowntype/shutdowntype.go
index eb753157f6..588beeaba0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shutdowntype/shutdowntype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shutdowntype/shutdowntype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package shutdowntype
package shutdowntype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L40-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L40-L43
type ShutdownType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snapshotsort/snapshotsort.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snapshotsort/snapshotsort.go
index f2642128e7..7f18eb569d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snapshotsort/snapshotsort.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snapshotsort/snapshotsort.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package snapshotsort
package snapshotsort
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotInfo.ts#L73-L93
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotInfo.ts#L73-L93
type SnapshotSort struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snapshotupgradestate/snapshotupgradestate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snapshotupgradestate/snapshotupgradestate.go
index 8964b31c40..d5040e65f5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snapshotupgradestate/snapshotupgradestate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snapshotupgradestate/snapshotupgradestate.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package snapshotupgradestate
package snapshotupgradestate
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Model.ts#L94-L99
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Model.ts#L94-L99
type SnapshotUpgradeState struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snowballlanguage/snowballlanguage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snowballlanguage/snowballlanguage.go
index 97a670e087..b7b87f3253 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snowballlanguage/snowballlanguage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snowballlanguage/snowballlanguage.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package snowballlanguage
package snowballlanguage
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/languages.ts#L57-L80
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/languages.ts#L57-L80
type SnowballLanguage struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode/sortmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode/sortmode.go
index 2d4391b761..c13a05396d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode/sortmode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode/sortmode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package sortmode
package sortmode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/sort.ts#L103-L112
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L103-L112
type SortMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder/sortorder.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder/sortorder.go
index 1120597ec7..99b52007c3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder/sortorder.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder/sortorder.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package sortorder
package sortorder
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/sort.ts#L114-L123
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L114-L123
type SortOrder struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sourcefieldmode/sourcefieldmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sourcefieldmode/sourcefieldmode.go
index 64bf5418c1..7696aa307a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sourcefieldmode/sourcefieldmode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sourcefieldmode/sourcefieldmode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package sourcefieldmode
package sourcefieldmode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/meta-fields.ts#L67-L75
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L67-L75
type SourceFieldMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/statslevel/statslevel.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/statslevel/statslevel.go
index ac9e8b298e..705466ce55 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/statslevel/statslevel.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/statslevel/statslevel.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package statslevel
package statslevel
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/searchable_snapshots/_types/stats.ts#L20-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/_types/stats.ts#L20-L24
type StatsLevel struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/storagetype/storagetype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/storagetype/storagetype.go
index f78df6020e..f1e9ebb258 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/storagetype/storagetype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/storagetype/storagetype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package storagetype
package storagetype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L509-L539
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L509-L537
type StorageType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/stringdistance/stringdistance.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/stringdistance/stringdistance.go
index f1f7869b0e..dda7c8ace6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/stringdistance/stringdistance.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/stringdistance/stringdistance.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package stringdistance
package stringdistance
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L469-L490
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L469-L490
type StringDistance struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestmode/suggestmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestmode/suggestmode.go
index 8a1087b502..59a09961c3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestmode/suggestmode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestmode/suggestmode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package suggestmode
package suggestmode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L282-L295
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L282-L295
type SuggestMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestsort/suggestsort.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestsort/suggestsort.go
index 8b05dd4615..0ec80d3f28 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestsort/suggestsort.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestsort/suggestsort.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package suggestsort
package suggestsort
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L492-L501
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L492-L501
type SuggestSort struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/synonymformat/synonymformat.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/synonymformat/synonymformat.go
index e6b290dd2c..3759a9d196 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/synonymformat/synonymformat.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/synonymformat/synonymformat.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package synonymformat
package synonymformat
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L105-L108
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L105-L108
type SynonymFormat struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype/tasktype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype/tasktype.go
index 83eb1f511d..ad5b7247ad 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype/tasktype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype/tasktype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package tasktype
package tasktype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/inference/_types/TaskType.ts#L20-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/TaskType.ts#L20-L28
type TaskType struct {
Name string
}
@@ -32,6 +32,10 @@ var (
Sparseembedding = TaskType{"sparse_embedding"}
Textembedding = TaskType{"text_embedding"}
+
+ Rerank = TaskType{"rerank"}
+
+ Completion = TaskType{"completion"}
)
func (t TaskType) MarshalText() (text []byte, err error) {
@@ -45,6 +49,10 @@ func (t *TaskType) UnmarshalText(text []byte) error {
*t = Sparseembedding
case "text_embedding":
*t = Textembedding
+ case "rerank":
+ *t = Rerank
+ case "completion":
+ *t = Completion
default:
*t = TaskType{string(text)}
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/templateformat/templateformat.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/templateformat/templateformat.go
index 0aaebc9eeb..078730159c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/templateformat/templateformat.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/templateformat/templateformat.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package templateformat
package templateformat
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/RoleTemplate.ts#L22-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RoleTemplate.ts#L22-L25
type TemplateFormat struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationcollectmode/termsaggregationcollectmode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationcollectmode/termsaggregationcollectmode.go
index 3ecd610a18..7bd27da1b5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationcollectmode/termsaggregationcollectmode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationcollectmode/termsaggregationcollectmode.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package termsaggregationcollectmode
package termsaggregationcollectmode
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L978-L987
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L982-L991
type TermsAggregationCollectMode struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationexecutionhint/termsaggregationexecutionhint.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationexecutionhint/termsaggregationexecutionhint.go
index e9588dec53..23ecbb69f0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationexecutionhint/termsaggregationexecutionhint.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationexecutionhint/termsaggregationexecutionhint.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package termsaggregationexecutionhint
package termsaggregationexecutionhint
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L989-L994
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L993-L998
type TermsAggregationExecutionHint struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termvectoroption/termvectoroption.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termvectoroption/termvectoroption.go
index 248b34673c..1e83a449d7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termvectoroption/termvectoroption.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termvectoroption/termvectoroption.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package termvectoroption
package termvectoroption
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/TermVectorOption.ts#L20-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/TermVectorOption.ts#L20-L28
type TermVectorOption struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/textquerytype/textquerytype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/textquerytype/textquerytype.go
index 505075e87d..8eaa9002ad 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/textquerytype/textquerytype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/textquerytype/textquerytype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package textquerytype
package textquerytype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L541-L567
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L541-L567
type TextQueryType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/threadtype/threadtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/threadtype/threadtype.go
index aa238b5b4a..f1e00448d1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/threadtype/threadtype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/threadtype/threadtype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package threadtype
package threadtype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L297-L303
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L297-L303
type ThreadType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype/timeseriesmetrictype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype/timeseriesmetrictype.go
index 44f9bdf703..2ef13bcaa0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype/timeseriesmetrictype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype/timeseriesmetrictype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package timeseriesmetrictype
package timeseriesmetrictype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/TimeSeriesMetricType.ts#L20-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/TimeSeriesMetricType.ts#L20-L26
type TimeSeriesMetricType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit/timeunit.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit/timeunit.go
index 43c5a3268f..778b632014 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit/timeunit.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit/timeunit.go
@@ -16,32 +16,32 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package timeunit
package timeunit
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Time.ts#L69-L77
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L69-L77
type TimeUnit struct {
Name string
}
var (
- Nanos = TimeUnit{"nanos"}
+ Nanoseconds = TimeUnit{"nanos"}
- Micros = TimeUnit{"micros"}
+ Microseconds = TimeUnit{"micros"}
- Ms = TimeUnit{"ms"}
+ Milliseconds = TimeUnit{"ms"}
- S = TimeUnit{"s"}
+ Seconds = TimeUnit{"s"}
- M = TimeUnit{"m"}
+ Minutes = TimeUnit{"m"}
- H = TimeUnit{"h"}
+ Hours = TimeUnit{"h"}
- D = TimeUnit{"d"}
+ Days = TimeUnit{"d"}
)
func (t TimeUnit) MarshalText() (text []byte, err error) {
@@ -52,19 +52,19 @@ func (t *TimeUnit) UnmarshalText(text []byte) error {
switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") {
case "nanos":
- *t = Nanos
+ *t = Nanoseconds
case "micros":
- *t = Micros
+ *t = Microseconds
case "ms":
- *t = Ms
+ *t = Milliseconds
case "s":
- *t = S
+ *t = Seconds
case "m":
- *t = M
+ *t = Minutes
case "h":
- *t = H
+ *t = Hours
case "d":
- *t = D
+ *t = Days
default:
*t = TimeUnit{string(text)}
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenchar/tokenchar.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenchar/tokenchar.go
index f97f4e45ce..06aa446f09 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenchar/tokenchar.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenchar/tokenchar.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package tokenchar
package tokenchar
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L47-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L47-L54
type TokenChar struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenizationtruncate/tokenizationtruncate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenizationtruncate/tokenizationtruncate.go
index 3943b5153f..a62d814610 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenizationtruncate/tokenizationtruncate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenizationtruncate/tokenizationtruncate.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package tokenizationtruncate
package tokenizationtruncate
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L350-L354
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L350-L354
type TokenizationTruncate struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/totalhitsrelation/totalhitsrelation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/totalhitsrelation/totalhitsrelation.go
index 08ede17f85..04f43cf71d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/totalhitsrelation/totalhitsrelation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/totalhitsrelation/totalhitsrelation.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package totalhitsrelation
package totalhitsrelation
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/hits.ts#L99-L104
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/hits.ts#L99-L104
type TotalHitsRelation struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainedmodeltype/trainedmodeltype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainedmodeltype/trainedmodeltype.go
index 053cfff88b..6831d6b167 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainedmodeltype/trainedmodeltype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainedmodeltype/trainedmodeltype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package trainedmodeltype
package trainedmodeltype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L258-L272
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L258-L272
type TrainedModelType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainingpriority/trainingpriority.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainingpriority/trainingpriority.go
index 0bfdc9df70..a1d27490a8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainingpriority/trainingpriority.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainingpriority/trainingpriority.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package trainingpriority
package trainingpriority
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L311-L314
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L311-L314
type TrainingPriority struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/translogdurability/translogdurability.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/translogdurability/translogdurability.go
index f2a02bc9b5..32b84cb9a5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/translogdurability/translogdurability.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/translogdurability/translogdurability.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package translogdurability
package translogdurability
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L363-L378
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L363-L378
type TranslogDurability struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ttesttype/ttesttype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ttesttype/ttesttype.go
index d6f03e8015..b62d8d1d09 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ttesttype/ttesttype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ttesttype/ttesttype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package ttesttype
package ttesttype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L322-L335
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L322-L335
type TTestType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/type_/type_.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/type_/type_.go
index f45d69e8ea..6d05ee10f0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/type_/type_.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/type_/type_.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package type_
package type_
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/shutdown/_types/types.ts#L20-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/_types/types.ts#L20-L24
type Type struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/unassignedinformationreason/unassignedinformationreason.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/unassignedinformationreason/unassignedinformationreason.go
index c14d26082c..0839bb9cf7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/unassignedinformationreason/unassignedinformationreason.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/unassignedinformationreason/unassignedinformationreason.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package unassignedinformationreason
package unassignedinformationreason
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/allocation_explain/types.ts#L127-L146
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L127-L146
type UnassignedInformationReason struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/useragentproperty/useragentproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/useragentproperty/useragentproperty.go
index 61a2278dab..4aa472bf40 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/useragentproperty/useragentproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/useragentproperty/useragentproperty.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package useragentproperty
package useragentproperty
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L266-L277
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L266-L277
type UserAgentProperty struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype/valuetype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype/valuetype.go
index 5ca9676618..ad78170b6c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype/valuetype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype/valuetype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package valuetype
package valuetype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L419-L430
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L424-L435
type ValueType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype/versiontype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype/versiontype.go
index 1f669161db..91bf63c4f8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype/versiontype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype/versiontype.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package versiontype
package versiontype
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L106-L122
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L106-L122
type VersionType struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/waitforevents/waitforevents.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/waitforevents/waitforevents.go
index 1f44a7228a..e60df8117d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/waitforevents/waitforevents.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/waitforevents/waitforevents.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package waitforevents
package waitforevents
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L311-L318
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L311-L318
type WaitForEvents struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/watcherstate/watcherstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/watcherstate/watcherstate.go
index dd93ea69d0..63c6a195a5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/watcherstate/watcherstate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/watcherstate/watcherstate.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package watcherstate
package watcherstate
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/stats/types.ts#L26-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/stats/types.ts#L26-L31
type WatcherState struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery/zerotermsquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery/zerotermsquery.go
index 8b9390aa48..db674efd18 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery/zerotermsquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery/zerotermsquery.go
@@ -16,14 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Package zerotermsquery
package zerotermsquery
import "strings"
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L569-L578
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L569-L578
type ZeroTermsQuery struct {
Name string
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/epochtimeunitmillis.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/epochtimeunitmillis.go
index f5d76188a2..3c1fac78aa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/epochtimeunitmillis.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/epochtimeunitmillis.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// EpochTimeUnitMillis type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Time.ts#L40-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L40-L40
type EpochTimeUnitMillis int64
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/epochtimeunitseconds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/epochtimeunitseconds.go
index c975354115..8f980d763d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/epochtimeunitseconds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/epochtimeunitseconds.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// EpochTimeUnitSeconds type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Time.ts#L40-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Time.ts#L40-L40
type EpochTimeUnitSeconds int64
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eql.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eql.go
index 47bd05cb3c..fb49021d29 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eql.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eql.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Eql type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L351-L354
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L351-L354
type Eql struct {
Available bool `json:"available"`
Enabled bool `json:"enabled"`
@@ -55,7 +55,7 @@ func (s *Eql) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -69,7 +69,7 @@ func (s *Eql) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeatures.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeatures.go
index 153681f62e..13882b61a6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeatures.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeatures.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// EqlFeatures type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L99-L107
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L99-L107
type EqlFeatures struct {
Event uint `json:"event"`
Join uint `json:"join"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturesjoin.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturesjoin.go
index f85db6b70f..3adadc1846 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturesjoin.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturesjoin.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// EqlFeaturesJoin type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L109-L115
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L109-L115
type EqlFeaturesJoin struct {
JoinQueriesFiveOrMore uint `json:"join_queries_five_or_more"`
JoinQueriesFour uint `json:"join_queries_four"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeatureskeys.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeatureskeys.go
index 015fdff76a..4c25a93e5f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeatureskeys.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeatureskeys.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// EqlFeaturesKeys type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L117-L123
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L117-L123
type EqlFeaturesKeys struct {
JoinKeysFiveOrMore uint `json:"join_keys_five_or_more"`
JoinKeysFour uint `json:"join_keys_four"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturespipes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturespipes.go
index 6f143ba9ae..4c9e9727e1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturespipes.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturespipes.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// EqlFeaturesPipes type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L125-L128
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L125-L128
type EqlFeaturesPipes struct {
PipeHead uint `json:"pipe_head"`
PipeTail uint `json:"pipe_tail"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturessequences.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturessequences.go
index 9d55c35331..54278cbfaf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturessequences.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlfeaturessequences.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// EqlFeaturesSequences type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L130-L137
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L130-L137
type EqlFeaturesSequences struct {
SequenceMaxspan uint `json:"sequence_maxspan"`
SequenceQueriesFiveOrMore uint `json:"sequence_queries_five_or_more"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlhits.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlhits.go
index adcdcf178d..9714f82009 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlhits.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eqlhits.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// EqlHits type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/eql/_types/EqlHits.ts#L25-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/_types/EqlHits.ts#L25-L39
type EqlHits struct {
// Events Contains events matching the query. Each object represents a matching event.
Events []HitsEvent `json:"events,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/errorcause.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/errorcause.go
index 9ad621710e..ed4e0b9396 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/errorcause.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/errorcause.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ErrorCause type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Errors.ts#L25-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Errors.ts#L25-L48
type ErrorCause struct {
CausedBy *ErrorCause `json:"caused_by,omitempty"`
Metadata map[string]json.RawMessage `json:"-"`
@@ -140,7 +140,7 @@ func (s *ErrorCause) UnmarshalJSON(data []byte) error {
func (s ErrorCause) MarshalJSON() ([]byte, error) {
type opt ErrorCause
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/errorresponsebase.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/errorresponsebase.go
index df1007a768..4bb00f742e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/errorresponsebase.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/errorresponsebase.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ErrorResponseBase type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Base.ts#L76-L85
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Base.ts#L76-L85
type ErrorResponseBase struct {
Error ErrorCause `json:"error"`
Status int `json:"status"`
@@ -59,7 +59,7 @@ func (s *ErrorResponseBase) UnmarshalJSON(data []byte) error {
case "status":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/esqlcolumns.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/esqlcolumns.go
index e82eaf51fa..700d5be686 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/esqlcolumns.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/esqlcolumns.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// EsqlColumns type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Binary.ts#L24-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Binary.ts#L24-L24
type EsqlColumns []byte
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eventdatastream.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eventdatastream.go
index 461230713e..8231b3f3cd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eventdatastream.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/eventdatastream.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// EventDataStream type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/_types/BehavioralAnalytics.ts#L29-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/_types/BehavioralAnalytics.ts#L29-L31
type EventDataStream struct {
Name string `json:"name"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ewmamodelsettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ewmamodelsettings.go
index f5282fbba2..c3bd45a82f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ewmamodelsettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ewmamodelsettings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// EwmaModelSettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L267-L269
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L267-L269
type EwmaModelSettings struct {
Alpha *float32 `json:"alpha,omitempty"`
}
@@ -52,7 +52,7 @@ func (s *EwmaModelSettings) UnmarshalJSON(data []byte) error {
switch t {
case "alpha":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ewmamovingaverageaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ewmamovingaverageaggregation.go
index e9c8809ef9..e5771920fa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ewmamovingaverageaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ewmamovingaverageaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// EwmaMovingAverageAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L252-L255
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L252-L255
type EwmaMovingAverageAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,10 +43,8 @@ type EwmaMovingAverageAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
Minimize *bool `json:"minimize,omitempty"`
Model string `json:"model,omitempty"`
- Name *string `json:"name,omitempty"`
Predict *int `json:"predict,omitempty"`
Settings EwmaModelSettings `json:"settings"`
Window *int `json:"window,omitempty"`
@@ -89,13 +87,8 @@ func (s *EwmaMovingAverageAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "minimize":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,21 +106,9 @@ func (s *EwmaMovingAverageAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Model", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "predict":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -148,7 +129,7 @@ func (s *EwmaMovingAverageAggregation) UnmarshalJSON(data []byte) error {
case "window":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -174,10 +155,8 @@ func (s EwmaMovingAverageAggregation) MarshalJSON() ([]byte, error) {
BucketsPath: s.BucketsPath,
Format: s.Format,
GapPolicy: s.GapPolicy,
- Meta: s.Meta,
Minimize: s.Minimize,
Model: s.Model,
- Name: s.Name,
Predict: s.Predict,
Settings: s.Settings,
Window: s.Window,
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executeenrichpolicystatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executeenrichpolicystatus.go
index f1b4e31576..898e21caf8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executeenrichpolicystatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executeenrichpolicystatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// ExecuteEnrichPolicyStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/enrich/execute_policy/types.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/execute_policy/types.ts#L20-L22
type ExecuteEnrichPolicyStatus struct {
Phase enrichpolicyphase.EnrichPolicyPhase `json:"phase"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executingpolicy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executingpolicy.go
index 52e6a33ba3..45ef33c1b7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executingpolicy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executingpolicy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ExecutingPolicy type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/enrich/stats/types.ts#L24-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/stats/types.ts#L24-L27
type ExecutingPolicy struct {
Name string `json:"name"`
Task TaskInfo `json:"task"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresult.go
index 0b213ecc82..881741c61a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ExecutionResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Execution.ts#L60-L66
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Execution.ts#L60-L66
type ExecutionResult struct {
Actions []ExecutionResultAction `json:"actions"`
Condition ExecutionResultCondition `json:"condition"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresultaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresultaction.go
index aa718e8a21..90fcd6f029 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresultaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresultaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// ExecutionResultAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Execution.ts#L74-L86
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Execution.ts#L74-L86
type ExecutionResultAction struct {
Email *EmailResult `json:"email,omitempty"`
Error *ErrorCause `json:"error,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresultcondition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresultcondition.go
index 689573bf34..a49ed20a7e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresultcondition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresultcondition.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// ExecutionResultCondition type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Execution.ts#L68-L72
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Execution.ts#L68-L72
type ExecutionResultCondition struct {
Met bool `json:"met"`
Status actionstatusoptions.ActionStatusOptions `json:"status"`
@@ -57,7 +57,7 @@ func (s *ExecutionResultCondition) UnmarshalJSON(data []byte) error {
switch t {
case "met":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresultinput.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresultinput.go
index 8ffd061ba2..9c2d41dd37 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresultinput.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionresultinput.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -29,7 +29,7 @@ import (
// ExecutionResultInput type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Execution.ts#L88-L92
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Execution.ts#L88-L92
type ExecutionResultInput struct {
Payload map[string]json.RawMessage `json:"payload"`
Status actionstatusoptions.ActionStatusOptions `json:"status"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionstate.go
index 232d361155..cacc305552 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionstate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionstate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ExecutionState type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Action.ts#L120-L124
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L120-L124
type ExecutionState struct {
Reason *string `json:"reason,omitempty"`
Successful bool `json:"successful"`
@@ -66,7 +66,7 @@ func (s *ExecutionState) UnmarshalJSON(data []byte) error {
s.Reason = &o
case "successful":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionthreadpool.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionthreadpool.go
index af39d17ac0..37e6f57eee 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionthreadpool.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/executionthreadpool.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ExecutionThreadPool type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Execution.ts#L94-L97
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Execution.ts#L94-L97
type ExecutionThreadPool struct {
MaxSize int64 `json:"max_size"`
QueueSize int64 `json:"queue_size"`
@@ -53,7 +53,7 @@ func (s *ExecutionThreadPool) UnmarshalJSON(data []byte) error {
switch t {
case "max_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -68,7 +68,7 @@ func (s *ExecutionThreadPool) UnmarshalJSON(data []byte) error {
}
case "queue_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/existsquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/existsquery.go
index dc272830d9..f842ac49dd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/existsquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/existsquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ExistsQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L36-L41
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L36-L41
type ExistsQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -60,7 +60,7 @@ func (s *ExistsQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/expandwildcards.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/expandwildcards.go
index f20eef4d07..8f281795bc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/expandwildcards.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/expandwildcards.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,5 +26,5 @@ import (
// ExpandWildcards type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L217-L217
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L217-L217
type ExpandWildcards []expandwildcard.ExpandWildcard
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explainanalyzetoken.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explainanalyzetoken.go
index b4d193843a..3c32d43502 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explainanalyzetoken.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explainanalyzetoken.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ExplainAnalyzeToken type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/analyze/types.ts#L52-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/types.ts#L52-L64
type ExplainAnalyzeToken struct {
Bytes string `json:"bytes"`
EndOffset int64 `json:"end_offset"`
@@ -73,7 +73,7 @@ func (s *ExplainAnalyzeToken) UnmarshalJSON(data []byte) error {
s.Bytes = o
case "end_offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *ExplainAnalyzeToken) UnmarshalJSON(data []byte) error {
}
case "keyword":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -102,7 +102,7 @@ func (s *ExplainAnalyzeToken) UnmarshalJSON(data []byte) error {
}
case "position":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +117,7 @@ func (s *ExplainAnalyzeToken) UnmarshalJSON(data []byte) error {
}
case "positionLength":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -132,7 +132,7 @@ func (s *ExplainAnalyzeToken) UnmarshalJSON(data []byte) error {
}
case "start_offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -147,7 +147,7 @@ func (s *ExplainAnalyzeToken) UnmarshalJSON(data []byte) error {
}
case "termFrequency":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -207,7 +207,7 @@ func (s *ExplainAnalyzeToken) UnmarshalJSON(data []byte) error {
func (s ExplainAnalyzeToken) MarshalJSON() ([]byte, error) {
type opt ExplainAnalyzeToken
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explanation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explanation.go
index b4096ac278..63c49c4f02 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explanation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explanation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Explanation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/explain/types.ts#L22-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/explain/types.ts#L22-L26
type Explanation struct {
Description string `json:"description"`
Details []ExplanationDetail `json:"details"`
@@ -71,7 +71,7 @@ func (s *Explanation) UnmarshalJSON(data []byte) error {
}
case "value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explanationdetail.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explanationdetail.go
index c3faf322c0..742efbd09d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explanationdetail.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explanationdetail.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ExplanationDetail type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/explain/types.ts#L28-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/explain/types.ts#L28-L32
type ExplanationDetail struct {
Description string `json:"description"`
Details []ExplanationDetail `json:"details,omitempty"`
@@ -71,7 +71,7 @@ func (s *ExplanationDetail) UnmarshalJSON(data []byte) error {
}
case "value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explorecontrols.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explorecontrols.go
index 1a145cd8d7..dc6ac49324 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explorecontrols.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/explorecontrols.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ExploreControls type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/graph/_types/ExploreControls.ts#L24-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/_types/ExploreControls.ts#L24-L49
type ExploreControls struct {
// SampleDiversity To avoid the top-matching documents sample being dominated by a single source
// of results, it is sometimes necessary to request diversity in the sample.
@@ -79,7 +79,7 @@ func (s *ExploreControls) UnmarshalJSON(data []byte) error {
case "sample_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -99,7 +99,7 @@ func (s *ExploreControls) UnmarshalJSON(data []byte) error {
}
case "use_significance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedboundsdouble.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedboundsdouble.go
index e59400b6a1..e3b2435276 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedboundsdouble.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedboundsdouble.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ExtendedBoundsdouble type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L487-L496
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L491-L500
type ExtendedBoundsdouble struct {
// Max Maximum value for the bound.
Max *Float64 `json:"max,omitempty"`
@@ -55,7 +55,7 @@ func (s *ExtendedBoundsdouble) UnmarshalJSON(data []byte) error {
switch t {
case "max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *ExtendedBoundsdouble) UnmarshalJSON(data []byte) error {
}
case "min":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedboundsfielddatemath.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedboundsfielddatemath.go
index 4791ecb7d5..bef70a1c56 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedboundsfielddatemath.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedboundsfielddatemath.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ExtendedBoundsFieldDateMath type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L487-L496
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L491-L500
type ExtendedBoundsFieldDateMath struct {
// Max Maximum value for the bound.
Max FieldDateMath `json:"max,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedmemorystats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedmemorystats.go
index 4007384618..273454db3d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedmemorystats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedmemorystats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ExtendedMemoryStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L622-L631
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L622-L631
type ExtendedMemoryStats struct {
// AdjustedTotalInBytes If the amount of physical memory has been overridden using the
// `es`.`total_memory_bytes` system property then this reports the overridden
@@ -72,7 +72,7 @@ func (s *ExtendedMemoryStats) UnmarshalJSON(data []byte) error {
switch t {
case "adjusted_total_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *ExtendedMemoryStats) UnmarshalJSON(data []byte) error {
}
case "free_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -103,7 +103,7 @@ func (s *ExtendedMemoryStats) UnmarshalJSON(data []byte) error {
case "free_percent":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -130,7 +130,7 @@ func (s *ExtendedMemoryStats) UnmarshalJSON(data []byte) error {
s.Resident = &o
case "resident_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -157,7 +157,7 @@ func (s *ExtendedMemoryStats) UnmarshalJSON(data []byte) error {
s.Share = &o
case "share_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -172,7 +172,7 @@ func (s *ExtendedMemoryStats) UnmarshalJSON(data []byte) error {
}
case "total_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -199,7 +199,7 @@ func (s *ExtendedMemoryStats) UnmarshalJSON(data []byte) error {
s.TotalVirtual = &o
case "total_virtual_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -214,7 +214,7 @@ func (s *ExtendedMemoryStats) UnmarshalJSON(data []byte) error {
}
case "used_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -230,7 +230,7 @@ func (s *ExtendedMemoryStats) UnmarshalJSON(data []byte) error {
case "used_percent":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsaggregate.go
index 7386e1c4e1..63e2faa3c8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ExtendedStatsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L278-L296
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L278-L296
type ExtendedStatsAggregate struct {
Avg Float64 `json:"avg,omitempty"`
AvgAsString *string `json:"avg_as_string,omitempty"`
@@ -92,7 +92,7 @@ func (s *ExtendedStatsAggregate) UnmarshalJSON(data []byte) error {
s.AvgAsString = &o
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -183,7 +183,7 @@ func (s *ExtendedStatsAggregate) UnmarshalJSON(data []byte) error {
}
case "sum":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsaggregation.go
index 4f1cba1555..77f174c9a8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ExtendedStatsAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L101-L106
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L101-L106
type ExtendedStatsAggregation struct {
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
@@ -118,7 +118,7 @@ func (s *ExtendedStatsAggregation) UnmarshalJSON(data []byte) error {
}
case "sigma":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsbucketaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsbucketaggregate.go
index 3bf4e35332..1ecbfee595 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsbucketaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsbucketaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ExtendedStatsBucketAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L298-L299
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L298-L299
type ExtendedStatsBucketAggregate struct {
Avg Float64 `json:"avg,omitempty"`
AvgAsString *string `json:"avg_as_string,omitempty"`
@@ -92,7 +92,7 @@ func (s *ExtendedStatsBucketAggregate) UnmarshalJSON(data []byte) error {
s.AvgAsString = &o
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -183,7 +183,7 @@ func (s *ExtendedStatsBucketAggregate) UnmarshalJSON(data []byte) error {
}
case "sum":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsbucketaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsbucketaggregation.go
index a938ac4038..f830e10097 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsbucketaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/extendedstatsbucketaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// ExtendedStatsBucketAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L198-L203
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L198-L203
type ExtendedStatsBucketAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,8 +43,6 @@ type ExtendedStatsBucketAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
// Sigma The number of standard deviations above/below the mean to display.
Sigma *Float64 `json:"sigma,omitempty"`
}
@@ -86,25 +84,8 @@ func (s *ExtendedStatsBucketAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "sigma":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/failprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/failprocessor.go
index d70165dc4c..2f12d58492 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/failprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/failprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FailProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L648-L654
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L648-L654
type FailProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -90,7 +90,7 @@ func (s *FailProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/feature.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/feature.go
index 5c1e66bd3a..018247a771 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/feature.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/feature.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Feature type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/features/_types/Feature.ts#L20-L23
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/features/_types/Feature.ts#L20-L23
type Feature struct {
Description string `json:"description"`
Name string `json:"name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/features.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/features.go
index 1393666e05..e438effb7c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/features.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/features.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,5 +26,5 @@ import (
// Features type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get/IndicesGetRequest.ts#L95-L95
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get/IndicesGetRequest.ts#L95-L95
type Features []feature.Feature
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/featuretoggle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/featuretoggle.go
index 9a055a432b..2b27e9fd4c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/featuretoggle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/featuretoggle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FeatureToggle type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L40-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L40-L42
type FeatureToggle struct {
Enabled bool `json:"enabled"`
}
@@ -52,7 +52,7 @@ func (s *FeatureToggle) UnmarshalJSON(data []byte) error {
switch t {
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fetchprofile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fetchprofile.go
index 28479cb767..24d47caaf4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fetchprofile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fetchprofile.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FetchProfile type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/profile.ts#L139-L146
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L139-L146
type FetchProfile struct {
Breakdown FetchProfileBreakdown `json:"breakdown"`
Children []FetchProfile `json:"children,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fetchprofilebreakdown.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fetchprofilebreakdown.go
index 795780b2a5..6759a0c253 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fetchprofilebreakdown.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fetchprofilebreakdown.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FetchProfileBreakdown type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/profile.ts#L148-L157
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L148-L157
type FetchProfileBreakdown struct {
LoadSource *int `json:"load_source,omitempty"`
LoadSourceCount *int `json:"load_source_count,omitempty"`
@@ -60,7 +60,7 @@ func (s *FetchProfileBreakdown) UnmarshalJSON(data []byte) error {
case "load_source":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -76,7 +76,7 @@ func (s *FetchProfileBreakdown) UnmarshalJSON(data []byte) error {
case "load_source_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *FetchProfileBreakdown) UnmarshalJSON(data []byte) error {
case "load_stored_fields":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,7 +108,7 @@ func (s *FetchProfileBreakdown) UnmarshalJSON(data []byte) error {
case "load_stored_fields_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -124,7 +124,7 @@ func (s *FetchProfileBreakdown) UnmarshalJSON(data []byte) error {
case "next_reader":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -140,7 +140,7 @@ func (s *FetchProfileBreakdown) UnmarshalJSON(data []byte) error {
case "next_reader_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -156,7 +156,7 @@ func (s *FetchProfileBreakdown) UnmarshalJSON(data []byte) error {
case "process":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -172,7 +172,7 @@ func (s *FetchProfileBreakdown) UnmarshalJSON(data []byte) error {
case "process_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fetchprofiledebug.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fetchprofiledebug.go
index f2788fa07e..b544c2af87 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fetchprofiledebug.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fetchprofiledebug.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FetchProfileDebug type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/profile.ts#L159-L162
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L159-L162
type FetchProfileDebug struct {
FastPath *int `json:"fast_path,omitempty"`
StoredFields []string `json:"stored_fields,omitempty"`
@@ -54,7 +54,7 @@ func (s *FetchProfileDebug) UnmarshalJSON(data []byte) error {
case "fast_path":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldaliasproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldaliasproperty.go
index f9af4c960a..cb8c8face7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldaliasproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldaliasproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// FieldAliasProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/specialized.ts#L49-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L55-L58
type FieldAliasProperty struct {
Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
Fields map[string]Property `json:"fields,omitempty"`
@@ -72,7 +72,7 @@ func (s *FieldAliasProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -363,6 +363,12 @@ func (s *FieldAliasProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -374,7 +380,7 @@ func (s *FieldAliasProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -408,7 +414,7 @@ func (s *FieldAliasProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -699,6 +705,12 @@ func (s *FieldAliasProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldandformat.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldandformat.go
index 7ce1081316..5e30e19865 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldandformat.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldandformat.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FieldAndFormat type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/abstractions.ts#L505-L519
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/abstractions.ts#L505-L519
type FieldAndFormat struct {
// Field Wildcard pattern. The request returns values for field names matching this
// pattern.
@@ -83,7 +83,7 @@ func (s *FieldAndFormat) UnmarshalJSON(data []byte) error {
s.Format = &o
case "include_unmapped":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldcapability.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldcapability.go
index ee360cb84a..cd23090060 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldcapability.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldcapability.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// FieldCapability type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/field_caps/types.ts#L23-L81
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/field_caps/types.ts#L23-L81
type FieldCapability struct {
// Aggregatable Whether this field can be aggregated on all indices.
Aggregatable bool `json:"aggregatable"`
@@ -85,7 +85,7 @@ func (s *FieldCapability) UnmarshalJSON(data []byte) error {
switch t {
case "aggregatable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -120,7 +120,7 @@ func (s *FieldCapability) UnmarshalJSON(data []byte) error {
}
case "metadata_field":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -176,7 +176,7 @@ func (s *FieldCapability) UnmarshalJSON(data []byte) error {
}
case "searchable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -190,7 +190,7 @@ func (s *FieldCapability) UnmarshalJSON(data []byte) error {
}
case "time_series_dimension":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldcollapse.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldcollapse.go
index b7ed8e5a8a..9333b123bc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldcollapse.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldcollapse.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FieldCollapse type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/FieldCollapse.ts#L24-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/FieldCollapse.ts#L24-L38
type FieldCollapse struct {
Collapse *FieldCollapse `json:"collapse,omitempty"`
// Field The field to collapse the result set on
@@ -86,7 +86,7 @@ func (s *FieldCollapse) UnmarshalJSON(data []byte) error {
case "max_concurrent_group_searches":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatafrequencyfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatafrequencyfilter.go
index e3f9b31e0c..f11fb52e62 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatafrequencyfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatafrequencyfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FielddataFrequencyFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/FielddataFrequencyFilter.ts#L22-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/FielddataFrequencyFilter.ts#L22-L26
type FielddataFrequencyFilter struct {
Max Float64 `json:"max"`
Min Float64 `json:"min"`
@@ -54,7 +54,7 @@ func (s *FielddataFrequencyFilter) UnmarshalJSON(data []byte) error {
switch t {
case "max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *FielddataFrequencyFilter) UnmarshalJSON(data []byte) error {
}
case "min":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *FielddataFrequencyFilter) UnmarshalJSON(data []byte) error {
case "min_segment_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatarecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatarecord.go
index d25d531843..c92bc2a06a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatarecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatarecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FielddataRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/fielddata/types.ts#L20-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/fielddata/types.ts#L20-L48
type FielddataRecord struct {
// Field field name
Field *string `json:"field,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatastats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatastats.go
index 8fd3e18ef3..aa10f9b915 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatastats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatastats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FielddataStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L111-L116
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L111-L116
type FielddataStats struct {
Evictions *int64 `json:"evictions,omitempty"`
Fields map[string]FieldMemoryUsage `json:"fields,omitempty"`
@@ -55,7 +55,7 @@ func (s *FielddataStats) UnmarshalJSON(data []byte) error {
switch t {
case "evictions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *FielddataStats) UnmarshalJSON(data []byte) error {
}
case "memory_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatemath.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatemath.go
index 24c4ff8953..6639c847eb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatemath.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fielddatemath.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// Float64
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L294-L301
-type FieldDateMath interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L298-L305
+type FieldDateMath any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldlookup.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldlookup.go
index b6ca397228..ce4a963cc5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldlookup.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldlookup.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// FieldLookup type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/abstractions.ts#L409-L426
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/abstractions.ts#L409-L426
type FieldLookup struct {
// Id `id` of the document.
Id string `json:"id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldmapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldmapping.go
index ab58a59a6d..89759f1c95 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldmapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldmapping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FieldMapping type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/meta-fields.ts#L24-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L24-L27
type FieldMapping struct {
FullName string `json:"full_name"`
Mapping map[string]Property `json:"mapping"`
@@ -71,7 +71,7 @@ func (s *FieldMapping) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -362,6 +362,12 @@ func (s *FieldMapping) UnmarshalJSON(data []byte) error {
return err
}
s.Mapping[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Mapping[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldmemoryusage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldmemoryusage.go
index 2fb0ef00eb..dfc6dd23f7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldmemoryusage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldmemoryusage.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FieldMemoryUsage type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L118-L121
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L118-L121
type FieldMemoryUsage struct {
MemorySize ByteSize `json:"memory_size,omitempty"`
MemorySizeInBytes int64 `json:"memory_size_in_bytes"`
@@ -58,7 +58,7 @@ func (s *FieldMemoryUsage) UnmarshalJSON(data []byte) error {
}
case "memory_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldmetric.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldmetric.go
index 99a72a15ae..b12605cdc5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldmetric.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldmetric.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// FieldMetric type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/_types/Metric.ts#L30-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/_types/Metric.ts#L30-L35
type FieldMetric struct {
// Field The field to collect metrics for. This must be a numeric of some kind.
Field string `json:"field"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldnamesfield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldnamesfield.go
index 16d693627c..8f2b881e82 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldnamesfield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldnamesfield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FieldNamesField type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/meta-fields.ts#L42-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L42-L44
type FieldNamesField struct {
Enabled bool `json:"enabled"`
}
@@ -52,7 +52,7 @@ func (s *FieldNamesField) UnmarshalJSON(data []byte) error {
switch t {
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldrule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldrule.go
index 18a0b61edc..a8ae2e4053 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldrule.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldrule.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// FieldRule type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/RoleMappingRule.ts#L36-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RoleMappingRule.ts#L36-L44
type FieldRule struct {
Dn []string `json:"dn,omitempty"`
Groups []string `json:"groups,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fields.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fields.go
index d71188d0bf..6f792d7624 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fields.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fields.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Fields type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L140-L140
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L140-L140
type Fields []string
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsecurity.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsecurity.go
index 1b64fb8b8d..76de3442e6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsecurity.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsecurity.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// FieldSecurity type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/FieldSecurity.ts#L22-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/FieldSecurity.ts#L22-L25
type FieldSecurity struct {
Except []string `json:"except,omitempty"`
Grant []string `json:"grant,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsizeusage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsizeusage.go
index bf428123f0..9cb02d0d68 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsizeusage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsizeusage.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FieldSizeUsage type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L92-L95
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L92-L95
type FieldSizeUsage struct {
Size ByteSize `json:"size,omitempty"`
SizeInBytes int64 `json:"size_in_bytes"`
@@ -58,7 +58,7 @@ func (s *FieldSizeUsage) UnmarshalJSON(data []byte) error {
}
case "size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsort.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsort.go
index 8c680ee61b..1ae32cfc0b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsort.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsort.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -36,7 +36,7 @@ import (
// FieldSort type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/sort.ts#L44-L53
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L44-L53
type FieldSort struct {
Format *string `json:"format,omitempty"`
Missing Missing `json:"missing,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldstat.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldstat.go
index f96c171dfd..4db0514664 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldstat.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldstat.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FieldStat type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/text_structure/find_structure/types.ts#L23-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/find_structure/types.ts#L23-L33
type FieldStat struct {
Cardinality int `json:"cardinality"`
Count int `json:"count"`
@@ -61,7 +61,7 @@ func (s *FieldStat) UnmarshalJSON(data []byte) error {
case "cardinality":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -77,7 +77,7 @@ func (s *FieldStat) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +117,7 @@ func (s *FieldStat) UnmarshalJSON(data []byte) error {
case "max_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -133,7 +133,7 @@ func (s *FieldStat) UnmarshalJSON(data []byte) error {
case "mean_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -149,7 +149,7 @@ func (s *FieldStat) UnmarshalJSON(data []byte) error {
case "median_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -165,7 +165,7 @@ func (s *FieldStat) UnmarshalJSON(data []byte) error {
case "min_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldstatistics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldstatistics.go
index 19d70d24bb..f655ba579e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldstatistics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldstatistics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FieldStatistics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/termvectors/types.ts#L28-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/termvectors/types.ts#L28-L32
type FieldStatistics struct {
DocCount int `json:"doc_count"`
SumDocFreq int64 `json:"sum_doc_freq"`
@@ -55,7 +55,7 @@ func (s *FieldStatistics) UnmarshalJSON(data []byte) error {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *FieldStatistics) UnmarshalJSON(data []byte) error {
}
case "sum_doc_freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *FieldStatistics) UnmarshalJSON(data []byte) error {
}
case "sum_ttf":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsuggester.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsuggester.go
index 9e6f31bd7e..6a4a4b78ca 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsuggester.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsuggester.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FieldSuggester type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L106-L139
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L106-L139
type FieldSuggester struct {
// Completion Provides auto-complete/search-as-you-type functionality.
Completion *CompletionSuggester `json:"completion,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsummary.go
index 6d9a16e4a3..486494c9f5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsummary.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// FieldSummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L54-L63
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L54-L63
type FieldSummary struct {
Any uint `json:"any"`
DocValues uint `json:"doc_values"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsusagebody.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsusagebody.go
index ecd77dcd7d..5e2f03fd4d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsusagebody.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldsusagebody.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -27,7 +27,7 @@ import (
// FieldsUsageBody type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L32-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L32-L36
type FieldsUsageBody struct {
FieldsUsageBody map[string]UsageStatsIndex `json:"-"`
Shards_ ShardStatistics `json:"_shards"`
@@ -37,7 +37,7 @@ type FieldsUsageBody struct {
func (s FieldsUsageBody) MarshalJSON() ([]byte, error) {
type opt FieldsUsageBody
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldtypes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldtypes.go
index 92031b7239..92c1dc0537 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldtypes.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldtypes.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FieldTypes type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L136-L167
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L136-L167
type FieldTypes struct {
// Count The number of occurrences of the field type in selected nodes.
Count int `json:"count"`
@@ -69,7 +69,7 @@ func (s *FieldTypes) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *FieldTypes) UnmarshalJSON(data []byte) error {
case "index_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *FieldTypes) UnmarshalJSON(data []byte) error {
}
case "indexed_vector_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -115,7 +115,7 @@ func (s *FieldTypes) UnmarshalJSON(data []byte) error {
}
case "indexed_vector_dim_max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -130,7 +130,7 @@ func (s *FieldTypes) UnmarshalJSON(data []byte) error {
}
case "indexed_vector_dim_min":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -151,7 +151,7 @@ func (s *FieldTypes) UnmarshalJSON(data []byte) error {
case "script_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldtypesmappings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldtypesmappings.go
index 4192bf60b7..d2a40fe76e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldtypesmappings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldtypesmappings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FieldTypesMappings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L109-L134
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L109-L134
type FieldTypesMappings struct {
// FieldTypes Contains statistics about field data types used in selected nodes.
FieldTypes []FieldTypes `json:"field_types"`
@@ -75,7 +75,7 @@ func (s *FieldTypesMappings) UnmarshalJSON(data []byte) error {
case "total_deduplicated_field_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *FieldTypesMappings) UnmarshalJSON(data []byte) error {
}
case "total_deduplicated_mapping_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -111,7 +111,7 @@ func (s *FieldTypesMappings) UnmarshalJSON(data []byte) error {
case "total_field_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldvalue.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldvalue.go
index 8a2db63a83..9247b67937 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldvalue.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldvalue.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -29,5 +29,5 @@ package types
// nil
// json.RawMessage
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L25-L37
-type FieldValue interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L25-L37
+type FieldValue any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldvaluefactorscorefunction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldvaluefactorscorefunction.go
index 254a4caa1e..8621354f6f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldvaluefactorscorefunction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fieldvaluefactorscorefunction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// FieldValueFactorScoreFunction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L132-L151
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L132-L151
type FieldValueFactorScoreFunction struct {
// Factor Optional factor to multiply the field value with.
Factor *Float64 `json:"factor,omitempty"`
@@ -63,7 +63,7 @@ func (s *FieldValueFactorScoreFunction) UnmarshalJSON(data []byte) error {
switch t {
case "factor":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -84,7 +84,7 @@ func (s *FieldValueFactorScoreFunction) UnmarshalJSON(data []byte) error {
}
case "missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filecountsnapshotstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filecountsnapshotstats.go
index 6d515f2d10..1ba4be908e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filecountsnapshotstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filecountsnapshotstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FileCountSnapshotStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/FileCountSnapshotStats.ts#L22-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/FileCountSnapshotStats.ts#L22-L25
type FileCountSnapshotStats struct {
FileCount int `json:"file_count"`
SizeInBytes int64 `json:"size_in_bytes"`
@@ -54,7 +54,7 @@ func (s *FileCountSnapshotStats) UnmarshalJSON(data []byte) error {
case "file_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -69,7 +69,7 @@ func (s *FileCountSnapshotStats) UnmarshalJSON(data []byte) error {
}
case "size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filedetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filedetails.go
index 811589d3ea..69baff0a86 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filedetails.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filedetails.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FileDetails type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/recovery/types.ts#L50-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L50-L54
type FileDetails struct {
Length int64 `json:"length"`
Name string `json:"name"`
@@ -54,7 +54,7 @@ func (s *FileDetails) UnmarshalJSON(data []byte) error {
switch t {
case "length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -81,7 +81,7 @@ func (s *FileDetails) UnmarshalJSON(data []byte) error {
s.Name = o
case "recovered":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filesystem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filesystem.go
index 7f6e8f83a4..1fae56d992 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filesystem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filesystem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FileSystem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L698-L716
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L698-L716
type FileSystem struct {
// Data List of all file stores.
Data []DataPathStats `json:"data,omitempty"`
@@ -70,7 +70,7 @@ func (s *FileSystem) UnmarshalJSON(data []byte) error {
}
case "timestamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filesystemtotal.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filesystemtotal.go
index 70b62f3ad7..809b2bed46 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filesystemtotal.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filesystemtotal.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FileSystemTotal type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L757-L786
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L757-L786
type FileSystemTotal struct {
// Available Total disk space available to this Java virtual machine on all file stores.
// Depending on OS or process level restrictions, this might appear less than
@@ -84,7 +84,7 @@ func (s *FileSystemTotal) UnmarshalJSON(data []byte) error {
s.Available = &o
case "available_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -111,7 +111,7 @@ func (s *FileSystemTotal) UnmarshalJSON(data []byte) error {
s.Free = &o
case "free_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +138,7 @@ func (s *FileSystemTotal) UnmarshalJSON(data []byte) error {
s.Total = &o
case "total_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fillmaskinferenceoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fillmaskinferenceoptions.go
index bb6324b6fb..98e26bb179 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fillmaskinferenceoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fillmaskinferenceoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FillMaskInferenceOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L266-L280
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L266-L280
type FillMaskInferenceOptions struct {
// MaskToken The string/token which will be removed from incoming documents and replaced
// with the inference prediction(s).
@@ -81,7 +81,7 @@ func (s *FillMaskInferenceOptions) UnmarshalJSON(data []byte) error {
case "num_top_classes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fillmaskinferenceupdateoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fillmaskinferenceupdateoptions.go
index 65e3497e03..1cd53ae0c8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fillmaskinferenceupdateoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fillmaskinferenceupdateoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FillMaskInferenceUpdateOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L411-L418
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L411-L418
type FillMaskInferenceUpdateOptions struct {
// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.
NumTopClasses *int `json:"num_top_classes,omitempty"`
@@ -59,7 +59,7 @@ func (s *FillMaskInferenceUpdateOptions) UnmarshalJSON(data []byte) error {
case "num_top_classes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteraggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteraggregate.go
index 8afac9106a..4dbc11fa11 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteraggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filteraggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// FilterAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L495-L496
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L495-L496
type FilterAggregate struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *FilterAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +519,7 @@ func (s *FilterAggregate) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -569,7 +569,7 @@ func (s *FilterAggregate) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -579,7 +579,7 @@ func (s *FilterAggregate) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -596,7 +596,7 @@ func (s *FilterAggregate) UnmarshalJSON(data []byte) error {
func (s FilterAggregate) MarshalJSON() ([]byte, error) {
type opt FilterAggregate
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filterref.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filterref.go
index 37a18c13e1..09497d3c24 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filterref.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filterref.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// FilterRef type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Filter.ts#L31-L41
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Filter.ts#L31-L41
type FilterRef struct {
// FilterId The identifier for the filter.
FilterId string `json:"filter_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filtersaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filtersaggregate.go
index b730b8e191..17b54c435a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filtersaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filtersaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// FiltersAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L568-L569
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L568-L569
type FiltersAggregate struct {
Buckets BucketsFiltersBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filtersaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filtersaggregation.go
index 2d5cf8e5a9..86da25b83d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filtersaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filtersaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,15 +31,13 @@ import (
// FiltersAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L356-L376
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L360-L380
type FiltersAggregation struct {
// Filters Collection of queries from which to build buckets.
Filters BucketsQuery `json:"filters,omitempty"`
// Keyed By default, the named filters aggregation returns the buckets as an object.
// Set to `false` to return the buckets as an array of objects.
- Keyed *bool `json:"keyed,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
+ Keyed *bool `json:"keyed,omitempty"`
// OtherBucket Set to `true` to add a bucket to the response which will contain all
// documents that do not match any of the given filters.
OtherBucket *bool `json:"other_bucket,omitempty"`
@@ -84,7 +82,7 @@ func (s *FiltersAggregation) UnmarshalJSON(data []byte) error {
}
case "keyed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -97,25 +95,8 @@ func (s *FiltersAggregation) UnmarshalJSON(data []byte) error {
s.Keyed = &v
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "other_bucket":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filtersbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filtersbucket.go
index cd7d9d20ed..c85f524011 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filtersbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/filtersbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// FiltersBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L571-L571
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L571-L571
type FiltersBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -54,7 +54,7 @@ func (s *FiltersBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -513,7 +513,7 @@ func (s *FiltersBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -563,7 +563,7 @@ func (s *FiltersBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -573,7 +573,7 @@ func (s *FiltersBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -590,7 +590,7 @@ func (s *FiltersBucket) UnmarshalJSON(data []byte) error {
func (s FiltersBucket) MarshalJSON() ([]byte, error) {
type opt FiltersBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fingerprintanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fingerprintanalyzer.go
index e89a3da732..64289bb023 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fingerprintanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fingerprintanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FingerprintAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/analyzers.ts#L37-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L37-L45
type FingerprintAnalyzer struct {
MaxOutputSize int `json:"max_output_size"`
PreserveOriginal bool `json:"preserve_original"`
@@ -59,7 +59,7 @@ func (s *FingerprintAnalyzer) UnmarshalJSON(data []byte) error {
case "max_output_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -74,7 +74,7 @@ func (s *FingerprintAnalyzer) UnmarshalJSON(data []byte) error {
}
case "preserve_original":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fingerprinttokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fingerprinttokenfilter.go
index 259d29f855..591874e9c1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fingerprinttokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fingerprinttokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FingerprintTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L194-L198
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L196-L200
type FingerprintTokenFilter struct {
MaxOutputSize *int `json:"max_output_size,omitempty"`
Separator *string `json:"separator,omitempty"`
@@ -56,7 +56,7 @@ func (s *FingerprintTokenFilter) UnmarshalJSON(data []byte) error {
case "max_output_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/flattened.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/flattened.go
index 0bf87e02da..5a2b31fb26 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/flattened.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/flattened.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Flattened type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L356-L358
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L356-L358
type Flattened struct {
Available bool `json:"available"`
Enabled bool `json:"enabled"`
@@ -54,7 +54,7 @@ func (s *Flattened) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -68,7 +68,7 @@ func (s *Flattened) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *Flattened) UnmarshalJSON(data []byte) error {
case "field_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/flattenedproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/flattenedproperty.go
index 73f2d4091f..a5f36ef6e8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/flattenedproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/flattenedproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// FlattenedProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/complex.ts#L26-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/complex.ts#L26-L37
type FlattenedProperty struct {
Boost *Float64 `json:"boost,omitempty"`
DepthLimit *int `json:"depth_limit,omitempty"`
@@ -70,7 +70,7 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error {
case "depth_limit":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -102,7 +102,7 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -121,7 +121,7 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error {
}
case "eager_global_ordinals":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -141,7 +141,7 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -432,6 +432,12 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -443,7 +449,7 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -458,7 +464,7 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -503,7 +509,7 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -794,6 +800,12 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -816,7 +828,7 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "split_queries_on_whitespace":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/floatnumberproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/floatnumberproperty.go
index 84611d9ece..c760640049 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/floatnumberproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/floatnumberproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// FloatNumberProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L134-L137
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L136-L139
type FloatNumberProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -79,7 +79,7 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +150,7 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -441,6 +441,12 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -452,7 +458,7 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -467,7 +473,7 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -481,7 +487,7 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -503,7 +509,7 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "null_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -530,7 +536,7 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -821,6 +827,12 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -879,7 +891,7 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -893,7 +905,7 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "time_series_dimension":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/floatrangeproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/floatrangeproperty.go
index dc4b01b1bc..6438c11546 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/floatrangeproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/floatrangeproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// FloatRangeProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/range.ts#L38-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/range.ts#L38-L40
type FloatRangeProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -67,7 +67,7 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,7 +113,7 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +138,7 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -429,6 +429,12 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -440,7 +446,7 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -455,7 +461,7 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -483,7 +489,7 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -774,6 +780,12 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -796,7 +808,7 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/flushstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/flushstats.go
index c9e71f1666..b9109df979 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/flushstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/flushstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FlushStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L123-L128
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L123-L128
type FlushStats struct {
Periodic int64 `json:"periodic"`
Total int64 `json:"total"`
@@ -55,7 +55,7 @@ func (s *FlushStats) UnmarshalJSON(data []byte) error {
switch t {
case "periodic":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *FlushStats) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followerindex.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followerindex.go
index b61c48597e..1b9c48c2e4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followerindex.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followerindex.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// FollowerIndex type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/follow_info/types.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/follow_info/types.ts#L22-L28
type FollowerIndex struct {
FollowerIndex string `json:"follower_index"`
LeaderIndex string `json:"leader_index"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followerindexparameters.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followerindexparameters.go
index 3b56902a4d..86b2a6ba05 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followerindexparameters.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followerindexparameters.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FollowerIndexParameters type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/follow_info/types.ts#L38-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/follow_info/types.ts#L38-L49
type FollowerIndexParameters struct {
MaxOutstandingReadRequests int `json:"max_outstanding_read_requests"`
MaxOutstandingWriteRequests int `json:"max_outstanding_write_requests"`
@@ -62,7 +62,7 @@ func (s *FollowerIndexParameters) UnmarshalJSON(data []byte) error {
case "max_outstanding_read_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -78,7 +78,7 @@ func (s *FollowerIndexParameters) UnmarshalJSON(data []byte) error {
case "max_outstanding_write_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -94,7 +94,7 @@ func (s *FollowerIndexParameters) UnmarshalJSON(data []byte) error {
case "max_read_request_operation_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -127,7 +127,7 @@ func (s *FollowerIndexParameters) UnmarshalJSON(data []byte) error {
case "max_write_buffer_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -155,7 +155,7 @@ func (s *FollowerIndexParameters) UnmarshalJSON(data []byte) error {
case "max_write_request_operation_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followindexstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followindexstats.go
index 9b9dcc2ab9..5ecee79886 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followindexstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followindexstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// FollowIndexStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/_types/FollowIndexStats.ts#L30-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/_types/FollowIndexStats.ts#L30-L33
type FollowIndexStats struct {
Index string `json:"index"`
Shards []CcrShardStats `json:"shards"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followstats.go
index 7644ef7145..179e39e042 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/followstats.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// FollowStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/stats/types.ts.ts#L41-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/stats/types.ts.ts#L41-L43
type FollowStats struct {
Indices []FollowIndexStats `json:"indices"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeconfiguration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeconfiguration.go
index 63dc9ca282..607385ccf4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeconfiguration.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeconfiguration.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ForceMergeConfiguration type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/_types/Phase.ts#L56-L58
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/_types/Phase.ts#L56-L58
type ForceMergeConfiguration struct {
MaxNumSegments int `json:"max_num_segments"`
}
@@ -53,7 +53,7 @@ func (s *ForceMergeConfiguration) UnmarshalJSON(data []byte) error {
case "max_num_segments":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeresponsebody.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeresponsebody.go
index 60989ca6d6..d07de0a151 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeresponsebody.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/forcemergeresponsebody.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ForceMergeResponseBody type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/forcemerge/_types/response.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/forcemerge/_types/response.ts#L22-L28
type ForceMergeResponseBody struct {
Shards_ ShardStatistics `json:"_shards"`
// Task task contains a task id returned when wait_for_completion=false,
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/foreachprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/foreachprocessor.go
index 489cd702af..94c554d274 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/foreachprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/foreachprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ForeachProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L656-L670
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L656-L670
type ForeachProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -99,7 +99,7 @@ func (s *ForeachProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,7 +113,7 @@ func (s *ForeachProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/formattablemetricaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/formattablemetricaggregation.go
index faee9454bb..841425797f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/formattablemetricaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/formattablemetricaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FormattableMetricAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L51-L53
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L51-L53
type FormattableMetricAggregation struct {
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/foundstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/foundstatus.go
index 1fbbd94122..1fc3317ae5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/foundstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/foundstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FoundStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/delete_privileges/types.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/delete_privileges/types.ts#L20-L22
type FoundStatus struct {
Found bool `json:"found"`
}
@@ -52,7 +52,7 @@ func (s *FoundStatus) UnmarshalJSON(data []byte) error {
switch t {
case "found":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequencyencodingpreprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequencyencodingpreprocessor.go
index e2b71b1929..133c927fd1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequencyencodingpreprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequencyencodingpreprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FrequencyEncodingPreprocessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model/types.ts#L38-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L38-L42
type FrequencyEncodingPreprocessor struct {
FeatureName string `json:"feature_name"`
Field string `json:"field"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsaggregate.go
index c5f533093a..65d52aad52 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// FrequentItemSetsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L639-L640
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L639-L640
type FrequentItemSetsAggregate struct {
Buckets BucketsFrequentItemSetsBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsaggregation.go
index cbfce38e32..c63d134569 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FrequentItemSetsAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L1158-L1182
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1162-L1186
type FrequentItemSetsAggregation struct {
// Fields Fields to analyze.
Fields []FrequentItemSetsField `json:"fields"`
@@ -72,7 +72,7 @@ func (s *FrequentItemSetsAggregation) UnmarshalJSON(data []byte) error {
case "minimum_set_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *FrequentItemSetsAggregation) UnmarshalJSON(data []byte) error {
}
case "minimum_support":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +104,7 @@ func (s *FrequentItemSetsAggregation) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsbucket.go
index f1f686badf..f7afb22943 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// FrequentItemSetsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L642-L645
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L642-L645
type FrequentItemSetsBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -56,7 +56,7 @@ func (s *FrequentItemSetsBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -79,7 +79,7 @@ func (s *FrequentItemSetsBucket) UnmarshalJSON(data []byte) error {
}
case "support":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -539,7 +539,7 @@ func (s *FrequentItemSetsBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -589,7 +589,7 @@ func (s *FrequentItemSetsBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -599,7 +599,7 @@ func (s *FrequentItemSetsBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -616,7 +616,7 @@ func (s *FrequentItemSetsBucket) UnmarshalJSON(data []byte) error {
func (s FrequentItemSetsBucket) MarshalJSON() ([]byte, error) {
type opt FrequentItemSetsBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsfield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsfield.go
index 8d6d01bb44..464579f58c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsfield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frequentitemsetsfield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// FrequentItemSetsField type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L1144-L1156
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1148-L1160
type FrequentItemSetsField struct {
// Exclude Values to exclude.
// Can be regular expression strings or arrays of strings of exact terms.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frozenindices.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frozenindices.go
index ea2833cd12..3761e28adb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frozenindices.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/frozenindices.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FrozenIndices type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L360-L362
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L360-L362
type FrozenIndices struct {
Available bool `json:"available"`
Enabled bool `json:"enabled"`
@@ -54,7 +54,7 @@ func (s *FrozenIndices) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -68,7 +68,7 @@ func (s *FrozenIndices) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -82,7 +82,7 @@ func (s *FrozenIndices) UnmarshalJSON(data []byte) error {
}
case "indices_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/functionscore.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/functionscore.go
index eae10d7320..1681ff80cd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/functionscore.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/functionscore.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FunctionScore type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L201-L241
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L201-L241
type FunctionScore struct {
// Exp Function that scores a document with a exponential decay, depending on the
// distance of a numeric field value of the document from an origin.
@@ -110,7 +110,7 @@ func (s *FunctionScore) UnmarshalJSON(data []byte) error {
}
case "weight":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/functionscorequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/functionscorequery.go
index b11b8ea4ed..141cfdc69e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/functionscorequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/functionscorequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// FunctionScoreQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L92-L118
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L92-L118
type FunctionScoreQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -74,7 +74,7 @@ func (s *FunctionScoreQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *FunctionScoreQuery) UnmarshalJSON(data []byte) error {
}
case "max_boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -116,7 +116,7 @@ func (s *FunctionScoreQuery) UnmarshalJSON(data []byte) error {
}
case "min_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fuzziness.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fuzziness.go
index db7c875bb9..5b044694a3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fuzziness.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fuzziness.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// int
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L133-L134
-type Fuzziness interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L133-L134
+type Fuzziness any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fuzzyquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fuzzyquery.go
index 9c4ac0f68a..763bae675c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fuzzyquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/fuzzyquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// FuzzyQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L43-L78
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L43-L78
type FuzzyQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -80,7 +80,7 @@ func (s *FuzzyQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -102,7 +102,7 @@ func (s *FuzzyQuery) UnmarshalJSON(data []byte) error {
case "max_expansions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -118,7 +118,7 @@ func (s *FuzzyQuery) UnmarshalJSON(data []byte) error {
case "prefix_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +150,7 @@ func (s *FuzzyQuery) UnmarshalJSON(data []byte) error {
}
case "transpositions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/garbagecollector.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/garbagecollector.go
index 04b5e5f32a..01876aba3b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/garbagecollector.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/garbagecollector.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// GarbageCollector type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L923-L928
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L923-L928
type GarbageCollector struct {
// Collectors Contains statistics about JVM garbage collectors for the node.
Collectors map[string]GarbageCollectorTotal `json:"collectors,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/garbagecollectortotal.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/garbagecollectortotal.go
index ac95aa22e8..9c76b3bdd1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/garbagecollectortotal.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/garbagecollectortotal.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GarbageCollectorTotal type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L930-L943
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L930-L943
type GarbageCollectorTotal struct {
// CollectionCount Total number of JVM garbage collectors that collect objects.
CollectionCount *int64 `json:"collection_count,omitempty"`
@@ -57,7 +57,7 @@ func (s *GarbageCollectorTotal) UnmarshalJSON(data []byte) error {
switch t {
case "collection_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -84,7 +84,7 @@ func (s *GarbageCollectorTotal) UnmarshalJSON(data []byte) error {
s.CollectionTime = &o
case "collection_time_in_millis":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/gcsrepository.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/gcsrepository.go
index d2bb241362..528be73b75 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/gcsrepository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/gcsrepository.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// GcsRepository type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotRepository.ts#L45-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L45-L48
type GcsRepository struct {
Settings GcsRepositorySettings `json:"settings"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/gcsrepositorysettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/gcsrepositorysettings.go
index 1b0f8b0cd2..e580f637eb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/gcsrepositorysettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/gcsrepositorysettings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GcsRepositorySettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotRepository.ts#L85-L91
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L85-L91
type GcsRepositorySettings struct {
ApplicationName *string `json:"application_name,omitempty"`
BasePath *string `json:"base_path,omitempty"`
@@ -113,7 +113,7 @@ func (s *GcsRepositorySettings) UnmarshalJSON(data []byte) error {
s.Client = &o
case "compress":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -137,7 +137,7 @@ func (s *GcsRepositorySettings) UnmarshalJSON(data []byte) error {
}
case "readonly":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoboundingboxquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoboundingboxquery.go
index 853f4c66f9..3c095be6e0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoboundingboxquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoboundingboxquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// GeoBoundingBoxQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/geo.ts#L32-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L32-L50
type GeoBoundingBoxQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -71,7 +71,7 @@ func (s *GeoBoundingBoxQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *GeoBoundingBoxQuery) UnmarshalJSON(data []byte) error {
}
case "ignore_unmapped":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -144,7 +144,7 @@ func (s *GeoBoundingBoxQuery) UnmarshalJSON(data []byte) error {
func (s GeoBoundingBoxQuery) MarshalJSON() ([]byte, error) {
type opt GeoBoundingBoxQuery
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geobounds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geobounds.go
index 57e51e6810..8a55d21248 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geobounds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geobounds.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -27,5 +27,5 @@ package types
// TopRightBottomLeftGeoBounds
// WktGeoBounds
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Geo.ts#L135-L148
-type GeoBounds interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L135-L148
+type GeoBounds any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoboundsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoboundsaggregate.go
index d6701a1066..e207ef920f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoboundsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoboundsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// GeoBoundsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L303-L306
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L303-L306
type GeoBoundsAggregate struct {
Bounds GeoBounds `json:"bounds,omitempty"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoboundsaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoboundsaggregation.go
index 2115b1c691..f5822ede4d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoboundsaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoboundsaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GeoBoundsAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L108-L114
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L108-L114
type GeoBoundsAggregation struct {
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
@@ -106,7 +106,7 @@ func (s *GeoBoundsAggregation) UnmarshalJSON(data []byte) error {
}
case "wrap_longitude":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geocentroidaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geocentroidaggregate.go
index 716ffdb2c5..d3c292d84e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geocentroidaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geocentroidaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GeoCentroidAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L308-L312
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L308-L312
type GeoCentroidAggregate struct {
Count int64 `json:"count"`
Location GeoLocation `json:"location,omitempty"`
@@ -54,7 +54,7 @@ func (s *GeoCentroidAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geocentroidaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geocentroidaggregation.go
index 98c1bf700a..9d698668b5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geocentroidaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geocentroidaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GeoCentroidAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L116-L119
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L116-L119
type GeoCentroidAggregation struct {
Count *int64 `json:"count,omitempty"`
// Field The field on which to run the aggregation.
@@ -59,7 +59,7 @@ func (s *GeoCentroidAggregation) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodecayfunction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodecayfunction.go
index 995192b389..300f0ae8c7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodecayfunction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodecayfunction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -29,7 +29,7 @@ import (
// GeoDecayFunction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L190-L192
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L190-L192
type GeoDecayFunction struct {
GeoDecayFunction map[string]DecayPlacementGeoLocationDistance `json:"-"`
// MultiValueMode Determines how the distance is calculated when a field used for computing the
@@ -41,7 +41,7 @@ type GeoDecayFunction struct {
func (s GeoDecayFunction) MarshalJSON() ([]byte, error) {
type opt GeoDecayFunction
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistanceaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistanceaggregate.go
index 67b35b8adc..1b00eb3265 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistanceaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistanceaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// GeoDistanceAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L550-L554
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L550-L554
type GeoDistanceAggregate struct {
Buckets BucketsRangeBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistanceaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistanceaggregation.go
index bddd40227a..ad09aeb7bb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistanceaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistanceaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "strconv"
"github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/distanceunit"
"github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geodistancetype"
@@ -34,14 +33,12 @@ import (
// GeoDistanceAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L378-L401
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L382-L405
type GeoDistanceAggregation struct {
// DistanceType The distance calculation type.
DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"`
// Field A field of type `geo_point` used to evaluate the distance.
- Field *string `json:"field,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
+ Field *string `json:"field,omitempty"`
// Origin The origin used to evaluate the distance.
Origin GeoLocation `json:"origin,omitempty"`
// Ranges An array of ranges used to bucket documents.
@@ -75,23 +72,6 @@ func (s *GeoDistanceAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Field", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "origin":
if err := dec.Decode(&s.Origin); err != nil {
return fmt.Errorf("%s | %w", "Origin", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistancefeaturequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistancefeaturequery.go
index a8523586fd..a92926a1bd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistancefeaturequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistancefeaturequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GeoDistanceFeatureQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L62-L65
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L62-L65
type GeoDistanceFeatureQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -78,7 +78,7 @@ func (s *GeoDistanceFeatureQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistancequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistancequery.go
index 091e238368..9b7a397953 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistancequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistancequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// GeoDistanceQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/geo.ts#L57-L85
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L57-L85
type GeoDistanceQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -77,7 +77,7 @@ func (s *GeoDistanceQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -103,7 +103,7 @@ func (s *GeoDistanceQuery) UnmarshalJSON(data []byte) error {
}
case "ignore_unmapped":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -155,7 +155,7 @@ func (s *GeoDistanceQuery) UnmarshalJSON(data []byte) error {
func (s GeoDistanceQuery) MarshalJSON() ([]byte, error) {
type opt GeoDistanceQuery
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistancesort.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistancesort.go
index 21b0ffb901..be0d63205d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistancesort.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geodistancesort.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -36,7 +36,7 @@ import (
// GeoDistanceSort type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/sort.ts#L58-L66
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L58-L66
type GeoDistanceSort struct {
DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"`
GeoDistanceSort map[string][]GeoLocation `json:"-"`
@@ -67,7 +67,7 @@ func (s *GeoDistanceSort) UnmarshalJSON(data []byte) error {
}
case "ignore_unmapped":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -127,7 +127,7 @@ func (s *GeoDistanceSort) UnmarshalJSON(data []byte) error {
func (s GeoDistanceSort) MarshalJSON() ([]byte, error) {
type opt GeoDistanceSort
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashgridaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashgridaggregate.go
index 2e67ba051f..3de2003546 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashgridaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashgridaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// GeoHashGridAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L506-L508
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L506-L508
type GeoHashGridAggregate struct {
Buckets BucketsGeoHashGridBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashgridaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashgridaggregation.go
index 415d3842a0..1caf86d307 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashgridaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashgridaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,15 +31,13 @@ import (
// GeoHashGridAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L403-L428
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L407-L432
type GeoHashGridAggregation struct {
// Bounds The bounding box to filter the points in each bucket.
Bounds GeoBounds `json:"bounds,omitempty"`
// Field Field containing indexed `geo_point` or `geo_shape` values.
// If the field contains an array, `geohash_grid` aggregates all array values.
- Field *string `json:"field,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
+ Field *string `json:"field,omitempty"`
// Precision The string length of the geohashes used to define cells/buckets in the
// results.
Precision GeoHashPrecision `json:"precision,omitempty"`
@@ -77,23 +75,6 @@ func (s *GeoHashGridAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Field", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "precision":
if err := dec.Decode(&s.Precision); err != nil {
return fmt.Errorf("%s | %w", "Precision", err)
@@ -101,7 +82,7 @@ func (s *GeoHashGridAggregation) UnmarshalJSON(data []byte) error {
case "shard_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +98,7 @@ func (s *GeoHashGridAggregation) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashgridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashgridbucket.go
index 638264e3d3..b006a51acf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashgridbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashgridbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// GeoHashGridBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L510-L512
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L510-L512
type GeoHashGridBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *GeoHashGridBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +519,7 @@ func (s *GeoHashGridBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -569,7 +569,7 @@ func (s *GeoHashGridBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -579,7 +579,7 @@ func (s *GeoHashGridBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -596,7 +596,7 @@ func (s *GeoHashGridBucket) UnmarshalJSON(data []byte) error {
func (s GeoHashGridBucket) MarshalJSON() ([]byte, error) {
type opt GeoHashGridBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashlocation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashlocation.go
index 27479dbb47..c8aaba6516 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashlocation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashlocation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// GeoHashLocation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Geo.ts#L131-L133
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L131-L133
type GeoHashLocation struct {
Geohash string `json:"geohash"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashprecision.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashprecision.go
index 924455f2b5..1d36f7d3ef 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashprecision.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohashprecision.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// int
// string
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Geo.ts#L86-L90
-type GeoHashPrecision interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L86-L90
+type GeoHashPrecision any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohexgridaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohexgridaggregate.go
index 9eb1d938eb..4f35058043 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohexgridaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohexgridaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// GeoHexGridAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L522-L523
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L522-L523
type GeoHexGridAggregate struct {
Buckets BucketsGeoHexGridBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohexgridaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohexgridaggregation.go
index 218cfac0b1..80426cb31d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohexgridaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohexgridaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,15 +31,13 @@ import (
// GeohexGridAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L458-L483
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L462-L487
type GeohexGridAggregation struct {
// Bounds Bounding box used to filter the geo-points in each bucket.
Bounds GeoBounds `json:"bounds,omitempty"`
// Field Field containing indexed `geo_point` or `geo_shape` values.
// If the field contains an array, `geohex_grid` aggregates all array values.
- Field string `json:"field"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
+ Field string `json:"field"`
// Precision Integer zoom of the key used to defined cells or buckets
// in the results. Value should be between 0-15.
Precision *int `json:"precision,omitempty"`
@@ -74,26 +72,9 @@ func (s *GeohexGridAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Field", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "precision":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -109,7 +90,7 @@ func (s *GeohexGridAggregation) UnmarshalJSON(data []byte) error {
case "shard_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +106,7 @@ func (s *GeohexGridAggregation) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohexgridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohexgridbucket.go
index 1c3c8ae5b2..523e85b0ea 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohexgridbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geohexgridbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// GeoHexGridBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L525-L527
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L525-L527
type GeoHexGridBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *GeoHexGridBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +519,7 @@ func (s *GeoHexGridBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -569,7 +569,7 @@ func (s *GeoHexGridBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -579,7 +579,7 @@ func (s *GeoHexGridBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -596,7 +596,7 @@ func (s *GeoHexGridBucket) UnmarshalJSON(data []byte) error {
func (s GeoHexGridBucket) MarshalJSON() ([]byte, error) {
type opt GeoHexGridBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipdownloadstatistics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipdownloadstatistics.go
index 9f54ee7409..5a115255cf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipdownloadstatistics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipdownloadstatistics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GeoIpDownloadStatistics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/geo_ip_stats/types.ts#L24-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/geo_ip_stats/types.ts#L24-L35
type GeoIpDownloadStatistics struct {
// DatabaseCount Current number of databases available for use.
DatabaseCount int `json:"database_count"`
@@ -62,7 +62,7 @@ func (s *GeoIpDownloadStatistics) UnmarshalJSON(data []byte) error {
case "database_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -78,7 +78,7 @@ func (s *GeoIpDownloadStatistics) UnmarshalJSON(data []byte) error {
case "failed_downloads":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -94,7 +94,7 @@ func (s *GeoIpDownloadStatistics) UnmarshalJSON(data []byte) error {
case "skipped_updates":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -110,7 +110,7 @@ func (s *GeoIpDownloadStatistics) UnmarshalJSON(data []byte) error {
case "successful_downloads":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipnodedatabasename.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipnodedatabasename.go
index f61ac31dc8..f9f2e4bdb3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipnodedatabasename.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipnodedatabasename.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// GeoIpNodeDatabaseName type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/geo_ip_stats/types.ts#L45-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/geo_ip_stats/types.ts#L45-L48
type GeoIpNodeDatabaseName struct {
// Name Name of the database.
Name string `json:"name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipnodedatabases.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipnodedatabases.go
index 53b3d35812..79dd6acf34 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipnodedatabases.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipnodedatabases.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// GeoIpNodeDatabases type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/geo_ip_stats/types.ts#L37-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/geo_ip_stats/types.ts#L37-L43
type GeoIpNodeDatabases struct {
// Databases Downloaded databases for the node.
Databases []GeoIpNodeDatabaseName `json:"databases"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipprocessor.go
index 09dab5040d..2ed605052a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoipprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GeoIpProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L339-L368
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L339-L368
type GeoIpProcessor struct {
// DatabaseFile The database filename referring to a database the module ships with
// (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom
@@ -110,7 +110,7 @@ func (s *GeoIpProcessor) UnmarshalJSON(data []byte) error {
}
case "first_only":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -136,7 +136,7 @@ func (s *GeoIpProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +150,7 @@ func (s *GeoIpProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoline.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoline.go
index ecd5e0d37d..265d23e18c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoline.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GeoLine type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Geo.ts#L56-L62
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L56-L62
type GeoLine struct {
// Coordinates Array of `[lon, lat]` coordinates
Coordinates [][]Float64 `json:"coordinates"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolineaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolineaggregate.go
index 89db5f2db3..56340dc128 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolineaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolineaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GeoLineAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L784-L791
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L784-L791
type GeoLineAggregate struct {
Geometry GeoLine `json:"geometry"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolineaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolineaggregation.go
index 3eba12b745..5bdb86b6df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolineaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolineaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// GeoLineAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L121-L146
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L121-L146
type GeoLineAggregation struct {
// IncludeSort When `true`, returns an additional array of the sort values in the feature
// properties.
@@ -68,7 +68,7 @@ func (s *GeoLineAggregation) UnmarshalJSON(data []byte) error {
switch t {
case "include_sort":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *GeoLineAggregation) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolinepoint.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolinepoint.go
index 6819b60c03..ef97d28560 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolinepoint.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolinepoint.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// GeoLinePoint type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L155-L160
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L155-L160
type GeoLinePoint struct {
// Field The name of the geo_point field.
Field string `json:"field"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolinesort.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolinesort.go
index 74dbade4d3..4069e754e0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolinesort.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolinesort.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// GeoLineSort type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L148-L153
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L148-L153
type GeoLineSort struct {
// Field The name of the numeric field to use as the sort key for ordering the points.
Field string `json:"field"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolocation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolocation.go
index 19e1d91355..e3e37ad2e2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolocation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geolocation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -27,5 +27,5 @@ package types
// []Float64
// string
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Geo.ts#L104-L118
-type GeoLocation interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L104-L118
+type GeoLocation any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geopointproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geopointproperty.go
index d713d096c0..699f2491fa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geopointproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geopointproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// GeoPointProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/geo.ts#L24-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/geo.ts#L24-L32
type GeoPointProperty struct {
CopyTo []string `json:"copy_to,omitempty"`
DocValues *bool `json:"doc_values,omitempty"`
@@ -87,7 +87,7 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -112,7 +112,7 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -403,6 +403,12 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -414,7 +420,7 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -429,7 +435,7 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -443,7 +449,7 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_z_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -457,7 +463,7 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -495,7 +501,7 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -786,6 +792,12 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -844,7 +856,7 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geopolygonpoints.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geopolygonpoints.go
index 5dcab5e1d1..c1135e0705 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geopolygonpoints.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geopolygonpoints.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// GeoPolygonPoints type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/geo.ts#L87-L89
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L87-L89
type GeoPolygonPoints struct {
Points []GeoLocation `json:"points"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geopolygonquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geopolygonquery.go
index 1a06803c64..480c281ced 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geopolygonquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geopolygonquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// GeoPolygonQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/geo.ts#L91-L99
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L91-L99
type GeoPolygonQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -63,7 +63,7 @@ func (s *GeoPolygonQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -79,7 +79,7 @@ func (s *GeoPolygonQuery) UnmarshalJSON(data []byte) error {
}
case "ignore_unmapped":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -131,7 +131,7 @@ func (s *GeoPolygonQuery) UnmarshalJSON(data []byte) error {
func (s GeoPolygonQuery) MarshalJSON() ([]byte, error) {
type opt GeoPolygonQuery
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/georesults.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/georesults.go
index 89b009ed23..d2cfe04503 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/georesults.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/georesults.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GeoResults type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Anomaly.ts#L145-L154
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Anomaly.ts#L145-L154
type GeoResults struct {
// ActualPoint The actual value for the bucket formatted as a `geo_point`.
ActualPoint string `json:"actual_point"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoshapefieldquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoshapefieldquery.go
index a40d34ed1d..b3d1895151 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoshapefieldquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoshapefieldquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// GeoShapeFieldQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/geo.ts#L106-L117
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L106-L117
type GeoShapeFieldQuery struct {
// IndexedShape Query using an indexed shape retrieved from the the specified document and
// path.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoshapeproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoshapeproperty.go
index bcadc9072e..e4a9236780 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoshapeproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoshapeproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// GeoShapeProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/geo.ts#L41-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/geo.ts#L41-L54
type GeoShapeProperty struct {
Coerce *bool `json:"coerce,omitempty"`
CopyTo []string `json:"copy_to,omitempty"`
@@ -71,7 +71,7 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error {
switch t {
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -101,7 +101,7 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -126,7 +126,7 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -417,6 +417,12 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -428,7 +434,7 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -443,7 +449,7 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -457,7 +463,7 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_z_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -490,7 +496,7 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -781,6 +787,12 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -803,7 +815,7 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoshapequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoshapequery.go
index 29a72cc969..99ae982142 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoshapequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geoshapequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GeoShapeQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/geo.ts#L121-L131
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/geo.ts#L121-L131
type GeoShapeQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -63,7 +63,7 @@ func (s *GeoShapeQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -79,7 +79,7 @@ func (s *GeoShapeQuery) UnmarshalJSON(data []byte) error {
}
case "ignore_unmapped":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -126,7 +126,7 @@ func (s *GeoShapeQuery) UnmarshalJSON(data []byte) error {
func (s GeoShapeQuery) MarshalJSON() ([]byte, error) {
type opt GeoShapeQuery
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geotilegridaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geotilegridaggregate.go
index 0f0478c302..33b3c42e2f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geotilegridaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geotilegridaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// GeoTileGridAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L514-L516
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L514-L516
type GeoTileGridAggregate struct {
Buckets BucketsGeoTileGridBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geotilegridaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geotilegridaggregation.go
index 950b7c141f..5e362b0b9d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geotilegridaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geotilegridaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,15 +31,13 @@ import (
// GeoTileGridAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L430-L456
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L434-L460
type GeoTileGridAggregation struct {
// Bounds A bounding box to filter the geo-points or geo-shapes in each bucket.
Bounds GeoBounds `json:"bounds,omitempty"`
// Field Field containing indexed `geo_point` or `geo_shape` values.
// If the field contains an array, `geotile_grid` aggregates all array values.
- Field *string `json:"field,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
+ Field *string `json:"field,omitempty"`
// Precision Integer zoom of the key used to define cells/buckets in the results.
// Values outside of the range [0,29] will be rejected.
Precision *int `json:"precision,omitempty"`
@@ -77,23 +75,6 @@ func (s *GeoTileGridAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Field", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "precision":
if err := dec.Decode(&s.Precision); err != nil {
return fmt.Errorf("%s | %w", "Precision", err)
@@ -101,7 +82,7 @@ func (s *GeoTileGridAggregation) UnmarshalJSON(data []byte) error {
case "shard_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +98,7 @@ func (s *GeoTileGridAggregation) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geotilegridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geotilegridbucket.go
index ba6402cb8b..4df5d53915 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geotilegridbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/geotilegridbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// GeoTileGridBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L518-L520
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L518-L520
type GeoTileGridBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *GeoTileGridBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +519,7 @@ func (s *GeoTileGridBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -569,7 +569,7 @@ func (s *GeoTileGridBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -579,7 +579,7 @@ func (s *GeoTileGridBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -596,7 +596,7 @@ func (s *GeoTileGridBucket) UnmarshalJSON(data []byte) error {
func (s GeoTileGridBucket) MarshalJSON() ([]byte, error) {
type opt GeoTileGridBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getmigrationfeature.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getmigrationfeature.go
index 20714ed2bb..75d4968881 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getmigrationfeature.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getmigrationfeature.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// GetMigrationFeature type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L37-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L37-L42
type GetMigrationFeature struct {
FeatureName string `json:"feature_name"`
Indices []MigrationFeatureIndexInfo `json:"indices"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getresult.go
index eb9f5fe44a..caa944efde 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GetResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/get/types.ts#L25-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get/types.ts#L25-L35
type GetResult struct {
Fields map[string]json.RawMessage `json:"fields,omitempty"`
Found bool `json:"found"`
@@ -68,7 +68,7 @@ func (s *GetResult) UnmarshalJSON(data []byte) error {
}
case "found":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *GetResult) UnmarshalJSON(data []byte) error {
}
case "_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getscriptcontext.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getscriptcontext.go
index bea7bc3f53..67f3cb9451 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getscriptcontext.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getscriptcontext.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// GetScriptContext type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/get_script_context/types.ts#L22-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_script_context/types.ts#L22-L25
type GetScriptContext struct {
Methods []ContextMethod `json:"methods"`
Name string `json:"name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getstats.go
index 7e94b81af3..d8460a7113 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GetStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L130-L141
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L130-L141
type GetStats struct {
Current int64 `json:"current"`
ExistsTime Duration `json:"exists_time,omitempty"`
@@ -61,7 +61,7 @@ func (s *GetStats) UnmarshalJSON(data []byte) error {
switch t {
case "current":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -86,7 +86,7 @@ func (s *GetStats) UnmarshalJSON(data []byte) error {
}
case "exists_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -111,7 +111,7 @@ func (s *GetStats) UnmarshalJSON(data []byte) error {
}
case "missing_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -136,7 +136,7 @@ func (s *GetStats) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getuserprofileerrors.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getuserprofileerrors.go
index 1fbed1a13c..7129aa07b1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getuserprofileerrors.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/getuserprofileerrors.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GetUserProfileErrors type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_user_profile/types.ts#L25-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_user_profile/types.ts#L25-L28
type GetUserProfileErrors struct {
Count int64 `json:"count"`
Details map[string]ErrorCause `json:"details"`
@@ -53,7 +53,7 @@ func (s *GetUserProfileErrors) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/globalaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/globalaggregate.go
index 53a84e962f..a030974379 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/globalaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/globalaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// GlobalAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L492-L493
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L492-L493
type GlobalAggregate struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *GlobalAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +519,7 @@ func (s *GlobalAggregate) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -569,7 +569,7 @@ func (s *GlobalAggregate) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -579,7 +579,7 @@ func (s *GlobalAggregate) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -596,7 +596,7 @@ func (s *GlobalAggregate) UnmarshalJSON(data []byte) error {
func (s GlobalAggregate) MarshalJSON() ([]byte, error) {
type opt GlobalAggregate
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/globalaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/globalaggregation.go
index c605f411d1..868bf5bcf8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/globalaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/globalaggregation.go
@@ -16,62 +16,14 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
-import (
- "bytes"
- "encoding/json"
- "errors"
- "fmt"
- "io"
- "strconv"
-)
-
// GlobalAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L485-L485
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L489-L489
type GlobalAggregation struct {
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
-}
-
-func (s *GlobalAggregation) UnmarshalJSON(data []byte) error {
-
- dec := json.NewDecoder(bytes.NewReader(data))
-
- for {
- t, err := dec.Token()
- if err != nil {
- if errors.Is(err, io.EOF) {
- break
- }
- return err
- }
-
- switch t {
-
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
- }
- }
- return nil
}
// NewGlobalAggregation returns a GlobalAggregation.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/globalprivilege.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/globalprivilege.go
index 3d09c019d0..10a3d7866a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/globalprivilege.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/globalprivilege.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// GlobalPrivilege type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/Privileges.ts#L189-L191
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L214-L216
type GlobalPrivilege struct {
Application ApplicationGlobalUserPrivileges `json:"application"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/googlenormalizeddistanceheuristic.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/googlenormalizeddistanceheuristic.go
index ed70856fe7..f136357e67 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/googlenormalizeddistanceheuristic.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/googlenormalizeddistanceheuristic.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GoogleNormalizedDistanceHeuristic type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L744-L749
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L748-L753
type GoogleNormalizedDistanceHeuristic struct {
// BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a
// different set of documents that you want to compare to.
@@ -54,7 +54,7 @@ func (s *GoogleNormalizedDistanceHeuristic) UnmarshalJSON(data []byte) error {
switch t {
case "background_is_superset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/grantapikey.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/grantapikey.go
index 1b50ddca4d..a2e83ff710 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/grantapikey.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/grantapikey.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// GrantApiKey type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/grant_api_key/types.ts#L25-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/grant_api_key/types.ts#L25-L46
type GrantApiKey struct {
// Expiration Expiration time for the API key. By default, API keys never expire.
Expiration *string `json:"expiration,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/grokprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/grokprocessor.go
index 6d6a103a6c..32ca301fa5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/grokprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/grokprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GrokProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L672-L697
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L672-L697
type GrokProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -108,7 +108,7 @@ func (s *GrokProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -122,7 +122,7 @@ func (s *GrokProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -166,7 +166,7 @@ func (s *GrokProcessor) UnmarshalJSON(data []byte) error {
s.Tag = &o
case "trace_match":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/groupings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/groupings.go
index 9920a5f0d6..6b2474cfa1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/groupings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/groupings.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Groupings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/_types/Groupings.ts#L24-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/_types/Groupings.ts#L24-L40
type Groupings struct {
// DateHistogram A date histogram group aggregates a date field into time-based buckets.
// This group is mandatory; you currently cannot roll up documents without a
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/gsubprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/gsubprocessor.go
index b7df1b83c6..7f86c52435 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/gsubprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/gsubprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// GsubProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L699-L723
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L699-L723
type GsubProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -104,7 +104,7 @@ func (s *GsubProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -118,7 +118,7 @@ func (s *GsubProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/halffloatnumberproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/halffloatnumberproperty.go
index c773a65960..37d6531396 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/halffloatnumberproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/halffloatnumberproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// HalfFloatNumberProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L139-L142
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L141-L144
type HalfFloatNumberProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -79,7 +79,7 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +150,7 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -441,6 +441,12 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -452,7 +458,7 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -467,7 +473,7 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -481,7 +487,7 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -503,7 +509,7 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "null_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -530,7 +536,7 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -821,6 +827,12 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -879,7 +891,7 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -893,7 +905,7 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "time_series_dimension":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/haschildquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/haschildquery.go
index b74a22ebd3..2a7b88553d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/haschildquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/haschildquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// HasChildQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/joining.ts#L41-L76
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/joining.ts#L41-L76
type HasChildQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -84,7 +84,7 @@ func (s *HasChildQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *HasChildQuery) UnmarshalJSON(data []byte) error {
}
case "ignore_unmapped":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -120,7 +120,7 @@ func (s *HasChildQuery) UnmarshalJSON(data []byte) error {
case "max_children":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -136,7 +136,7 @@ func (s *HasChildQuery) UnmarshalJSON(data []byte) error {
case "min_children":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hasparentquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hasparentquery.go
index 6e389454a1..108bc92e27 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hasparentquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hasparentquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// HasParentQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/joining.ts#L78-L104
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/joining.ts#L78-L104
type HasParentQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -74,7 +74,7 @@ func (s *HasParentQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -90,7 +90,7 @@ func (s *HasParentQuery) UnmarshalJSON(data []byte) error {
}
case "ignore_unmapped":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -131,7 +131,7 @@ func (s *HasParentQuery) UnmarshalJSON(data []byte) error {
s.QueryName_ = &o
case "score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hasprivilegesuserprofileerrors.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hasprivilegesuserprofileerrors.go
index aee5ac7795..dab1295927 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hasprivilegesuserprofileerrors.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hasprivilegesuserprofileerrors.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// HasPrivilegesUserProfileErrors type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/has_privileges_user_profile/types.ts#L39-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges_user_profile/types.ts#L39-L42
type HasPrivilegesUserProfileErrors struct {
Count int64 `json:"count"`
Details map[string]ErrorCause `json:"details"`
@@ -53,7 +53,7 @@ func (s *HasPrivilegesUserProfileErrors) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hdrmethod.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hdrmethod.go
index c999144aff..666a45d3d3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hdrmethod.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hdrmethod.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// HdrMethod type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L216-L221
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L216-L221
type HdrMethod struct {
// NumberOfSignificantValueDigits Specifies the resolution of values for the histogram in number of significant
// digits.
@@ -55,7 +55,7 @@ func (s *HdrMethod) UnmarshalJSON(data []byte) error {
case "number_of_significant_value_digits":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hdrpercentileranksaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hdrpercentileranksaggregate.go
index ffe722a290..c44f2f5ecb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hdrpercentileranksaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hdrpercentileranksaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// HdrPercentileRanksAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L169-L170
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L169-L170
type HdrPercentileRanksAggregate struct {
Meta Metadata `json:"meta,omitempty"`
Values Percentiles `json:"values"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hdrpercentilesaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hdrpercentilesaggregate.go
index ad00da6a8f..43c9d65bf5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hdrpercentilesaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hdrpercentilesaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// HdrPercentilesAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L166-L167
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L166-L167
type HdrPercentilesAggregate struct {
Meta Metadata `json:"meta,omitempty"`
Values Percentiles `json:"values"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthrecord.go
index a83818b9bc..e2827c9808 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// HealthRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/health/types.ts#L23-L94
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/health/types.ts#L23-L94
type HealthRecord struct {
// ActiveShardsPercent active number of shards in percent
ActiveShardsPercent *string `json:"active_shards_percent,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthresponsebody.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthresponsebody.go
index 25e8432002..c925a0cb78 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthresponsebody.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthresponsebody.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// HealthResponseBody type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/health/ClusterHealthResponse.ts#L39-L72
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/health/ClusterHealthResponse.ts#L39-L72
type HealthResponseBody struct {
// ActivePrimaryShards The number of active primary shards.
ActivePrimaryShards int `json:"active_primary_shards"`
@@ -89,7 +89,7 @@ func (s *HealthResponseBody) UnmarshalJSON(data []byte) error {
case "active_primary_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -105,7 +105,7 @@ func (s *HealthResponseBody) UnmarshalJSON(data []byte) error {
case "active_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -131,7 +131,7 @@ func (s *HealthResponseBody) UnmarshalJSON(data []byte) error {
case "delayed_unassigned_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -155,7 +155,7 @@ func (s *HealthResponseBody) UnmarshalJSON(data []byte) error {
case "initializing_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -171,7 +171,7 @@ func (s *HealthResponseBody) UnmarshalJSON(data []byte) error {
case "number_of_data_nodes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -187,7 +187,7 @@ func (s *HealthResponseBody) UnmarshalJSON(data []byte) error {
case "number_of_in_flight_fetch":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -203,7 +203,7 @@ func (s *HealthResponseBody) UnmarshalJSON(data []byte) error {
case "number_of_nodes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -219,7 +219,7 @@ func (s *HealthResponseBody) UnmarshalJSON(data []byte) error {
case "number_of_pending_tasks":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -235,7 +235,7 @@ func (s *HealthResponseBody) UnmarshalJSON(data []byte) error {
case "relocating_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -265,7 +265,7 @@ func (s *HealthResponseBody) UnmarshalJSON(data []byte) error {
}
case "timed_out":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -280,7 +280,7 @@ func (s *HealthResponseBody) UnmarshalJSON(data []byte) error {
case "unassigned_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthstatistics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthstatistics.go
index 701fdec5e6..9aada13d0e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthstatistics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/healthstatistics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// HealthStatistics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L153-L155
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L153-L155
type HealthStatistics struct {
Available bool `json:"available"`
Enabled bool `json:"enabled"`
@@ -54,7 +54,7 @@ func (s *HealthStatistics) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -68,7 +68,7 @@ func (s *HealthStatistics) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/helprecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/helprecord.go
index 68b94e8678..b7d4781206 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/helprecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/helprecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// HelpRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/help/types.ts#L20-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/help/types.ts#L20-L22
type HelpRecord struct {
Endpoint string `json:"endpoint"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/highlight.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/highlight.go
index b31bde27e3..d36f315a6f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/highlight.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/highlight.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -38,7 +38,7 @@ import (
// Highlight type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/highlighting.ts#L153-L156
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L153-L156
type Highlight struct {
// BoundaryChars A string that contains each boundary character.
BoundaryChars *string `json:"boundary_chars,omitempty"`
@@ -145,7 +145,7 @@ func (s *Highlight) UnmarshalJSON(data []byte) error {
case "boundary_max_scan":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -190,7 +190,7 @@ func (s *Highlight) UnmarshalJSON(data []byte) error {
}
case "force_source":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -205,7 +205,7 @@ func (s *Highlight) UnmarshalJSON(data []byte) error {
case "fragment_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -225,7 +225,7 @@ func (s *Highlight) UnmarshalJSON(data []byte) error {
}
case "highlight_filter":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -245,7 +245,7 @@ func (s *Highlight) UnmarshalJSON(data []byte) error {
case "max_analyzed_offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -261,7 +261,7 @@ func (s *Highlight) UnmarshalJSON(data []byte) error {
case "max_fragment_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -277,7 +277,7 @@ func (s *Highlight) UnmarshalJSON(data []byte) error {
case "no_match_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -293,7 +293,7 @@ func (s *Highlight) UnmarshalJSON(data []byte) error {
case "number_of_fragments":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -322,7 +322,7 @@ func (s *Highlight) UnmarshalJSON(data []byte) error {
case "phrase_limit":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -347,7 +347,7 @@ func (s *Highlight) UnmarshalJSON(data []byte) error {
}
case "require_field_match":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/highlightfield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/highlightfield.go
index 7dc8323bd3..0e045997a1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/highlightfield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/highlightfield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -37,7 +37,7 @@ import (
// HighlightField type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/highlighting.ts#L193-L197
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/highlighting.ts#L193-L197
type HighlightField struct {
Analyzer Analyzer `json:"analyzer,omitempty"`
// BoundaryChars A string that contains each boundary character.
@@ -249,7 +249,7 @@ func (s *HighlightField) UnmarshalJSON(data []byte) error {
case "boundary_max_scan":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -281,7 +281,7 @@ func (s *HighlightField) UnmarshalJSON(data []byte) error {
s.BoundaryScannerLocale = &o
case "force_source":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -296,7 +296,7 @@ func (s *HighlightField) UnmarshalJSON(data []byte) error {
case "fragment_offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -312,7 +312,7 @@ func (s *HighlightField) UnmarshalJSON(data []byte) error {
case "fragment_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -332,7 +332,7 @@ func (s *HighlightField) UnmarshalJSON(data []byte) error {
}
case "highlight_filter":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -368,7 +368,7 @@ func (s *HighlightField) UnmarshalJSON(data []byte) error {
case "max_analyzed_offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -384,7 +384,7 @@ func (s *HighlightField) UnmarshalJSON(data []byte) error {
case "max_fragment_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -400,7 +400,7 @@ func (s *HighlightField) UnmarshalJSON(data []byte) error {
case "no_match_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -416,7 +416,7 @@ func (s *HighlightField) UnmarshalJSON(data []byte) error {
case "number_of_fragments":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -445,7 +445,7 @@ func (s *HighlightField) UnmarshalJSON(data []byte) error {
case "phrase_limit":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -470,7 +470,7 @@ func (s *HighlightField) UnmarshalJSON(data []byte) error {
}
case "require_field_match":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hint.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hint.go
index 233cd93952..2db0028a55 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hint.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hint.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Hint type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/suggest_user_profiles/types.ts#L23-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/suggest_user_profiles/types.ts#L23-L34
type Hint struct {
// Labels A single key-value pair to match against the labels section
// of a profile. A profile is considered matching if it matches
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramaggregate.go
index 451c6d32a8..5cf8bfc5e5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// HistogramAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L340-L341
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L340-L341
type HistogramAggregate struct {
Buckets BucketsHistogramBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramaggregation.go
index a040233340..52d133d84b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// HistogramAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L498-L544
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L502-L548
type HistogramAggregation struct {
// ExtendedBounds Enables extending the bounds of the histogram beyond the data itself.
ExtendedBounds *ExtendedBoundsdouble `json:"extended_bounds,omitempty"`
@@ -49,15 +49,13 @@ type HistogramAggregation struct {
Interval *Float64 `json:"interval,omitempty"`
// Keyed If `true`, returns buckets as a hash instead of an array, keyed by the bucket
// keys.
- Keyed *bool `json:"keyed,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
+ Keyed *bool `json:"keyed,omitempty"`
// MinDocCount Only returns buckets that have `min_doc_count` number of documents.
// By default, the response will fill gaps in the histogram with empty buckets.
MinDocCount *int `json:"min_doc_count,omitempty"`
// Missing The value to apply to documents that do not have a value.
// By default, documents without a value are ignored.
Missing *Float64 `json:"missing,omitempty"`
- Name *string `json:"name,omitempty"`
// Offset By default, the bucket keys start with 0 and then continue in even spaced
// steps of `interval`.
// The bucket boundaries can be shifted by using the `offset` option.
@@ -111,7 +109,7 @@ func (s *HistogramAggregation) UnmarshalJSON(data []byte) error {
}
case "interval":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -127,7 +125,7 @@ func (s *HistogramAggregation) UnmarshalJSON(data []byte) error {
}
case "keyed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -140,14 +138,9 @@ func (s *HistogramAggregation) UnmarshalJSON(data []byte) error {
s.Keyed = &v
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "min_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -162,7 +155,7 @@ func (s *HistogramAggregation) UnmarshalJSON(data []byte) error {
}
case "missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -177,20 +170,8 @@ func (s *HistogramAggregation) UnmarshalJSON(data []byte) error {
s.Missing = &f
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogrambucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogrambucket.go
index ce762c90fa..95cae4cb88 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogrambucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogrambucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// HistogramBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L343-L346
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L343-L346
type HistogramBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -56,7 +56,7 @@ func (s *HistogramBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *HistogramBucket) UnmarshalJSON(data []byte) error {
}
case "key":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -543,7 +543,7 @@ func (s *HistogramBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -593,7 +593,7 @@ func (s *HistogramBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -603,7 +603,7 @@ func (s *HistogramBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -620,7 +620,7 @@ func (s *HistogramBucket) UnmarshalJSON(data []byte) error {
func (s HistogramBucket) MarshalJSON() ([]byte, error) {
type opt HistogramBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramgrouping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramgrouping.go
index 78d0a791aa..1c899e9136 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramgrouping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramgrouping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// HistogramGrouping type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/_types/Groupings.ts#L84-L97
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/_types/Groupings.ts#L84-L97
type HistogramGrouping struct {
// Fields The set of fields that you wish to build histograms for.
// All fields specified must be some kind of numeric.
@@ -77,7 +77,7 @@ func (s *HistogramGrouping) UnmarshalJSON(data []byte) error {
}
case "interval":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramproperty.go
index 1e5c6605ef..be9fd970f8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/histogramproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// HistogramProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/specialized.ts#L54-L57
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L60-L63
type HistogramProperty struct {
Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
Fields map[string]Property `json:"fields,omitempty"`
@@ -72,7 +72,7 @@ func (s *HistogramProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -363,6 +363,12 @@ func (s *HistogramProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -374,7 +380,7 @@ func (s *HistogramProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -389,7 +395,7 @@ func (s *HistogramProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -417,7 +423,7 @@ func (s *HistogramProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -708,6 +714,12 @@ func (s *HistogramProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hit.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hit.go
index db6f2ed155..44e7eba16c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hit.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hit.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,12 +31,12 @@ import (
// Hit type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/hits.ts#L40-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/hits.ts#L40-L64
type Hit struct {
Explanation_ *Explanation `json:"_explanation,omitempty"`
Fields map[string]json.RawMessage `json:"fields,omitempty"`
Highlight map[string][]string `json:"highlight,omitempty"`
- Id_ string `json:"_id"`
+ Id_ *string `json:"_id,omitempty"`
IgnoredFieldValues map[string][]string `json:"ignored_field_values,omitempty"`
Ignored_ []string `json:"_ignored,omitempty"`
Index_ string `json:"_index"`
@@ -144,7 +144,7 @@ func (s *Hit) UnmarshalJSON(data []byte) error {
s.Node_ = &o
case "_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hitsevent.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hitsevent.go
index 6f57e92f93..84a14e9523 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hitsevent.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hitsevent.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// HitsEvent type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/eql/_types/EqlHits.ts#L41-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/_types/EqlHits.ts#L41-L49
type HitsEvent struct {
Fields map[string][]json.RawMessage `json:"fields,omitempty"`
// Id_ Unique identifier for the event. This ID is only unique within the index.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hitsmetadata.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hitsmetadata.go
index ced0b7d6aa..547cbb79c6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hitsmetadata.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hitsmetadata.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// HitsMetadata type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/hits.ts#L66-L72
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/hits.ts#L66-L72
type HitsMetadata struct {
Hits []Hit `json:"hits"`
MaxScore Float64 `json:"max_score,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hitssequence.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hitssequence.go
index 865afe3926..1a73488e44 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hitssequence.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hitssequence.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// HitsSequence type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/eql/_types/EqlHits.ts#L51-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/eql/_types/EqlHits.ts#L51-L59
type HitsSequence struct {
// Events Contains events matching the query. Each object represents a matching event.
Events []HitsEvent `json:"events"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtlinearmodelsettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtlinearmodelsettings.go
index 8d1c6aba2c..b194239d62 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtlinearmodelsettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtlinearmodelsettings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// HoltLinearModelSettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L271-L274
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L271-L274
type HoltLinearModelSettings struct {
Alpha *float32 `json:"alpha,omitempty"`
Beta *float32 `json:"beta,omitempty"`
@@ -53,7 +53,7 @@ func (s *HoltLinearModelSettings) UnmarshalJSON(data []byte) error {
switch t {
case "alpha":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -69,7 +69,7 @@ func (s *HoltLinearModelSettings) UnmarshalJSON(data []byte) error {
}
case "beta":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtmovingaverageaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtmovingaverageaggregation.go
index 14b5ae3140..dd93cc45b8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtmovingaverageaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtmovingaverageaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// HoltMovingAverageAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L257-L260
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L257-L260
type HoltMovingAverageAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,10 +43,8 @@ type HoltMovingAverageAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
Minimize *bool `json:"minimize,omitempty"`
Model string `json:"model,omitempty"`
- Name *string `json:"name,omitempty"`
Predict *int `json:"predict,omitempty"`
Settings HoltLinearModelSettings `json:"settings"`
Window *int `json:"window,omitempty"`
@@ -89,13 +87,8 @@ func (s *HoltMovingAverageAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "minimize":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,21 +106,9 @@ func (s *HoltMovingAverageAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Model", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "predict":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -148,7 +129,7 @@ func (s *HoltMovingAverageAggregation) UnmarshalJSON(data []byte) error {
case "window":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -174,10 +155,8 @@ func (s HoltMovingAverageAggregation) MarshalJSON() ([]byte, error) {
BucketsPath: s.BucketsPath,
Format: s.Format,
GapPolicy: s.GapPolicy,
- Meta: s.Meta,
Minimize: s.Minimize,
Model: s.Model,
- Name: s.Name,
Predict: s.Predict,
Settings: s.Settings,
Window: s.Window,
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtwintersmodelsettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtwintersmodelsettings.go
index 184aca264e..6943fc98c5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtwintersmodelsettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtwintersmodelsettings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// HoltWintersModelSettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L275-L282
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L275-L282
type HoltWintersModelSettings struct {
Alpha *float32 `json:"alpha,omitempty"`
Beta *float32 `json:"beta,omitempty"`
@@ -59,7 +59,7 @@ func (s *HoltWintersModelSettings) UnmarshalJSON(data []byte) error {
switch t {
case "alpha":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -75,7 +75,7 @@ func (s *HoltWintersModelSettings) UnmarshalJSON(data []byte) error {
}
case "beta":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *HoltWintersModelSettings) UnmarshalJSON(data []byte) error {
}
case "gamma":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -107,7 +107,7 @@ func (s *HoltWintersModelSettings) UnmarshalJSON(data []byte) error {
}
case "pad":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -122,7 +122,7 @@ func (s *HoltWintersModelSettings) UnmarshalJSON(data []byte) error {
case "period":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtwintersmovingaverageaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtwintersmovingaverageaggregation.go
index e0e3ce34bf..4bb6b0d167 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtwintersmovingaverageaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/holtwintersmovingaverageaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// HoltWintersMovingAverageAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L262-L265
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L262-L265
type HoltWintersMovingAverageAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,10 +43,8 @@ type HoltWintersMovingAverageAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
Minimize *bool `json:"minimize,omitempty"`
Model string `json:"model,omitempty"`
- Name *string `json:"name,omitempty"`
Predict *int `json:"predict,omitempty"`
Settings HoltWintersModelSettings `json:"settings"`
Window *int `json:"window,omitempty"`
@@ -89,13 +87,8 @@ func (s *HoltWintersMovingAverageAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "minimize":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,21 +106,9 @@ func (s *HoltWintersMovingAverageAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Model", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "predict":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -148,7 +129,7 @@ func (s *HoltWintersMovingAverageAggregation) UnmarshalJSON(data []byte) error {
case "window":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -174,10 +155,8 @@ func (s HoltWintersMovingAverageAggregation) MarshalJSON() ([]byte, error) {
BucketsPath: s.BucketsPath,
Format: s.Format,
GapPolicy: s.GapPolicy,
- Meta: s.Meta,
Minimize: s.Minimize,
Model: s.Model,
- Name: s.Name,
Predict: s.Predict,
Settings: s.Settings,
Window: s.Window,
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hop.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hop.go
index a46e30ce1a..e022b0a26d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hop.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hop.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Hop type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/graph/_types/Hop.ts#L23-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/_types/Hop.ts#L23-L36
type Hop struct {
// Connections Specifies one or more fields from which you want to extract terms that are
// associated with the specified vertices.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hotthread.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hotthread.go
index a2fcb5db2f..a494c0b505 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hotthread.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hotthread.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// HotThread type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/hot_threads/types.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/hot_threads/types.ts#L23-L28
type HotThread struct {
Hosts []string `json:"hosts"`
NodeId string `json:"node_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hourandminute.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hourandminute.go
index f75744aa3b..def3e48a5e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hourandminute.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hourandminute.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// HourAndMinute type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Schedule.ts#L105-L108
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L105-L108
type HourAndMinute struct {
Hour []int `json:"hour"`
Minute []int `json:"minute"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hourlyschedule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hourlyschedule.go
index 9031c44400..4c14a379c4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hourlyschedule.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hourlyschedule.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// HourlySchedule type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Schedule.ts#L47-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L47-L49
type HourlySchedule struct {
Minute []int `json:"minute"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/htmlstripcharfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/htmlstripcharfilter.go
index ccb5acb81d..d21b9bf616 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/htmlstripcharfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/htmlstripcharfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// HtmlStripCharFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/char_filters.ts#L43-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/char_filters.ts#L43-L46
type HtmlStripCharFilter struct {
EscapedTags []string `json:"escaped_tags,omitempty"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/http.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/http.go
index ec31f2dd80..87ef8591f2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/http.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/http.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Http type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L633-L647
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L633-L647
type Http struct {
// Clients Information on current and recently-closed HTTP client connections.
// Clients that have been closed longer than the
@@ -66,7 +66,7 @@ func (s *Http) UnmarshalJSON(data []byte) error {
case "current_open":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -81,7 +81,7 @@ func (s *Http) UnmarshalJSON(data []byte) error {
}
case "total_opened":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpemailattachment.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpemailattachment.go
index a9cb71f4cb..e671a832af 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpemailattachment.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpemailattachment.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// HttpEmailAttachment type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L218-L222
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L218-L222
type HttpEmailAttachment struct {
ContentType *string `json:"content_type,omitempty"`
Inline *bool `json:"inline,omitempty"`
@@ -66,7 +66,7 @@ func (s *HttpEmailAttachment) UnmarshalJSON(data []byte) error {
s.ContentType = &o
case "inline":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpheaders.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpheaders.go
index 290bc2fd23..4f69cc03c7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpheaders.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpheaders.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// HttpHeaders type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L158-L158
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L158-L158
type HttpHeaders map[string][]string
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinput.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinput.go
index a75d0816c8..ff8665cc73 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinput.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinput.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// HttpInput type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L44-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L44-L48
type HttpInput struct {
Extract []string `json:"extract,omitempty"`
Request *HttpInputRequestDefinition `json:"request,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputauthentication.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputauthentication.go
index 0becdf666b..01caf87e16 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputauthentication.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputauthentication.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// HttpInputAuthentication type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L50-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L50-L52
type HttpInputAuthentication struct {
Basic HttpInputBasicAuthentication `json:"basic"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputbasicauthentication.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputbasicauthentication.go
index dffddb7589..15815d6749 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputbasicauthentication.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputbasicauthentication.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// HttpInputBasicAuthentication type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L54-L57
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L54-L57
type HttpInputBasicAuthentication struct {
Password string `json:"password"`
Username string `json:"username"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputproxy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputproxy.go
index ba7e6962bc..fca5ab7c7b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputproxy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputproxy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// HttpInputProxy type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L67-L70
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L67-L70
type HttpInputProxy struct {
Host string `json:"host"`
Port uint `json:"port"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputrequestdefinition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputrequestdefinition.go
index a623a8d058..6d6d16b98a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputrequestdefinition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputrequestdefinition.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// HttpInputRequestDefinition type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L72-L86
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L72-L86
type HttpInputRequestDefinition struct {
Auth *HttpInputAuthentication `json:"auth,omitempty"`
Body *string `json:"body,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputrequestresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputrequestresult.go
index 5e6ac7e940..6ca7b038cf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputrequestresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputrequestresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// HttpInputRequestResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L300-L300
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L300-L300
type HttpInputRequestResult struct {
Auth *HttpInputAuthentication `json:"auth,omitempty"`
Body *string `json:"body,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputresponseresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputresponseresult.go
index 1636ab18c2..5772b9f8b4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputresponseresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/httpinputresponseresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// HttpInputResponseResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L302-L306
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L302-L306
type HttpInputResponseResult struct {
Body string `json:"body"`
Headers HttpHeaders `json:"headers"`
@@ -72,7 +72,7 @@ func (s *HttpInputResponseResult) UnmarshalJSON(data []byte) error {
case "status":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hunspelltokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hunspelltokenfilter.go
index 9b540ad255..8a9c03299e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hunspelltokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hunspelltokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// HunspellTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L200-L206
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L202-L208
type HunspellTokenFilter struct {
Dedup *bool `json:"dedup,omitempty"`
Dictionary *string `json:"dictionary,omitempty"`
@@ -57,7 +57,7 @@ func (s *HunspellTokenFilter) UnmarshalJSON(data []byte) error {
switch t {
case "dedup":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *HunspellTokenFilter) UnmarshalJSON(data []byte) error {
s.Locale = o
case "longest_only":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hyperparameter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hyperparameter.go
index 3d6e407cea..d8a66f69a2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hyperparameter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hyperparameter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Hyperparameter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L217-L231
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L217-L231
type Hyperparameter struct {
// AbsoluteImportance A positive number showing how much the parameter influences the variation of
// the loss function. For hyperparameters with values that are not specified by
@@ -67,7 +67,7 @@ func (s *Hyperparameter) UnmarshalJSON(data []byte) error {
switch t {
case "absolute_importance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *Hyperparameter) UnmarshalJSON(data []byte) error {
}
case "relative_importance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +104,7 @@ func (s *Hyperparameter) UnmarshalJSON(data []byte) error {
}
case "supplied":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -118,7 +118,7 @@ func (s *Hyperparameter) UnmarshalJSON(data []byte) error {
}
case "value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hyperparameters.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hyperparameters.go
index 8ad84e56c2..708b326017 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hyperparameters.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hyperparameters.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Hyperparameters type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L419-L525
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L419-L525
type Hyperparameters struct {
// Alpha Advanced configuration option.
// Machine learning uses loss guided tree growing, which means that the decision
@@ -148,7 +148,7 @@ func (s *Hyperparameters) UnmarshalJSON(data []byte) error {
switch t {
case "alpha":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -164,7 +164,7 @@ func (s *Hyperparameters) UnmarshalJSON(data []byte) error {
}
case "downsample_factor":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -180,7 +180,7 @@ func (s *Hyperparameters) UnmarshalJSON(data []byte) error {
}
case "eta":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -196,7 +196,7 @@ func (s *Hyperparameters) UnmarshalJSON(data []byte) error {
}
case "eta_growth_rate_per_tree":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -212,7 +212,7 @@ func (s *Hyperparameters) UnmarshalJSON(data []byte) error {
}
case "feature_bag_fraction":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -228,7 +228,7 @@ func (s *Hyperparameters) UnmarshalJSON(data []byte) error {
}
case "gamma":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -244,7 +244,7 @@ func (s *Hyperparameters) UnmarshalJSON(data []byte) error {
}
case "lambda":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -261,7 +261,7 @@ func (s *Hyperparameters) UnmarshalJSON(data []byte) error {
case "max_attempts_to_add_tree":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -277,7 +277,7 @@ func (s *Hyperparameters) UnmarshalJSON(data []byte) error {
case "max_optimization_rounds_per_hyperparameter":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -293,7 +293,7 @@ func (s *Hyperparameters) UnmarshalJSON(data []byte) error {
case "max_trees":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -309,7 +309,7 @@ func (s *Hyperparameters) UnmarshalJSON(data []byte) error {
case "num_folds":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -325,7 +325,7 @@ func (s *Hyperparameters) UnmarshalJSON(data []byte) error {
case "num_splits_per_feature":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -341,7 +341,7 @@ func (s *Hyperparameters) UnmarshalJSON(data []byte) error {
case "soft_tree_depth_limit":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -356,7 +356,7 @@ func (s *Hyperparameters) UnmarshalJSON(data []byte) error {
}
case "soft_tree_depth_tolerance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hyphenationdecompoundertokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hyphenationdecompoundertokenfilter.go
index e60bb4daf2..ac62221b93 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hyphenationdecompoundertokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/hyphenationdecompoundertokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// HyphenationDecompounderTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L58-L60
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L58-L60
type HyphenationDecompounderTokenFilter struct {
HyphenationPatternsPath *string `json:"hyphenation_patterns_path,omitempty"`
MaxSubwordSize *int `json:"max_subword_size,omitempty"`
@@ -73,7 +73,7 @@ func (s *HyphenationDecompounderTokenFilter) UnmarshalJSON(data []byte) error {
case "max_subword_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -89,7 +89,7 @@ func (s *HyphenationDecompounderTokenFilter) UnmarshalJSON(data []byte) error {
case "min_subword_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -105,7 +105,7 @@ func (s *HyphenationDecompounderTokenFilter) UnmarshalJSON(data []byte) error {
case "min_word_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -120,7 +120,7 @@ func (s *HyphenationDecompounderTokenFilter) UnmarshalJSON(data []byte) error {
}
case "only_longest_match":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icuanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icuanalyzer.go
index bbf91ae13d..914d6eeb92 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icuanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icuanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -29,7 +29,7 @@ import (
// IcuAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/icu-plugin.ts#L67-L71
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L67-L71
type IcuAnalyzer struct {
Method icunormalizationtype.IcuNormalizationType `json:"method"`
Mode icunormalizationmode.IcuNormalizationMode `json:"mode"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icucollationproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icucollationproperty.go
new file mode 100644
index 0000000000..dd441810f3
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icucollationproperty.go
@@ -0,0 +1,1026 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Code generated from the elasticsearch-specification DO NOT EDIT.
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
+
+package types
+
+import (
+ "bytes"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "strconv"
+
+ "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping"
+ "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationalternate"
+ "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationcasefirst"
+ "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationdecomposition"
+ "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationstrength"
+ "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions"
+)
+
+// IcuCollationProperty type.
+//
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L94-L122
+type IcuCollationProperty struct {
+ Alternate *icucollationalternate.IcuCollationAlternate `json:"alternate,omitempty"`
+ CaseFirst *icucollationcasefirst.IcuCollationCaseFirst `json:"case_first,omitempty"`
+ CaseLevel *bool `json:"case_level,omitempty"`
+ CopyTo []string `json:"copy_to,omitempty"`
+ Country *string `json:"country,omitempty"`
+ Decomposition *icucollationdecomposition.IcuCollationDecomposition `json:"decomposition,omitempty"`
+ DocValues *bool `json:"doc_values,omitempty"`
+ Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
+ Fields map[string]Property `json:"fields,omitempty"`
+ HiraganaQuaternaryMode *bool `json:"hiragana_quaternary_mode,omitempty"`
+ IgnoreAbove *int `json:"ignore_above,omitempty"`
+ // Index Should the field be searchable?
+ Index *bool `json:"index,omitempty"`
+ IndexOptions *indexoptions.IndexOptions `json:"index_options,omitempty"`
+ Language *string `json:"language,omitempty"`
+ // Meta Metadata about the field.
+ Meta map[string]string `json:"meta,omitempty"`
+ Norms *bool `json:"norms,omitempty"`
+ // NullValue Accepts a string value which is substituted for any explicit null values.
+ // Defaults to null, which means the field is treated as missing.
+ NullValue *string `json:"null_value,omitempty"`
+ Numeric *bool `json:"numeric,omitempty"`
+ Properties map[string]Property `json:"properties,omitempty"`
+ Rules *string `json:"rules,omitempty"`
+ Similarity *string `json:"similarity,omitempty"`
+ // Store Whether the field value should be stored and retrievable separately from the
+ // `_source` field.
+ Store *bool `json:"store,omitempty"`
+ Strength *icucollationstrength.IcuCollationStrength `json:"strength,omitempty"`
+ Type string `json:"type,omitempty"`
+ VariableTop *string `json:"variable_top,omitempty"`
+ Variant *string `json:"variant,omitempty"`
+}
+
+func (s *IcuCollationProperty) UnmarshalJSON(data []byte) error {
+
+ dec := json.NewDecoder(bytes.NewReader(data))
+
+ for {
+ t, err := dec.Token()
+ if err != nil {
+ if errors.Is(err, io.EOF) {
+ break
+ }
+ return err
+ }
+
+ switch t {
+
+ case "alternate":
+ if err := dec.Decode(&s.Alternate); err != nil {
+ return fmt.Errorf("%s | %w", "Alternate", err)
+ }
+
+ case "case_first":
+ if err := dec.Decode(&s.CaseFirst); err != nil {
+ return fmt.Errorf("%s | %w", "CaseFirst", err)
+ }
+
+ case "case_level":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "CaseLevel", err)
+ }
+ s.CaseLevel = &value
+ case bool:
+ s.CaseLevel = &v
+ }
+
+ case "copy_to":
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := new(string)
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "CopyTo", err)
+ }
+
+ s.CopyTo = append(s.CopyTo, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.CopyTo); err != nil {
+ return fmt.Errorf("%s | %w", "CopyTo", err)
+ }
+ }
+
+ case "country":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "Country", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.Country = &o
+
+ case "decomposition":
+ if err := dec.Decode(&s.Decomposition); err != nil {
+ return fmt.Errorf("%s | %w", "Decomposition", err)
+ }
+
+ case "doc_values":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "DocValues", err)
+ }
+ s.DocValues = &value
+ case bool:
+ s.DocValues = &v
+ }
+
+ case "dynamic":
+ if err := dec.Decode(&s.Dynamic); err != nil {
+ return fmt.Errorf("%s | %w", "Dynamic", err)
+ }
+
+ case "fields":
+ if s.Fields == nil {
+ s.Fields = make(map[string]Property, 0)
+ }
+ refs := make(map[string]json.RawMessage, 0)
+ dec.Decode(&refs)
+ for key, message := range refs {
+ kind := make(map[string]any)
+ buf := bytes.NewReader(message)
+ localDec := json.NewDecoder(buf)
+ localDec.Decode(&kind)
+ buf.Seek(0, io.SeekStart)
+ if _, ok := kind["type"]; !ok {
+ kind["type"] = "object"
+ }
+ switch kind["type"] {
+ case "binary":
+ oo := NewBinaryProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "boolean":
+ oo := NewBooleanProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "{dynamic_type}":
+ oo := NewDynamicProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "join":
+ oo := NewJoinProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "keyword":
+ oo := NewKeywordProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "match_only_text":
+ oo := NewMatchOnlyTextProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "percolator":
+ oo := NewPercolatorProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "rank_feature":
+ oo := NewRankFeatureProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "rank_features":
+ oo := NewRankFeaturesProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "search_as_you_type":
+ oo := NewSearchAsYouTypeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "text":
+ oo := NewTextProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "version":
+ oo := NewVersionProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "wildcard":
+ oo := NewWildcardProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "date_nanos":
+ oo := NewDateNanosProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "date":
+ oo := NewDateProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "aggregate_metric_double":
+ oo := NewAggregateMetricDoubleProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "dense_vector":
+ oo := NewDenseVectorProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "sparse_vector":
+ oo := NewSparseVectorProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "flattened":
+ oo := NewFlattenedProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "nested":
+ oo := NewNestedProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "object":
+ oo := NewObjectProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "completion":
+ oo := NewCompletionProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "constant_keyword":
+ oo := NewConstantKeywordProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "alias":
+ oo := NewFieldAliasProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "histogram":
+ oo := NewHistogramProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "ip":
+ oo := NewIpProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "murmur3":
+ oo := NewMurmur3HashProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "token_count":
+ oo := NewTokenCountProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "geo_point":
+ oo := NewGeoPointProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "geo_shape":
+ oo := NewGeoShapeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "point":
+ oo := NewPointProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "shape":
+ oo := NewShapeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "byte":
+ oo := NewByteNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "double":
+ oo := NewDoubleNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "float":
+ oo := NewFloatNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "half_float":
+ oo := NewHalfFloatNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "integer":
+ oo := NewIntegerNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "long":
+ oo := NewLongNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "scaled_float":
+ oo := NewScaledFloatNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "short":
+ oo := NewShortNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "unsigned_long":
+ oo := NewUnsignedLongNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "date_range":
+ oo := NewDateRangeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "double_range":
+ oo := NewDoubleRangeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "float_range":
+ oo := NewFloatRangeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "integer_range":
+ oo := NewIntegerRangeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "ip_range":
+ oo := NewIpRangeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "long_range":
+ oo := NewLongRangeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ default:
+ oo := new(Property)
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
+ }
+ }
+
+ case "hiragana_quaternary_mode":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "HiraganaQuaternaryMode", err)
+ }
+ s.HiraganaQuaternaryMode = &value
+ case bool:
+ s.HiraganaQuaternaryMode = &v
+ }
+
+ case "ignore_above":
+
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.Atoi(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "IgnoreAbove", err)
+ }
+ s.IgnoreAbove = &value
+ case float64:
+ f := int(v)
+ s.IgnoreAbove = &f
+ }
+
+ case "index":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Index", err)
+ }
+ s.Index = &value
+ case bool:
+ s.Index = &v
+ }
+
+ case "index_options":
+ if err := dec.Decode(&s.IndexOptions); err != nil {
+ return fmt.Errorf("%s | %w", "IndexOptions", err)
+ }
+
+ case "language":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "Language", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.Language = &o
+
+ case "meta":
+ if s.Meta == nil {
+ s.Meta = make(map[string]string, 0)
+ }
+ if err := dec.Decode(&s.Meta); err != nil {
+ return fmt.Errorf("%s | %w", "Meta", err)
+ }
+
+ case "norms":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Norms", err)
+ }
+ s.Norms = &value
+ case bool:
+ s.Norms = &v
+ }
+
+ case "null_value":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "NullValue", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.NullValue = &o
+
+ case "numeric":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Numeric", err)
+ }
+ s.Numeric = &value
+ case bool:
+ s.Numeric = &v
+ }
+
+ case "properties":
+ if s.Properties == nil {
+ s.Properties = make(map[string]Property, 0)
+ }
+ refs := make(map[string]json.RawMessage, 0)
+ dec.Decode(&refs)
+ for key, message := range refs {
+ kind := make(map[string]any)
+ buf := bytes.NewReader(message)
+ localDec := json.NewDecoder(buf)
+ localDec.Decode(&kind)
+ buf.Seek(0, io.SeekStart)
+ if _, ok := kind["type"]; !ok {
+ kind["type"] = "object"
+ }
+ switch kind["type"] {
+ case "binary":
+ oo := NewBinaryProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "boolean":
+ oo := NewBooleanProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "{dynamic_type}":
+ oo := NewDynamicProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "join":
+ oo := NewJoinProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "keyword":
+ oo := NewKeywordProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "match_only_text":
+ oo := NewMatchOnlyTextProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "percolator":
+ oo := NewPercolatorProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "rank_feature":
+ oo := NewRankFeatureProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "rank_features":
+ oo := NewRankFeaturesProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "search_as_you_type":
+ oo := NewSearchAsYouTypeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "text":
+ oo := NewTextProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "version":
+ oo := NewVersionProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "wildcard":
+ oo := NewWildcardProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "date_nanos":
+ oo := NewDateNanosProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "date":
+ oo := NewDateProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "aggregate_metric_double":
+ oo := NewAggregateMetricDoubleProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "dense_vector":
+ oo := NewDenseVectorProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "sparse_vector":
+ oo := NewSparseVectorProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "flattened":
+ oo := NewFlattenedProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "nested":
+ oo := NewNestedProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "object":
+ oo := NewObjectProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "completion":
+ oo := NewCompletionProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "constant_keyword":
+ oo := NewConstantKeywordProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "alias":
+ oo := NewFieldAliasProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "histogram":
+ oo := NewHistogramProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "ip":
+ oo := NewIpProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "murmur3":
+ oo := NewMurmur3HashProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "token_count":
+ oo := NewTokenCountProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "geo_point":
+ oo := NewGeoPointProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "geo_shape":
+ oo := NewGeoShapeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "point":
+ oo := NewPointProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "shape":
+ oo := NewShapeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "byte":
+ oo := NewByteNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "double":
+ oo := NewDoubleNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "float":
+ oo := NewFloatNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "half_float":
+ oo := NewHalfFloatNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "integer":
+ oo := NewIntegerNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "long":
+ oo := NewLongNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "scaled_float":
+ oo := NewScaledFloatNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "short":
+ oo := NewShortNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "unsigned_long":
+ oo := NewUnsignedLongNumberProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "date_range":
+ oo := NewDateRangeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "double_range":
+ oo := NewDoubleRangeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "float_range":
+ oo := NewFloatRangeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "integer_range":
+ oo := NewIntegerRangeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "ip_range":
+ oo := NewIpRangeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "long_range":
+ oo := NewLongRangeProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ default:
+ oo := new(Property)
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
+ }
+ }
+
+ case "rules":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "Rules", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.Rules = &o
+
+ case "similarity":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "Similarity", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.Similarity = &o
+
+ case "store":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseBool(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Store", err)
+ }
+ s.Store = &value
+ case bool:
+ s.Store = &v
+ }
+
+ case "strength":
+ if err := dec.Decode(&s.Strength); err != nil {
+ return fmt.Errorf("%s | %w", "Strength", err)
+ }
+
+ case "type":
+ if err := dec.Decode(&s.Type); err != nil {
+ return fmt.Errorf("%s | %w", "Type", err)
+ }
+
+ case "variable_top":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "VariableTop", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.VariableTop = &o
+
+ case "variant":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "Variant", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.Variant = &o
+
+ }
+ }
+ return nil
+}
+
+// MarshalJSON override marshalling to include literal value
+func (s IcuCollationProperty) MarshalJSON() ([]byte, error) {
+ type innerIcuCollationProperty IcuCollationProperty
+ tmp := innerIcuCollationProperty{
+ Alternate: s.Alternate,
+ CaseFirst: s.CaseFirst,
+ CaseLevel: s.CaseLevel,
+ CopyTo: s.CopyTo,
+ Country: s.Country,
+ Decomposition: s.Decomposition,
+ DocValues: s.DocValues,
+ Dynamic: s.Dynamic,
+ Fields: s.Fields,
+ HiraganaQuaternaryMode: s.HiraganaQuaternaryMode,
+ IgnoreAbove: s.IgnoreAbove,
+ Index: s.Index,
+ IndexOptions: s.IndexOptions,
+ Language: s.Language,
+ Meta: s.Meta,
+ Norms: s.Norms,
+ NullValue: s.NullValue,
+ Numeric: s.Numeric,
+ Properties: s.Properties,
+ Rules: s.Rules,
+ Similarity: s.Similarity,
+ Store: s.Store,
+ Strength: s.Strength,
+ Type: s.Type,
+ VariableTop: s.VariableTop,
+ Variant: s.Variant,
+ }
+
+ tmp.Type = "icu_collation_keyword"
+
+ return json.Marshal(tmp)
+}
+
+// NewIcuCollationProperty returns a IcuCollationProperty.
+func NewIcuCollationProperty() *IcuCollationProperty {
+ r := &IcuCollationProperty{
+ Fields: make(map[string]Property, 0),
+ Meta: make(map[string]string, 0),
+ Properties: make(map[string]Property, 0),
+ }
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icucollationtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icucollationtokenfilter.go
index d30a8b31f3..85eed96bd7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icucollationtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icucollationtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -36,20 +36,20 @@ import (
// IcuCollationTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/icu-plugin.ts#L51-L65
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L51-L65
type IcuCollationTokenFilter struct {
Alternate *icucollationalternate.IcuCollationAlternate `json:"alternate,omitempty"`
- CaseFirst *icucollationcasefirst.IcuCollationCaseFirst `json:"caseFirst,omitempty"`
- CaseLevel *bool `json:"caseLevel,omitempty"`
+ CaseFirst *icucollationcasefirst.IcuCollationCaseFirst `json:"case_first,omitempty"`
+ CaseLevel *bool `json:"case_level,omitempty"`
Country *string `json:"country,omitempty"`
Decomposition *icucollationdecomposition.IcuCollationDecomposition `json:"decomposition,omitempty"`
- HiraganaQuaternaryMode *bool `json:"hiraganaQuaternaryMode,omitempty"`
+ HiraganaQuaternaryMode *bool `json:"hiragana_quaternary_mode,omitempty"`
Language *string `json:"language,omitempty"`
Numeric *bool `json:"numeric,omitempty"`
Rules *string `json:"rules,omitempty"`
Strength *icucollationstrength.IcuCollationStrength `json:"strength,omitempty"`
Type string `json:"type,omitempty"`
- VariableTop *string `json:"variableTop,omitempty"`
+ VariableTop *string `json:"variable_top,omitempty"`
Variant *string `json:"variant,omitempty"`
Version *string `json:"version,omitempty"`
}
@@ -74,13 +74,13 @@ func (s *IcuCollationTokenFilter) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Alternate", err)
}
- case "caseFirst":
+ case "case_first":
if err := dec.Decode(&s.CaseFirst); err != nil {
return fmt.Errorf("%s | %w", "CaseFirst", err)
}
- case "caseLevel":
- var tmp interface{}
+ case "case_level":
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -110,8 +110,8 @@ func (s *IcuCollationTokenFilter) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Decomposition", err)
}
- case "hiraganaQuaternaryMode":
- var tmp interface{}
+ case "hiragana_quaternary_mode":
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -137,7 +137,7 @@ func (s *IcuCollationTokenFilter) UnmarshalJSON(data []byte) error {
s.Language = &o
case "numeric":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -172,7 +172,7 @@ func (s *IcuCollationTokenFilter) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Type", err)
}
- case "variableTop":
+ case "variable_top":
var tmp json.RawMessage
if err := dec.Decode(&tmp); err != nil {
return fmt.Errorf("%s | %w", "VariableTop", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icufoldingtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icufoldingtokenfilter.go
index cd69bde816..470c3ae18f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icufoldingtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icufoldingtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IcuFoldingTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/icu-plugin.ts#L46-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L46-L49
type IcuFoldingTokenFilter struct {
Type string `json:"type,omitempty"`
UnicodeSetFilter string `json:"unicode_set_filter"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icunormalizationcharfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icunormalizationcharfilter.go
index d0bf18139e..fcce75cd28 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icunormalizationcharfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icunormalizationcharfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IcuNormalizationCharFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/icu-plugin.ts#L40-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L40-L44
type IcuNormalizationCharFilter struct {
Mode *icunormalizationmode.IcuNormalizationMode `json:"mode,omitempty"`
Name *icunormalizationtype.IcuNormalizationType `json:"name,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icunormalizationtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icunormalizationtokenfilter.go
index f1db054449..cb20aaf29f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icunormalizationtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icunormalizationtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// IcuNormalizationTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/icu-plugin.ts#L35-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L35-L38
type IcuNormalizationTokenFilter struct {
Name icunormalizationtype.IcuNormalizationType `json:"name"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icutokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icutokenizer.go
index 2edec4804c..a80dd65996 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icutokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icutokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IcuTokenizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/icu-plugin.ts#L30-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L30-L33
type IcuTokenizer struct {
RuleFiles string `json:"rule_files"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icutransformtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icutransformtokenfilter.go
index f94412665a..8704d6ed88 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icutransformtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/icutransformtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IcuTransformTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/icu-plugin.ts#L24-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/icu-plugin.ts#L24-L28
type IcuTransformTokenFilter struct {
Dir *icutransformdirection.IcuTransformDirection `json:"dir,omitempty"`
Id string `json:"id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ids.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ids.go
index 00f935d246..465c24650a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ids.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ids.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Ids type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L62-L62
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L62-L62
type Ids []string
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/idsquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/idsquery.go
index 61113d06ee..808f0df5bf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/idsquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/idsquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IdsQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L80-L85
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L80-L85
type IdsQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -60,7 +60,7 @@ func (s *IdsQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilm.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilm.go
index 7f5b0ad922..6b0be110c8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilm.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilm.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Ilm type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L162-L165
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L162-L165
type Ilm struct {
PolicyCount int `json:"policy_count"`
PolicyStats []IlmPolicyStatistics `json:"policy_stats"`
@@ -54,7 +54,7 @@ func (s *Ilm) UnmarshalJSON(data []byte) error {
case "policy_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmindicator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmindicator.go
index b298dab35d..6b1bf0c9df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmindicator.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmindicator.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IlmIndicator type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L145-L149
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L145-L149
type IlmIndicator struct {
Details *IlmIndicatorDetails `json:"details,omitempty"`
Diagnosis []Diagnosis `json:"diagnosis,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmindicatordetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmindicatordetails.go
index d1a1665e9a..b35e2cfae7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmindicatordetails.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmindicatordetails.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IlmIndicatorDetails type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L150-L153
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L150-L153
type IlmIndicatorDetails struct {
IlmStatus lifecycleoperationmode.LifecycleOperationMode `json:"ilm_status"`
Policies int64 `json:"policies"`
@@ -60,7 +60,7 @@ func (s *IlmIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "policies":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmpolicy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmpolicy.go
index e3d3aba5ca..aa23650629 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmpolicy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmpolicy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// IlmPolicy type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/_types/Policy.ts#L23-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/_types/Policy.ts#L23-L26
type IlmPolicy struct {
Meta_ Metadata `json:"_meta,omitempty"`
Phases Phases `json:"phases"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmpolicystatistics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmpolicystatistics.go
index d216d9450d..754dff3db4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmpolicystatistics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ilmpolicystatistics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IlmPolicyStatistics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L157-L160
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L157-L160
type IlmPolicyStatistics struct {
IndicesManaged int `json:"indices_managed"`
Phases Phases `json:"phases"`
@@ -54,7 +54,7 @@ func (s *IlmPolicyStatistics) UnmarshalJSON(data []byte) error {
case "indices_managed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/impact.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/impact.go
index 18c95e38a9..805c83cf83 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/impact.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/impact.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// Impact type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L65-L70
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L65-L70
type Impact struct {
Description string `json:"description"`
Id string `json:"id"`
@@ -87,7 +87,7 @@ func (s *Impact) UnmarshalJSON(data []byte) error {
case "severity":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexaction.go
index b1731de9b5..bbbd42c1a8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IndexAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L256-L265
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L256-L265
type IndexAction struct {
DocId *string `json:"doc_id,omitempty"`
ExecutionTimeField *string `json:"execution_time_field,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexaliases.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexaliases.go
index ce9c26fc66..f974ed202a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexaliases.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexaliases.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndexAliases type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get_alias/IndicesGetAliasResponse.ts#L36-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_alias/IndicesGetAliasResponse.ts#L37-L39
type IndexAliases struct {
Aliases map[string]AliasDefinition `json:"aliases"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexanddatastreamaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexanddatastreamaction.go
index 0e334fa567..df60c3739f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexanddatastreamaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexanddatastreamaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// IndexAndDataStreamAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/modify_data_stream/types.ts#L39-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/modify_data_stream/types.ts#L39-L44
type IndexAndDataStreamAction struct {
// DataStream Data stream targeted by the action.
DataStream string `json:"data_stream"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexcapabilities.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexcapabilities.go
index ee73085f64..321465821f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexcapabilities.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexcapabilities.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndexCapabilities type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/get_rollup_index_caps/types.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_index_caps/types.ts#L24-L26
type IndexCapabilities struct {
RollupJobs []RollupJobSummary `json:"rollup_jobs"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexdetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexdetails.go
index 4e6b7f8bd6..06827eab94 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexdetails.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexdetails.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndexDetails type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotIndexDetails.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotIndexDetails.ts#L23-L28
type IndexDetails struct {
MaxSegmentsPerShard int64 `json:"max_segments_per_shard"`
ShardCount int `json:"shard_count"`
@@ -55,7 +55,7 @@ func (s *IndexDetails) UnmarshalJSON(data []byte) error {
switch t {
case "max_segments_per_shard":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *IndexDetails) UnmarshalJSON(data []byte) error {
case "shard_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *IndexDetails) UnmarshalJSON(data []byte) error {
}
case "size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexfield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexfield.go
index 23e6d4db6b..3cb23521b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexfield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexfield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndexField type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/meta-fields.ts#L46-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L46-L48
type IndexField struct {
Enabled bool `json:"enabled"`
}
@@ -52,7 +52,7 @@ func (s *IndexField) UnmarshalJSON(data []byte) error {
switch t {
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexhealthstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexhealthstats.go
index ad1f8e2a36..11ada57c37 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexhealthstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexhealthstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IndexHealthStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/health/types.ts#L24-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/health/types.ts#L24-L34
type IndexHealthStats struct {
ActivePrimaryShards int `json:"active_primary_shards"`
ActiveShards int `json:"active_shards"`
@@ -63,7 +63,7 @@ func (s *IndexHealthStats) UnmarshalJSON(data []byte) error {
case "active_primary_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -79,7 +79,7 @@ func (s *IndexHealthStats) UnmarshalJSON(data []byte) error {
case "active_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *IndexHealthStats) UnmarshalJSON(data []byte) error {
case "initializing_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -111,7 +111,7 @@ func (s *IndexHealthStats) UnmarshalJSON(data []byte) error {
case "number_of_replicas":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -127,7 +127,7 @@ func (s *IndexHealthStats) UnmarshalJSON(data []byte) error {
case "number_of_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -143,7 +143,7 @@ func (s *IndexHealthStats) UnmarshalJSON(data []byte) error {
case "relocating_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -172,7 +172,7 @@ func (s *IndexHealthStats) UnmarshalJSON(data []byte) error {
case "unassigned_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingpressurememorysummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingpressurememorysummary.go
index e5e737014c..4d22a17625 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingpressurememorysummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingpressurememorysummary.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndexingPressureMemorySummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L580-L589
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L580-L589
type IndexingPressureMemorySummary struct {
AllInBytes int64 `json:"all_in_bytes"`
CombinedCoordinatingAndPrimaryInBytes int64 `json:"combined_coordinating_and_primary_in_bytes"`
@@ -59,7 +59,7 @@ func (s *IndexingPressureMemorySummary) UnmarshalJSON(data []byte) error {
switch t {
case "all_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -74,7 +74,7 @@ func (s *IndexingPressureMemorySummary) UnmarshalJSON(data []byte) error {
}
case "combined_coordinating_and_primary_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -89,7 +89,7 @@ func (s *IndexingPressureMemorySummary) UnmarshalJSON(data []byte) error {
}
case "coordinating_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +104,7 @@ func (s *IndexingPressureMemorySummary) UnmarshalJSON(data []byte) error {
}
case "coordinating_rejections":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -119,7 +119,7 @@ func (s *IndexingPressureMemorySummary) UnmarshalJSON(data []byte) error {
}
case "primary_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -134,7 +134,7 @@ func (s *IndexingPressureMemorySummary) UnmarshalJSON(data []byte) error {
}
case "primary_rejections":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -149,7 +149,7 @@ func (s *IndexingPressureMemorySummary) UnmarshalJSON(data []byte) error {
}
case "replica_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -164,7 +164,7 @@ func (s *IndexingPressureMemorySummary) UnmarshalJSON(data []byte) error {
}
case "replica_rejections":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingslowlogsettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingslowlogsettings.go
index ca1521b648..5f1329971a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingslowlogsettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingslowlogsettings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndexingSlowlogSettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L554-L559
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L552-L557
type IndexingSlowlogSettings struct {
Level *string `json:"level,omitempty"`
Reformat *bool `json:"reformat,omitempty"`
@@ -67,7 +67,7 @@ func (s *IndexingSlowlogSettings) UnmarshalJSON(data []byte) error {
s.Level = &o
case "reformat":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -82,7 +82,7 @@ func (s *IndexingSlowlogSettings) UnmarshalJSON(data []byte) error {
case "source":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingslowlogtresholds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingslowlogtresholds.go
index d7ed562ce2..4745b3a049 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingslowlogtresholds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingslowlogtresholds.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndexingSlowlogTresholds type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L561-L568
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L559-L566
type IndexingSlowlogTresholds struct {
// Index The indexing slow log, similar in functionality to the search slow log. The
// log file name ends with `_index_indexing_slowlog.json`.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingstats.go
index ec9c61269b..ad532d608e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexingstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndexingStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L143-L159
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L143-L159
type IndexingStats struct {
DeleteCurrent int64 `json:"delete_current"`
DeleteTime Duration `json:"delete_time,omitempty"`
@@ -66,7 +66,7 @@ func (s *IndexingStats) UnmarshalJSON(data []byte) error {
switch t {
case "delete_current":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *IndexingStats) UnmarshalJSON(data []byte) error {
}
case "delete_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -106,7 +106,7 @@ func (s *IndexingStats) UnmarshalJSON(data []byte) error {
}
case "index_current":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -121,7 +121,7 @@ func (s *IndexingStats) UnmarshalJSON(data []byte) error {
}
case "index_failed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -146,7 +146,7 @@ func (s *IndexingStats) UnmarshalJSON(data []byte) error {
}
case "index_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -161,7 +161,7 @@ func (s *IndexingStats) UnmarshalJSON(data []byte) error {
}
case "is_throttled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -175,7 +175,7 @@ func (s *IndexingStats) UnmarshalJSON(data []byte) error {
}
case "noop_update_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -208,7 +208,7 @@ func (s *IndexingStats) UnmarshalJSON(data []byte) error {
}
case "write_load":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexmappingrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexmappingrecord.go
index 5b0fb67216..799c3aca4e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexmappingrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexmappingrecord.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndexMappingRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L28-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L29-L32
type IndexMappingRecord struct {
Item *TypeMapping `json:"item,omitempty"`
Mappings TypeMapping `json:"mappings"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexoperation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexoperation.go
index b5cdc953f5..6079766d89 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexoperation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexoperation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IndexOperation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/bulk/types.ts#L132-L132
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L132-L132
type IndexOperation struct {
// DynamicTemplates A map from the full name of fields to the name of dynamic templates.
// Defaults to an empty map.
@@ -91,7 +91,7 @@ func (s *IndexOperation) UnmarshalJSON(data []byte) error {
}
case "if_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -128,7 +128,7 @@ func (s *IndexOperation) UnmarshalJSON(data []byte) error {
s.Pipeline = &o
case "require_alias":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexprivilegescheck.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexprivilegescheck.go
index 73e9033864..9b09d002be 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexprivilegescheck.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexprivilegescheck.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IndexPrivilegesCheck type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/has_privileges/types.ts#L33-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges/types.ts#L33-L44
type IndexPrivilegesCheck struct {
// AllowRestrictedIndices This needs to be set to true (default is false) if using wildcards or regexps
// for patterns that cover restricted indices.
@@ -66,7 +66,7 @@ func (s *IndexPrivilegesCheck) UnmarshalJSON(data []byte) error {
switch t {
case "allow_restricted_indices":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexresult.go
index 38dc977ce6..a451d4b73d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexresult.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndexResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L267-L269
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L267-L269
type IndexResult struct {
Response IndexResultSummary `json:"response"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexresultsummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexresultsummary.go
index 0ea884ca60..60c0f6ca0d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexresultsummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexresultsummary.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IndexResultSummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L271-L277
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L271-L277
type IndexResultSummary struct {
Created bool `json:"created"`
Id string `json:"id"`
@@ -58,7 +58,7 @@ func (s *IndexResultSummary) UnmarshalJSON(data []byte) error {
switch t {
case "created":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexrouting.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexrouting.go
index 3f904421dc..45d0bcd3fa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexrouting.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexrouting.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndexRouting type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexRouting.ts#L22-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L22-L25
type IndexRouting struct {
Allocation *IndexRoutingAllocation `json:"allocation,omitempty"`
Rebalance *IndexRoutingRebalance `json:"rebalance,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocation.go
index 882cb04f4a..59fc7c1917 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// IndexRoutingAllocation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexRouting.ts#L27-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L27-L32
type IndexRoutingAllocation struct {
Disk *IndexRoutingAllocationDisk `json:"disk,omitempty"`
Enable *indexroutingallocationoptions.IndexRoutingAllocationOptions `json:"enable,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocationdisk.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocationdisk.go
index f76ff8bed9..d6f60e9f33 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocationdisk.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocationdisk.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndexRoutingAllocationDisk type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexRouting.ts#L62-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L62-L64
type IndexRoutingAllocationDisk struct {
ThresholdEnabled string `json:"threshold_enabled,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocationinclude.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocationinclude.go
index 05570e9396..0acda245c9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocationinclude.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocationinclude.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndexRoutingAllocationInclude type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexRouting.ts#L52-L55
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L52-L55
type IndexRoutingAllocationInclude struct {
Id_ *string `json:"_id,omitempty"`
TierPreference_ *string `json:"_tier_preference,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocationinitialrecovery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocationinitialrecovery.go
index e9da31f947..42cdc09115 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocationinitialrecovery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingallocationinitialrecovery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// IndexRoutingAllocationInitialRecovery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexRouting.ts#L57-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L57-L59
type IndexRoutingAllocationInitialRecovery struct {
Id_ *string `json:"_id,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingrebalance.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingrebalance.go
index f8f60c6e73..aebd3bbd57 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingrebalance.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexroutingrebalance.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// IndexRoutingRebalance type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexRouting.ts#L34-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexRouting.ts#L34-L36
type IndexRoutingRebalance struct {
Enable indexroutingrebalanceoptions.IndexRoutingRebalanceOptions `json:"enable"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsegment.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsegment.go
index 7698a7971c..b8373eb228 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsegment.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsegment.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndexSegment type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/segments/types.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/segments/types.ts#L24-L26
type IndexSegment struct {
Shards map[string][]ShardsSegment `json:"shards"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsegmentsort.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsegmentsort.go
index d60a867add..b190324fe2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsegmentsort.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsegmentsort.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// IndexSegmentSort type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSegmentSort.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSegmentSort.ts#L22-L27
type IndexSegmentSort struct {
Field []string `json:"field,omitempty"`
Missing []segmentsortmissing.SegmentSortMissing `json:"missing,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingblocks.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingblocks.go
index 1e2a6df639..2dc6883dcc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingblocks.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingblocks.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// IndexSettingBlocks type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L252-L258
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L252-L258
type IndexSettingBlocks struct {
Metadata Stringifiedboolean `json:"metadata,omitempty"`
Read Stringifiedboolean `json:"read,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettings.go
index 0c1125b4af..12fbcbbc6f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IndexSettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L69-L167
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L69-L167
type IndexSettings struct {
Analysis *IndexSettingsAnalysis `json:"analysis,omitempty"`
// Analyze Settings to define analyzers, tokenizers, token filters and character
@@ -236,7 +236,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
}
case "load_fixed_bitset_filters_eagerly":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -256,7 +256,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
case "max_docvalue_fields_search":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -272,7 +272,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
case "max_inner_result_window":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -288,7 +288,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
case "max_ngram_diff":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -304,7 +304,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
case "max_refresh_listeners":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -320,7 +320,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
case "max_regex_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -336,7 +336,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
case "max_rescore_window":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -352,7 +352,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
case "max_result_window":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -368,7 +368,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
case "max_script_fields":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -384,7 +384,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
case "max_shingle_diff":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -400,7 +400,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
case "max_slices_per_scroll":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -416,7 +416,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
case "max_terms_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -461,7 +461,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
case "number_of_routing_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -562,7 +562,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -648,7 +648,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
case "top_metrics_max_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -711,7 +711,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error {
func (s IndexSettings) MarshalJSON() ([]byte, error) {
type opt IndexSettings
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingsanalysis.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingsanalysis.go
index ccd7bfd785..09555fce31 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingsanalysis.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingsanalysis.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -29,7 +29,7 @@ import (
// IndexSettingsAnalysis type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L317-L323
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L317-L323
type IndexSettingsAnalysis struct {
Analyzer map[string]Analyzer `json:"analyzer,omitempty"`
CharFilter map[string]CharFilter `json:"char_filter,omitempty"`
@@ -60,7 +60,7 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -169,7 +169,7 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -222,7 +222,7 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -475,12 +475,6 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error {
return err
}
s.Filter[key] = oo
- case "icu_tokenizer":
- oo := NewIcuTokenizer()
- if err := localDec.Decode(&oo); err != nil {
- return err
- }
- s.Filter[key] = oo
case "icu_collation":
oo := NewIcuCollationTokenFilter()
if err := localDec.Decode(&oo); err != nil {
@@ -533,12 +527,14 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
buf.Seek(0, io.SeekStart)
-
+ if _, ok := kind["type"]; !ok {
+ kind["type"] = "custom"
+ }
switch kind["type"] {
case "lowercase":
oo := NewLowercaseNormalizer()
@@ -568,7 +564,7 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingslifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingslifecycle.go
index bd4931002d..7fdef22084 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingslifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingslifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndexSettingsLifecycle type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L274-L307
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L274-L307
type IndexSettingsLifecycle struct {
// IndexingComplete Indicates whether or not the index has been rolled over. Automatically set to
// true when ILM completes the rollover action.
@@ -90,7 +90,7 @@ func (s *IndexSettingsLifecycle) UnmarshalJSON(data []byte) error {
}
case "origination_date":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -105,7 +105,7 @@ func (s *IndexSettingsLifecycle) UnmarshalJSON(data []byte) error {
}
case "parse_origination_date":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingslifecyclestep.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingslifecyclestep.go
index 9c1096e592..86e581ad68 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingslifecyclestep.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingslifecyclestep.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// IndexSettingsLifecycleStep type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L309-L315
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L309-L315
type IndexSettingsLifecycleStep struct {
// WaitTimeThreshold Time to wait for the cluster to resolve allocation issues during an ILM
// shrink action. Must be greater than 1h (1 hour).
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingstimeseries.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingstimeseries.go
index f5205e619c..8400c6a22c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingstimeseries.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexsettingstimeseries.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// IndexSettingsTimeSeries type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L325-L328
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L325-L328
type IndexSettingsTimeSeries struct {
EndTime DateTime `json:"end_time,omitempty"`
StartTime DateTime `json:"start_time,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexstate.go
index 2ab882d562..ea365f41d9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexstate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexstate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// IndexState type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexState.ts#L27-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexState.ts#L27-L40
type IndexState struct {
Aliases map[string]Alias `json:"aliases,omitempty"`
DataStream *string `json:"data_stream,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexstats.go
index f763e8a66f..e685202f0d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexstats.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndexStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L52-L93
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L52-L93
type IndexStats struct {
Bulk *BulkStats `json:"bulk,omitempty"`
// Completion Contains statistics about completions across all shards assigned to the node.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplate.go
index 38fb5d151f..375c04b76f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndexTemplate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexTemplate.ts#L31-L70
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexTemplate.ts#L31-L70
type IndexTemplate struct {
AllowAutoCreate *bool `json:"allow_auto_create,omitempty"`
// ComposedOf An ordered list of component template names.
@@ -80,7 +80,7 @@ func (s *IndexTemplate) UnmarshalJSON(data []byte) error {
switch t {
case "allow_auto_create":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *IndexTemplate) UnmarshalJSON(data []byte) error {
}
case "priority":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplatedatastreamconfiguration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplatedatastreamconfiguration.go
index bbc851b6f3..8a05e9bd11 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplatedatastreamconfiguration.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplatedatastreamconfiguration.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndexTemplateDataStreamConfiguration type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexTemplate.ts#L72-L83
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexTemplate.ts#L72-L83
type IndexTemplateDataStreamConfiguration struct {
// AllowCustomRouting If true, the data stream supports custom routing.
AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"`
@@ -55,7 +55,7 @@ func (s *IndexTemplateDataStreamConfiguration) UnmarshalJSON(data []byte) error
switch t {
case "allow_custom_routing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -69,7 +69,7 @@ func (s *IndexTemplateDataStreamConfiguration) UnmarshalJSON(data []byte) error
}
case "hidden":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplateitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplateitem.go
index e3ce023839..567d5f2887 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplateitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplateitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// IndexTemplateItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32
type IndexTemplateItem struct {
IndexTemplate IndexTemplate `json:"index_template"`
Name string `json:"name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplatemapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplatemapping.go
index 6f60112215..240abafad8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplatemapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplatemapping.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndexTemplateMapping type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L97-L119
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L121-L143
type IndexTemplateMapping struct {
// Aliases Aliases to add.
// If the index template includes a `data_stream` object, these are data stream
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplatesummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplatesummary.go
index 691de7ead1..2ce042c697 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplatesummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indextemplatesummary.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndexTemplateSummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexTemplate.ts#L85-L107
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexTemplate.ts#L85-L107
type IndexTemplateSummary struct {
// Aliases Aliases to add.
// If the index template includes a `data_stream` object, these are data stream
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexversioning.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexversioning.go
index a4ff842561..1af6396aa6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexversioning.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indexversioning.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndexVersioning type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L269-L272
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L269-L272
type IndexVersioning struct {
Created *string `json:"created,omitempty"`
CreatedString *string `json:"created_string,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicatornode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicatornode.go
index 606e5556b4..c636b91a1f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicatornode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicatornode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndicatorNode type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L90-L93
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L90-L93
type IndicatorNode struct {
Name string `json:"name,omitempty"`
NodeId string `json:"node_id,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicators.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicators.go
index ee034c729a..010b554027 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicators.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicators.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Indicators type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L32-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L32-L40
type Indicators struct {
Disk *DiskIndicator `json:"disk,omitempty"`
Ilm *IlmIndicator `json:"ilm,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indices.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indices.go
index bd2fde20e9..7dc80439e7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indices.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indices.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Indices type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L67-L67
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L67-L67
type Indices []string
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesaction.go
index 0d02cff810..7e91848bb1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesaction.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndicesAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/update_aliases/types.ts#L23-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/update_aliases/types.ts#L23-L39
type IndicesAction struct {
// Add Adds a data stream or index to an alias.
// If the alias doesn’t exist, the `add` action creates it.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesblockstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesblockstatus.go
index ce0b4369a1..59a8843088 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesblockstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesblockstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndicesBlockStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/add_block/IndicesAddBlockResponse.ts#L30-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/add_block/IndicesAddBlockResponse.ts#L30-L33
type IndicesBlockStatus struct {
Blocked bool `json:"blocked"`
Name string `json:"name"`
@@ -53,7 +53,7 @@ func (s *IndicesBlockStatus) UnmarshalJSON(data []byte) error {
switch t {
case "blocked":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesindexingpressure.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesindexingpressure.go
index 61ec8f121e..5c3bd3824b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesindexingpressure.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesindexingpressure.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndicesIndexingPressure type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L541-L543
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L539-L541
type IndicesIndexingPressure struct {
Memory IndicesIndexingPressureMemory `json:"memory"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesindexingpressurememory.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesindexingpressurememory.go
index e951f30a3d..2a210cf16e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesindexingpressurememory.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesindexingpressurememory.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndicesIndexingPressureMemory type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L545-L552
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L543-L550
type IndicesIndexingPressureMemory struct {
// Limit Number of outstanding bytes that may be consumed by indexing requests. When
// this limit is reached or exceeded,
@@ -58,7 +58,7 @@ func (s *IndicesIndexingPressureMemory) UnmarshalJSON(data []byte) error {
case "limit":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesmodifyaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesmodifyaction.go
index 36eaaf7fbf..d27ee1412f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesmodifyaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesmodifyaction.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndicesModifyAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/modify_data_stream/types.ts#L22-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/modify_data_stream/types.ts#L22-L37
type IndicesModifyAction struct {
// AddBackingIndex Adds an existing index as a backing index for a data stream.
// The index is hidden as part of this operation.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesoptions.go
index 929a790ce7..4eb192b485 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IndicesOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L332-L359
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L332-L359
type IndicesOptions struct {
// AllowNoIndices If false, the request returns an error if any wildcard expression, index
// alias, or `_all` value targets only
@@ -70,7 +70,7 @@ func (s *IndicesOptions) UnmarshalJSON(data []byte) error {
switch t {
case "allow_no_indices":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *IndicesOptions) UnmarshalJSON(data []byte) error {
}
case "ignore_throttled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *IndicesOptions) UnmarshalJSON(data []byte) error {
}
case "ignore_unavailable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesprivileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesprivileges.go
index f0a227e2bd..1dca731d68 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesprivileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesprivileges.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IndicesPrivileges type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/Privileges.ts#L82-L105
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L104-L127
type IndicesPrivileges struct {
// AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that
// cover restricted indices. Implicitly, restricted indices have limited
@@ -72,7 +72,7 @@ func (s *IndicesPrivileges) UnmarshalJSON(data []byte) error {
switch t {
case "allow_restricted_indices":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesprivilegesquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesprivilegesquery.go
index 532c944472..cc0eac8084 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesprivilegesquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesprivilegesquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,5 +26,5 @@ package types
// Query
// RoleTemplateQuery
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/Privileges.ts#L131-L139
-type IndicesPrivilegesQuery interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L153-L161
+type IndicesPrivilegesQuery any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesrecord.go
index fef483525b..ffa5cce7f4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndicesRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/indices/types.ts#L20-L801
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/indices/types.ts#L20-L801
type IndicesRecord struct {
// BulkAvgSizeInBytes average size in bytes of shard bulk
BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesshardsstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesshardsstats.go
index 27c7d7d667..9474e49c92 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesshardsstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesshardsstats.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndicesShardsStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L49-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L49-L52
type IndicesShardsStats struct {
AllFields FieldSummary `json:"all_fields"`
Fields map[string]FieldSummary `json:"fields"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesshardstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesshardstats.go
index 7a1df480a2..087fef505d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesshardstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesshardstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// IndicesShardStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L192-L223
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L192-L223
type IndicesShardStats struct {
Bulk *BulkStats `json:"bulk,omitempty"`
Commit *ShardCommit `json:"commit,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesshardstores.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesshardstores.go
index 5b2f3c3e3b..9eae3d1393 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesshardstores.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesshardstores.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IndicesShardStores type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/shard_stores/types.ts#L26-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/types.ts#L26-L28
type IndicesShardStores struct {
Shards map[string]ShardStoreWrapper `json:"shards"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesstats.go
index fa27036eea..ffd5f5142f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IndicesStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L95-L110
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L95-L110
type IndicesStats struct {
Health *healthstatus.HealthStatus `json:"health,omitempty"`
Primaries *IndexStats `json:"primaries,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesvalidationexplanation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesvalidationexplanation.go
index 6e971c898f..9b82f931e7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesvalidationexplanation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesvalidationexplanation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndicesValidationExplanation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37
type IndicesValidationExplanation struct {
Error *string `json:"error,omitempty"`
Explanation *string `json:"explanation,omitempty"`
@@ -84,7 +84,7 @@ func (s *IndicesValidationExplanation) UnmarshalJSON(data []byte) error {
}
case "valid":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesversions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesversions.go
index 02ab9f9d61..9aecb8270d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesversions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/indicesversions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IndicesVersions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L263-L268
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L263-L268
type IndicesVersions struct {
IndexCount int `json:"index_count"`
PrimaryShardCount int `json:"primary_shard_count"`
@@ -56,7 +56,7 @@ func (s *IndicesVersions) UnmarshalJSON(data []byte) error {
case "index_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *IndicesVersions) UnmarshalJSON(data []byte) error {
case "primary_shard_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *IndicesVersions) UnmarshalJSON(data []byte) error {
}
case "total_primary_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceaggregate.go
index 25d632af81..d48e8d7c33 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// InferenceAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L659-L670
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L659-L670
type InferenceAggregate struct {
Data map[string]json.RawMessage `json:"-"`
FeatureImportance []InferenceFeatureImportance `json:"feature_importance,omitempty"`
@@ -110,7 +110,7 @@ func (s *InferenceAggregate) UnmarshalJSON(data []byte) error {
func (s InferenceAggregate) MarshalJSON() ([]byte, error) {
type opt InferenceAggregate
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceaggregation.go
index 4d48f3a69f..776580009a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// InferenceAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L205-L214
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L205-L214
type InferenceAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -45,10 +45,8 @@ type InferenceAggregation struct {
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
// InferenceConfig Contains the inference type and its options.
InferenceConfig *InferenceConfigContainer `json:"inference_config,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
// ModelId The ID or alias for the trained model.
- ModelId string `json:"model_id"`
- Name *string `json:"name,omitempty"`
+ ModelId string `json:"model_id"`
}
func (s *InferenceAggregation) UnmarshalJSON(data []byte) error {
@@ -93,28 +91,11 @@ func (s *InferenceAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "InferenceConfig", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "model_id":
if err := dec.Decode(&s.ModelId); err != nil {
return fmt.Errorf("%s | %w", "ModelId", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceclassimportance.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceclassimportance.go
index 553394f137..e0952fb3d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceclassimportance.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceclassimportance.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// InferenceClassImportance type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L684-L687
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L684-L687
type InferenceClassImportance struct {
ClassName string `json:"class_name"`
Importance Float64 `json:"importance"`
@@ -65,7 +65,7 @@ func (s *InferenceClassImportance) UnmarshalJSON(data []byte) error {
s.ClassName = o
case "importance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfig.go
index 18f81a2888..a6053db544 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfig.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// InferenceConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L746-L758
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L746-L758
type InferenceConfig struct {
// Classification Classification configuration for inference.
Classification *InferenceConfigClassification `json:"classification,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigclassification.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigclassification.go
index a53fedeb45..acbfbb3fd1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigclassification.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigclassification.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// InferenceConfigClassification type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L773-L799
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L773-L799
type InferenceConfigClassification struct {
// NumTopClasses Specifies the number of top class predictions to return.
NumTopClasses *int `json:"num_top_classes,omitempty"`
@@ -64,7 +64,7 @@ func (s *InferenceConfigClassification) UnmarshalJSON(data []byte) error {
case "num_top_classes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -80,7 +80,7 @@ func (s *InferenceConfigClassification) UnmarshalJSON(data []byte) error {
case "num_top_feature_importance_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigcontainer.go
index 8eaea906d7..37d3e9d303 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigcontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigcontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// InferenceConfigContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L216-L222
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L216-L222
type InferenceConfigContainer struct {
// Classification Classification configuration for inference.
Classification *ClassificationInferenceOptions `json:"classification,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigcreatecontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigcreatecontainer.go
index 5ed96b28a4..2001084bc6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigcreatecontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigcreatecontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// InferenceConfigCreateContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L23-L80
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L23-L80
type InferenceConfigCreateContainer struct {
// Classification Classification configuration for inference.
Classification *ClassificationInferenceOptions `json:"classification,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigregression.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigregression.go
index 50ceabd49d..7317e8cf60 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigregression.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigregression.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// InferenceConfigRegression type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L760-L771
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L760-L771
type InferenceConfigRegression struct {
// NumTopFeatureImportanceValues Specifies the maximum number of feature importance values per document.
NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"`
@@ -57,7 +57,7 @@ func (s *InferenceConfigRegression) UnmarshalJSON(data []byte) error {
case "num_top_feature_importance_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigupdatecontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigupdatecontainer.go
index 79e30f2458..6e5ff1f204 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigupdatecontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceconfigupdatecontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// InferenceConfigUpdateContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L296-L318
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L296-L318
type InferenceConfigUpdateContainer struct {
// Classification Classification configuration for inference.
Classification *ClassificationInferenceOptions `json:"classification,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferencefeatureimportance.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferencefeatureimportance.go
index 97ded006c8..a75965538f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferencefeatureimportance.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferencefeatureimportance.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// InferenceFeatureImportance type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L678-L682
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L678-L682
type InferenceFeatureImportance struct {
Classes []InferenceClassImportance `json:"classes,omitempty"`
FeatureName string `json:"feature_name"`
@@ -71,7 +71,7 @@ func (s *InferenceFeatureImportance) UnmarshalJSON(data []byte) error {
s.FeatureName = o
case "importance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceprocessor.go
index 7cd526c45a..1765aa11a2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// InferenceProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L725-L744
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L725-L744
type InferenceProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -105,7 +105,7 @@ func (s *InferenceProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceresponseresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceresponseresult.go
index 511454aa55..4091ee11ed 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceresponseresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceresponseresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// InferenceResponseResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L459-L506
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L459-L506
type InferenceResponseResult struct {
// Entities If the model is trained for named entity recognition (NER) tasks, the
// response contains the recognized entities.
@@ -99,7 +99,7 @@ func (s *InferenceResponseResult) UnmarshalJSON(data []byte) error {
}
case "is_truncated":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -130,7 +130,7 @@ func (s *InferenceResponseResult) UnmarshalJSON(data []byte) error {
s.PredictedValueSequence = &o
case "prediction_probability":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -146,7 +146,7 @@ func (s *InferenceResponseResult) UnmarshalJSON(data []byte) error {
}
case "prediction_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceresult.go
index ac48cad97f..32b8cba485 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferenceresult.go
@@ -16,14 +16,16 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// InferenceResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/inference/_types/Results.ts#L59-L67
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Results.ts#L77-L87
type InferenceResult struct {
+ Completion []CompletionResult `json:"completion,omitempty"`
+ Rerank []RankedDocument `json:"rerank,omitempty"`
SparseEmbedding []SparseEmbeddingResult `json:"sparse_embedding,omitempty"`
TextEmbedding []TextEmbeddingResult `json:"text_embedding,omitempty"`
TextEmbeddingBytes []TextEmbeddingByteResult `json:"text_embedding_bytes,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferencetopclassentry.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferencetopclassentry.go
index 5daf18c7bb..62b0e288ed 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferencetopclassentry.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inferencetopclassentry.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// InferenceTopClassEntry type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L672-L676
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L672-L676
type InferenceTopClassEntry struct {
ClassName FieldValue `json:"class_name"`
ClassProbability Float64 `json:"class_probability"`
@@ -59,7 +59,7 @@ func (s *InferenceTopClassEntry) UnmarshalJSON(data []byte) error {
}
case "class_probability":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -75,7 +75,7 @@ func (s *InferenceTopClassEntry) UnmarshalJSON(data []byte) error {
}
case "class_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/influence.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/influence.go
index 67910a06a7..616e6fd04b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/influence.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/influence.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Influence type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Anomaly.ts#L140-L143
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Anomaly.ts#L140-L143
type Influence struct {
InfluencerFieldName string `json:"influencer_field_name"`
InfluencerFieldValues []string `json:"influencer_field_values"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/influencer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/influencer.go
index 4db9fcc24f..e90c947e51 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/influencer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/influencer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Influencer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Influencer.ts#L31-L83
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Influencer.ts#L31-L83
type Influencer struct {
// BucketSpan The length of the bucket in seconds. This value matches the bucket span that
// is specified in the job.
@@ -124,7 +124,7 @@ func (s *Influencer) UnmarshalJSON(data []byte) error {
s.InfluencerFieldValue = o
case "influencer_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -140,7 +140,7 @@ func (s *Influencer) UnmarshalJSON(data []byte) error {
}
case "initial_influencer_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -156,7 +156,7 @@ func (s *Influencer) UnmarshalJSON(data []byte) error {
}
case "is_interim":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -175,7 +175,7 @@ func (s *Influencer) UnmarshalJSON(data []byte) error {
}
case "probability":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/infofeaturestate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/infofeaturestate.go
index 1d45b5e5f0..812bfb81f0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/infofeaturestate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/infofeaturestate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// InfoFeatureState type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotInfoFeatureState.ts#L22-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotInfoFeatureState.ts#L22-L25
type InfoFeatureState struct {
FeatureName string `json:"feature_name"`
Indices []string `json:"indices"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingestpipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingestpipeline.go
index 2d52598134..96f02ba060 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingestpipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingestpipeline.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IngestPipeline type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Pipeline.ts#L23-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Pipeline.ts#L23-L45
type IngestPipeline struct {
// Description Description of the ingest pipeline.
Description *string `json:"description,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingesttotal.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingesttotal.go
index 6221a4e0ab..6896896139 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingesttotal.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ingesttotal.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IngestTotal type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L356-L377
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L356-L377
type IngestTotal struct {
// Count Total number of documents ingested during the lifetime of this node.
Count *int64 `json:"count,omitempty"`
@@ -62,7 +62,7 @@ func (s *IngestTotal) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -77,7 +77,7 @@ func (s *IngestTotal) UnmarshalJSON(data []byte) error {
}
case "current":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *IngestTotal) UnmarshalJSON(data []byte) error {
}
case "failed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlineget.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlineget.go
index 064aba2031..52874d39ab 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlineget.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlineget.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// InlineGet type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L321-L330
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L321-L330
type InlineGet struct {
Fields map[string]json.RawMessage `json:"fields,omitempty"`
Found bool `json:"found"`
@@ -66,7 +66,7 @@ func (s *InlineGet) UnmarshalJSON(data []byte) error {
}
case "found":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -80,7 +80,7 @@ func (s *InlineGet) UnmarshalJSON(data []byte) error {
}
case "_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -131,7 +131,7 @@ func (s *InlineGet) UnmarshalJSON(data []byte) error {
func (s InlineGet) MarshalJSON() ([]byte, error) {
type opt InlineGet
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlinegetdictuserdefined.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlinegetdictuserdefined.go
index 793418f7fd..04ce1a993f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlinegetdictuserdefined.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlinegetdictuserdefined.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// InlineGetDictUserDefined type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L321-L330
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L321-L330
type InlineGetDictUserDefined struct {
Fields map[string]json.RawMessage `json:"fields,omitempty"`
Found bool `json:"found"`
@@ -66,7 +66,7 @@ func (s *InlineGetDictUserDefined) UnmarshalJSON(data []byte) error {
}
case "found":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -80,7 +80,7 @@ func (s *InlineGetDictUserDefined) UnmarshalJSON(data []byte) error {
}
case "_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -134,7 +134,7 @@ func (s *InlineGetDictUserDefined) UnmarshalJSON(data []byte) error {
func (s InlineGetDictUserDefined) MarshalJSON() ([]byte, error) {
type opt InlineGetDictUserDefined
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlinescript.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlinescript.go
index 5bde450695..219a54c95e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlinescript.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inlinescript.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// InlineScript type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Scripting.ts#L67-L79
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Scripting.ts#L67-L79
type InlineScript struct {
// Lang Specifies the language the script is written in.
Lang *scriptlanguage.ScriptLanguage `json:"lang,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/innerhits.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/innerhits.go
index 846808b7ab..e02fb555be 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/innerhits.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/innerhits.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// InnerHits type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/hits.ts#L106-L140
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/hits.ts#L106-L140
type InnerHits struct {
Collapse *FieldCollapse `json:"collapse,omitempty"`
DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"`
@@ -83,7 +83,7 @@ func (s *InnerHits) UnmarshalJSON(data []byte) error {
}
case "explain":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *InnerHits) UnmarshalJSON(data []byte) error {
case "from":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -134,7 +134,7 @@ func (s *InnerHits) UnmarshalJSON(data []byte) error {
}
case "ignore_unmapped":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -161,7 +161,7 @@ func (s *InnerHits) UnmarshalJSON(data []byte) error {
}
case "seq_no_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -176,7 +176,7 @@ func (s *InnerHits) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -228,7 +228,7 @@ func (s *InnerHits) UnmarshalJSON(data []byte) error {
}
case "track_scores":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -242,7 +242,7 @@ func (s *InnerHits) UnmarshalJSON(data []byte) error {
}
case "version":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/innerhitsresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/innerhitsresult.go
index 4aaca525bd..cbeb42f0f9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/innerhitsresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/innerhitsresult.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// InnerHitsResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/hits.ts#L84-L86
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/hits.ts#L84-L86
type InnerHitsResult struct {
Hits *HitsMetadata `json:"hits,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inprogress.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inprogress.go
index 884668851c..4629ad1cb2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inprogress.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/inprogress.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// InProgress type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/_types/SnapshotLifecycle.ts#L131-L136
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/_types/SnapshotLifecycle.ts#L131-L136
type InProgress struct {
Name string `json:"name"`
StartTimeMillis int64 `json:"start_time_millis"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/input.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/input.go
index 10cfe34f74..9168c72769 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/input.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/input.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// Input type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model/types.ts#L56-L58
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L56-L58
type Input struct {
FieldNames []string `json:"field_names"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/integernumberproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/integernumberproperty.go
index f4e1c8d33e..617672feba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/integernumberproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/integernumberproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// IntegerNumberProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L149-L152
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L151-L154
type IntegerNumberProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -79,7 +79,7 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +150,7 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -441,6 +441,12 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -452,7 +458,7 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -467,7 +473,7 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -481,7 +487,7 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -504,7 +510,7 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error {
case "null_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -530,7 +536,7 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -821,6 +827,12 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -879,7 +891,7 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -893,7 +905,7 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error {
}
case "time_series_dimension":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/integerrangeproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/integerrangeproperty.go
index 6f056a400d..98b874bff9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/integerrangeproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/integerrangeproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IntegerRangeProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/range.ts#L42-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/range.ts#L42-L44
type IntegerRangeProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -67,7 +67,7 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,7 +113,7 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +138,7 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -429,6 +429,12 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -440,7 +446,7 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -455,7 +461,7 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -483,7 +489,7 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -774,6 +780,12 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -796,7 +808,7 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervals.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervals.go
index 18b4d5aa81..77e0a2e067 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervals.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervals.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Intervals type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L83-L110
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L83-L110
type Intervals struct {
// AllOf Returns matches that span a combination of other rules.
AllOf *IntervalsAllOf `json:"all_of,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsallof.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsallof.go
index bf433b471f..9b7d8acd5c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsallof.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsallof.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IntervalsAllOf type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L50-L70
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L50-L70
type IntervalsAllOf struct {
// Filter Rule used to filter returned intervals.
Filter *IntervalsFilter `json:"filter,omitempty"`
@@ -74,7 +74,7 @@ func (s *IntervalsAllOf) UnmarshalJSON(data []byte) error {
case "max_gaps":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -89,7 +89,7 @@ func (s *IntervalsAllOf) UnmarshalJSON(data []byte) error {
}
case "ordered":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsanyof.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsanyof.go
index bdf1c396dc..8891c878b0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsanyof.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsanyof.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IntervalsAnyOf type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L72-L81
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L72-L81
type IntervalsAnyOf struct {
// Filter Rule used to filter returned intervals.
Filter *IntervalsFilter `json:"filter,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsfilter.go
index f4ba692188..501b1adb43 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// IntervalsFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L112-L152
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L112-L152
type IntervalsFilter struct {
// After Query used to return intervals that follow an interval from the `filter`
// rule.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsfuzzy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsfuzzy.go
index b0c3964b0e..fe2b2cf904 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsfuzzy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsfuzzy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IntervalsFuzzy type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L154-L184
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L154-L184
type IntervalsFuzzy struct {
// Analyzer Analyzer used to normalize the term.
Analyzer *string `json:"analyzer,omitempty"`
@@ -85,7 +85,7 @@ func (s *IntervalsFuzzy) UnmarshalJSON(data []byte) error {
case "prefix_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -112,7 +112,7 @@ func (s *IntervalsFuzzy) UnmarshalJSON(data []byte) error {
s.Term = o
case "transpositions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsmatch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsmatch.go
index 8992f1a144..b10c0aed07 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsmatch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsmatch.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IntervalsMatch type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L186-L216
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L186-L216
type IntervalsMatch struct {
// Analyzer Analyzer used to analyze terms in the query.
Analyzer *string `json:"analyzer,omitempty"`
@@ -85,7 +85,7 @@ func (s *IntervalsMatch) UnmarshalJSON(data []byte) error {
case "max_gaps":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *IntervalsMatch) UnmarshalJSON(data []byte) error {
}
case "ordered":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsprefix.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsprefix.go
index 5b6b64202c..c4a3021c85 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsprefix.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsprefix.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IntervalsPrefix type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L218-L233
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L218-L233
type IntervalsPrefix struct {
// Analyzer Analyzer used to analyze the `prefix`.
Analyzer *string `json:"analyzer,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsquery.go
index 2e27b3bc81..a4ac2a7c20 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalsquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IntervalsQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L235-L263
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L235-L263
type IntervalsQuery struct {
// AllOf Returns matches that span a combination of other rules.
AllOf *IntervalsAllOf `json:"all_of,omitempty"`
@@ -81,7 +81,7 @@ func (s *IntervalsQuery) UnmarshalJSON(data []byte) error {
}
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalswildcard.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalswildcard.go
index 8c7eb1c6d8..96cc5c4581 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalswildcard.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/intervalswildcard.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IntervalsWildcard type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L265-L280
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L265-L280
type IntervalsWildcard struct {
// Analyzer Analyzer used to analyze the `pattern`.
// Defaults to the top-level field's analyzer.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/invertedindex.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/invertedindex.go
index d3e7ba6ce5..fdb2c9e81e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/invertedindex.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/invertedindex.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// InvertedIndex type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L65-L73
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L65-L73
type InvertedIndex struct {
Offsets uint `json:"offsets"`
Payloads uint `json:"payloads"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/invocation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/invocation.go
index bce594a007..3169bc9c00 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/invocation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/invocation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// Invocation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/_types/SnapshotLifecycle.ts#L138-L141
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/_types/SnapshotLifecycle.ts#L138-L141
type Invocation struct {
SnapshotName string `json:"snapshot_name"`
Time DateTime `json:"time"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/invocations.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/invocations.go
index e4c5f7d503..3d2381a15d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/invocations.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/invocations.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Invocations type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L44-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L44-L46
type Invocations struct {
Total int64 `json:"total"`
}
@@ -52,7 +52,7 @@ func (s *Invocations) UnmarshalJSON(data []byte) error {
switch t {
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iostatdevice.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iostatdevice.go
index 5e5b44ac09..e07cf2175e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iostatdevice.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iostatdevice.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IoStatDevice type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L730-L755
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L730-L755
type IoStatDevice struct {
// DeviceName The Linux device name.
DeviceName *string `json:"device_name,omitempty"`
@@ -80,7 +80,7 @@ func (s *IoStatDevice) UnmarshalJSON(data []byte) error {
s.DeviceName = &o
case "operations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *IoStatDevice) UnmarshalJSON(data []byte) error {
}
case "read_kilobytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -110,7 +110,7 @@ func (s *IoStatDevice) UnmarshalJSON(data []byte) error {
}
case "read_operations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *IoStatDevice) UnmarshalJSON(data []byte) error {
}
case "write_kilobytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -140,7 +140,7 @@ func (s *IoStatDevice) UnmarshalJSON(data []byte) error {
}
case "write_operations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iostats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iostats.go
index cf22fe6bcb..e2ebcf44a2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iostats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iostats.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// IoStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L718-L728
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L718-L728
type IoStats struct {
// Devices Array of disk metrics for each device that is backing an Elasticsearch data
// path.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipfilter.go
index c24a43c437..15aea43c84 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IpFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L167-L170
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L167-L170
type IpFilter struct {
Http bool `json:"http"`
Transport bool `json:"transport"`
@@ -53,7 +53,7 @@ func (s *IpFilter) UnmarshalJSON(data []byte) error {
switch t {
case "http":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -67,7 +67,7 @@ func (s *IpFilter) UnmarshalJSON(data []byte) error {
}
case "transport":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipprefixaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipprefixaggregate.go
index 980354e47b..0bb19d0553 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipprefixaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipprefixaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// IpPrefixAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L629-L630
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L629-L630
type IpPrefixAggregate struct {
Buckets BucketsIpPrefixBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipprefixaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipprefixaggregation.go
index 24e9c26a58..349e273103 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipprefixaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipprefixaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IpPrefixAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L1113-L1142
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1117-L1146
type IpPrefixAggregation struct {
// AppendPrefixLength Defines whether the prefix length is appended to IP address keys in the
// response.
@@ -42,12 +42,10 @@ type IpPrefixAggregation struct {
IsIpv6 *bool `json:"is_ipv6,omitempty"`
// Keyed Defines whether buckets are returned as a hash rather than an array in the
// response.
- Keyed *bool `json:"keyed,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
+ Keyed *bool `json:"keyed,omitempty"`
// MinDocCount Minimum number of documents in a bucket for it to be included in the
// response.
- MinDocCount *int64 `json:"min_doc_count,omitempty"`
- Name *string `json:"name,omitempty"`
+ MinDocCount *int64 `json:"min_doc_count,omitempty"`
// PrefixLength Length of the network prefix. For IPv4 addresses the accepted range is [0,
// 32].
// For IPv6 addresses the accepted range is [0, 128].
@@ -70,7 +68,7 @@ func (s *IpPrefixAggregation) UnmarshalJSON(data []byte) error {
switch t {
case "append_prefix_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -89,7 +87,7 @@ func (s *IpPrefixAggregation) UnmarshalJSON(data []byte) error {
}
case "is_ipv6":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -103,7 +101,7 @@ func (s *IpPrefixAggregation) UnmarshalJSON(data []byte) error {
}
case "keyed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -116,13 +114,8 @@ func (s *IpPrefixAggregation) UnmarshalJSON(data []byte) error {
s.Keyed = &v
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "min_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -136,21 +129,9 @@ func (s *IpPrefixAggregation) UnmarshalJSON(data []byte) error {
s.MinDocCount = &f
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "prefix_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipprefixbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipprefixbucket.go
index 087f63a2d5..ebb5b3d674 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipprefixbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipprefixbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// IpPrefixBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L632-L637
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L632-L637
type IpPrefixBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -58,7 +58,7 @@ func (s *IpPrefixBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -73,7 +73,7 @@ func (s *IpPrefixBucket) UnmarshalJSON(data []byte) error {
}
case "is_ipv6":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -112,7 +112,7 @@ func (s *IpPrefixBucket) UnmarshalJSON(data []byte) error {
case "prefix_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -571,7 +571,7 @@ func (s *IpPrefixBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -621,7 +621,7 @@ func (s *IpPrefixBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -631,7 +631,7 @@ func (s *IpPrefixBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -648,7 +648,7 @@ func (s *IpPrefixBucket) UnmarshalJSON(data []byte) error {
func (s IpPrefixBucket) MarshalJSON() ([]byte, error) {
type opt IpPrefixBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipproperty.go
index 1f489c47f3..c331cac0c3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ipproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// IpProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/specialized.ts#L59-L73
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L65-L79
type IpProperty struct {
Boost *Float64 `json:"boost,omitempty"`
CopyTo []string `json:"copy_to,omitempty"`
@@ -74,7 +74,7 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -106,7 +106,7 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -131,7 +131,7 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -422,6 +422,12 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -433,7 +439,7 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -448,7 +454,7 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -462,7 +468,7 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -507,7 +513,7 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -798,6 +804,12 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -856,7 +868,7 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -870,7 +882,7 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error {
}
case "time_series_dimension":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeaggregate.go
index 4be85917fc..5b6ffb853e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// IpRangeAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L556-L558
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L556-L558
type IpRangeAggregate struct {
Buckets BucketsIpRangeBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeaggregation.go
index 237c0743a1..3c41382c2c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,17 +26,14 @@ import (
"errors"
"fmt"
"io"
- "strconv"
)
// IpRangeAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L546-L555
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L550-L559
type IpRangeAggregation struct {
// Field The date field whose values are used to build ranges.
- Field *string `json:"field,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
+ Field *string `json:"field,omitempty"`
// Ranges Array of IP ranges.
Ranges []IpRangeAggregationRange `json:"ranges,omitempty"`
}
@@ -61,23 +58,6 @@ func (s *IpRangeAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Field", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "ranges":
if err := dec.Decode(&s.Ranges); err != nil {
return fmt.Errorf("%s | %w", "Ranges", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeaggregationrange.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeaggregationrange.go
index 94d2ae83d3..85ea8bb639 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeaggregationrange.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeaggregationrange.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// IpRangeAggregationRange type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L557-L570
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L561-L574
type IpRangeAggregationRange struct {
// From Start of the range.
From string `json:"from,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangebucket.go
index d31be92991..1218ec8db1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangebucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangebucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// IpRangeBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L560-L564
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L560-L564
type IpRangeBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -57,7 +57,7 @@ func (s *IpRangeBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -552,7 +552,7 @@ func (s *IpRangeBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -602,7 +602,7 @@ func (s *IpRangeBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -612,7 +612,7 @@ func (s *IpRangeBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -629,7 +629,7 @@ func (s *IpRangeBucket) UnmarshalJSON(data []byte) error {
func (s IpRangeBucket) MarshalJSON() ([]byte, error) {
type opt IpRangeBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeproperty.go
index 40019c3efa..089ef1cce4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/iprangeproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// IpRangeProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/range.ts#L46-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/range.ts#L46-L48
type IpRangeProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -67,7 +67,7 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,7 +113,7 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +138,7 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -429,6 +429,12 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -440,7 +446,7 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -455,7 +461,7 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -483,7 +489,7 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -774,6 +780,12 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -796,7 +808,7 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/job.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/job.go
index f4ca73b371..7a70155f9d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/job.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/job.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Job type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Job.ts#L61-L180
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L61-L180
type Job struct {
// AllowLazyOpen Advanced configuration option.
// Specifies whether this job can open when there is insufficient machine
@@ -154,7 +154,7 @@ func (s *Job) UnmarshalJSON(data []byte) error {
switch t {
case "allow_lazy_open":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -198,7 +198,7 @@ func (s *Job) UnmarshalJSON(data []byte) error {
}
case "daily_model_snapshot_retention_after_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -223,7 +223,7 @@ func (s *Job) UnmarshalJSON(data []byte) error {
}
case "deleting":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -291,7 +291,7 @@ func (s *Job) UnmarshalJSON(data []byte) error {
}
case "model_snapshot_retention_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -306,7 +306,7 @@ func (s *Job) UnmarshalJSON(data []byte) error {
}
case "renormalization_window_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -326,7 +326,7 @@ func (s *Job) UnmarshalJSON(data []byte) error {
}
case "results_retention_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobblocked.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobblocked.go
index 31d4e31eab..84b11b8900 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobblocked.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobblocked.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// JobBlocked type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Job.ts#L392-L395
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L392-L395
type JobBlocked struct {
Reason jobblockedreason.JobBlockedReason `json:"reason"`
TaskId TaskId `json:"task_id,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobconfig.go
index daa3641970..65bfbc9b7f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// JobConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Job.ts#L182-L283
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L182-L283
type JobConfig struct {
// AllowLazyOpen Advanced configuration option. Specifies whether this job can open when there
// is insufficient machine learning node capacity for it to be immediately
@@ -135,7 +135,7 @@ func (s *JobConfig) UnmarshalJSON(data []byte) error {
switch t {
case "allow_lazy_open":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -169,7 +169,7 @@ func (s *JobConfig) UnmarshalJSON(data []byte) error {
}
case "daily_model_snapshot_retention_after_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -233,7 +233,7 @@ func (s *JobConfig) UnmarshalJSON(data []byte) error {
}
case "model_snapshot_retention_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -248,7 +248,7 @@ func (s *JobConfig) UnmarshalJSON(data []byte) error {
}
case "renormalization_window_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -268,7 +268,7 @@ func (s *JobConfig) UnmarshalJSON(data []byte) error {
}
case "results_retention_days":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobforecaststatistics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobforecaststatistics.go
index 4a21369b50..3093f7e94e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobforecaststatistics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobforecaststatistics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// JobForecastStatistics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Job.ts#L343-L350
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L343-L350
type JobForecastStatistics struct {
ForecastedJobs int `json:"forecasted_jobs"`
MemoryBytes *JobStatistics `json:"memory_bytes,omitempty"`
@@ -58,7 +58,7 @@ func (s *JobForecastStatistics) UnmarshalJSON(data []byte) error {
case "forecasted_jobs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *JobForecastStatistics) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobsrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobsrecord.go
index 2ceaf3b640..4ba607ad52 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobsrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobsrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// JobsRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/ml_jobs/types.ts#L24-L347
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_jobs/types.ts#L24-L347
type JobsRecord struct {
// AssignmentExplanation For open anomaly detection jobs only, contains messages relating to the
// selection of a node to run the job.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobstatistics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobstatistics.go
index 8daead6ed8..b3ca8dee2b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobstatistics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobstatistics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// JobStatistics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Job.ts#L54-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L54-L59
type JobStatistics struct {
Avg Float64 `json:"avg"`
Max Float64 `json:"max"`
@@ -55,7 +55,7 @@ func (s *JobStatistics) UnmarshalJSON(data []byte) error {
switch t {
case "avg":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *JobStatistics) UnmarshalJSON(data []byte) error {
}
case "max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *JobStatistics) UnmarshalJSON(data []byte) error {
}
case "min":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -103,7 +103,7 @@ func (s *JobStatistics) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobstats.go
index a0dc95a9e9..9923de7d87 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// JobStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Job.ts#L284-L330
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L284-L330
type JobStats struct {
// AssignmentExplanation For open anomaly detection jobs only, contains messages relating to the
// selection of a node to run the job.
@@ -101,7 +101,7 @@ func (s *JobStats) UnmarshalJSON(data []byte) error {
}
case "deleting":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobtimingstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobtimingstats.go
index 4c1f363e5f..00007a723e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobtimingstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobtimingstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// JobTimingStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Job.ts#L332-L341
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Job.ts#L332-L341
type JobTimingStats struct {
AverageBucketProcessingTimeMs Float64 `json:"average_bucket_processing_time_ms,omitempty"`
BucketCount int64 `json:"bucket_count"`
@@ -64,7 +64,7 @@ func (s *JobTimingStats) UnmarshalJSON(data []byte) error {
}
case "bucket_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobusage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobusage.go
index 99891d20a6..b731e689b0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobusage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jobusage.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// JobUsage type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L364-L370
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L364-L370
type JobUsage struct {
Count int `json:"count"`
CreatedBy map[string]int64 `json:"created_by"`
@@ -57,7 +57,7 @@ func (s *JobUsage) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/joinprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/joinprocessor.go
index 3cfdd20c8e..bdc1c135bb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/joinprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/joinprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// JoinProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L801-L816
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L801-L816
type JoinProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -99,7 +99,7 @@ func (s *JoinProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/joinproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/joinproperty.go
index 9d103d02f8..8bfdb6f74e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/joinproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/joinproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// JoinProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L83-L87
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L83-L87
type JoinProperty struct {
Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
EagerGlobalOrdinals *bool `json:"eager_global_ordinals,omitempty"`
@@ -67,7 +67,7 @@ func (s *JoinProperty) UnmarshalJSON(data []byte) error {
}
case "eager_global_ordinals":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *JoinProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -378,6 +378,12 @@ func (s *JoinProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -389,7 +395,7 @@ func (s *JoinProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -418,7 +424,7 @@ func (s *JoinProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -709,6 +715,12 @@ func (s *JoinProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jsonprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jsonprocessor.go
index 4bd92ebbe8..9afeb1be50 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jsonprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jsonprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// JsonProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L818-L847
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L818-L847
type JsonProcessor struct {
// AddToRoot Flag that forces the parsed JSON to be added at the top level of the
// document.
@@ -83,7 +83,7 @@ func (s *JsonProcessor) UnmarshalJSON(data []byte) error {
switch t {
case "add_to_root":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -102,7 +102,7 @@ func (s *JsonProcessor) UnmarshalJSON(data []byte) error {
}
case "allow_duplicate_keys":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -145,7 +145,7 @@ func (s *JsonProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvm.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvm.go
index e821b6c476..3b2a17ea9b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvm.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvm.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Jvm type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L811-L845
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L811-L845
type Jvm struct {
// BufferPools Contains statistics about JVM buffer pools for the node.
BufferPools map[string]NodeBufferPool `json:"buffer_pools,omitempty"`
@@ -96,7 +96,7 @@ func (s *Jvm) UnmarshalJSON(data []byte) error {
}
case "timestamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -123,7 +123,7 @@ func (s *Jvm) UnmarshalJSON(data []byte) error {
s.Uptime = &o
case "uptime_in_millis":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmclasses.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmclasses.go
index 1532778120..8db60cc375 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmclasses.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmclasses.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// JvmClasses type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L908-L921
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L908-L921
type JvmClasses struct {
// CurrentLoadedCount Number of classes currently loaded by JVM.
CurrentLoadedCount *int64 `json:"current_loaded_count,omitempty"`
@@ -57,7 +57,7 @@ func (s *JvmClasses) UnmarshalJSON(data []byte) error {
switch t {
case "current_loaded_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *JvmClasses) UnmarshalJSON(data []byte) error {
}
case "total_loaded_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *JvmClasses) UnmarshalJSON(data []byte) error {
}
case "total_unloaded_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmmemorystats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmmemorystats.go
index f6d610b11b..92bfd7aa85 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmmemorystats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmmemorystats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// JvmMemoryStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L847-L876
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L847-L876
type JvmMemoryStats struct {
// HeapCommittedInBytes Amount of memory, in bytes, available for use by the heap.
HeapCommittedInBytes *int64 `json:"heap_committed_in_bytes,omitempty"`
@@ -65,7 +65,7 @@ func (s *JvmMemoryStats) UnmarshalJSON(data []byte) error {
switch t {
case "heap_committed_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -80,7 +80,7 @@ func (s *JvmMemoryStats) UnmarshalJSON(data []byte) error {
}
case "heap_max_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *JvmMemoryStats) UnmarshalJSON(data []byte) error {
}
case "heap_used_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -110,7 +110,7 @@ func (s *JvmMemoryStats) UnmarshalJSON(data []byte) error {
}
case "heap_used_percent":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *JvmMemoryStats) UnmarshalJSON(data []byte) error {
}
case "non_heap_committed_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -140,7 +140,7 @@ func (s *JvmMemoryStats) UnmarshalJSON(data []byte) error {
}
case "non_heap_used_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmstats.go
index 750db928e9..1b397217ec 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// JvmStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_memory_stats/types.ts#L50-L63
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_memory_stats/types.ts#L50-L63
type JvmStats struct {
// HeapMax Maximum amount of memory available for use by the heap.
HeapMax ByteSize `json:"heap_max,omitempty"`
@@ -71,7 +71,7 @@ func (s *JvmStats) UnmarshalJSON(data []byte) error {
case "heap_max_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *JvmStats) UnmarshalJSON(data []byte) error {
case "java_inference_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,7 +113,7 @@ func (s *JvmStats) UnmarshalJSON(data []byte) error {
case "java_inference_max_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmthreads.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmthreads.go
index 33a2bc83d0..3ddabc0362 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmthreads.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/jvmthreads.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// JvmThreads type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L897-L906
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L897-L906
type JvmThreads struct {
// Count Number of active threads in use by JVM.
Count *int64 `json:"count,omitempty"`
@@ -55,7 +55,7 @@ func (s *JvmThreads) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *JvmThreads) UnmarshalJSON(data []byte) error {
}
case "peak_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keeptypestokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keeptypestokenfilter.go
index 50c07d2ecd..ee146458af 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keeptypestokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keeptypestokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// KeepTypesTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L218-L222
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L220-L224
type KeepTypesTokenFilter struct {
Mode *keeptypesmode.KeepTypesMode `json:"mode,omitempty"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keepwordstokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keepwordstokenfilter.go
index c85b1f2b53..548ef8faad 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keepwordstokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keepwordstokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// KeepWordsTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L224-L229
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L226-L231
type KeepWordsTokenFilter struct {
KeepWords []string `json:"keep_words,omitempty"`
KeepWordsCase *bool `json:"keep_words_case,omitempty"`
@@ -61,7 +61,7 @@ func (s *KeepWordsTokenFilter) UnmarshalJSON(data []byte) error {
}
case "keep_words_case":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keyedpercentiles.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keyedpercentiles.go
index f0a00565fb..76cec40b07 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keyedpercentiles.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keyedpercentiles.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// KeyedPercentiles type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L158-L158
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L158-L158
type KeyedPercentiles map[string]string
func (s KeyedPercentiles) UnmarshalJSON(data []byte) error {
@@ -51,7 +51,7 @@ func (s KeyedPercentiles) UnmarshalJSON(data []byte) error {
if key, ok := t.(string); ok {
- var tmp interface{}
+ var tmp any
if err := dec.Decode(&tmp); err != nil {
return err
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keyedprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keyedprocessor.go
index 2c743fd335..2b5ee9b57d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keyedprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keyedprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// KeyedProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L379-L382
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L379-L382
type KeyedProcessor struct {
Stats *Processor `json:"stats,omitempty"`
Type *string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keyvalueprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keyvalueprocessor.go
index 1ce96105c4..10bf70e9b1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keyvalueprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keyvalueprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// KeyValueProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L856-L908
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L856-L908
type KeyValueProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -138,7 +138,7 @@ func (s *KeyValueProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -152,7 +152,7 @@ func (s *KeyValueProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -188,7 +188,7 @@ func (s *KeyValueProcessor) UnmarshalJSON(data []byte) error {
s.Prefix = &o
case "strip_brackets":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordanalyzer.go
index a32bc4860a..f047913a78 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// KeywordAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/analyzers.ts#L47-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L47-L50
type KeywordAnalyzer struct {
Type string `json:"type,omitempty"`
Version *string `json:"version,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordmarkertokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordmarkertokenfilter.go
index 8510f7bad9..b6b967b2ec 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordmarkertokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordmarkertokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// KeywordMarkerTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L231-L237
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L233-L239
type KeywordMarkerTokenFilter struct {
IgnoreCase *bool `json:"ignore_case,omitempty"`
Keywords []string `json:"keywords,omitempty"`
@@ -57,7 +57,7 @@ func (s *KeywordMarkerTokenFilter) UnmarshalJSON(data []byte) error {
switch t {
case "ignore_case":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordproperty.go
index 7ef98f12e1..a76e891492 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,11 +30,12 @@ import (
"github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping"
"github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions"
+ "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror"
)
// KeywordProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L89-L105
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L89-L107
type KeywordProperty struct {
Boost *Float64 `json:"boost,omitempty"`
CopyTo []string `json:"copy_to,omitempty"`
@@ -46,14 +47,16 @@ type KeywordProperty struct {
Index *bool `json:"index,omitempty"`
IndexOptions *indexoptions.IndexOptions `json:"index_options,omitempty"`
// Meta Metadata about the field.
- Meta map[string]string `json:"meta,omitempty"`
- Normalizer *string `json:"normalizer,omitempty"`
- Norms *bool `json:"norms,omitempty"`
- NullValue *string `json:"null_value,omitempty"`
- Properties map[string]Property `json:"properties,omitempty"`
- Similarity *string `json:"similarity,omitempty"`
- SplitQueriesOnWhitespace *bool `json:"split_queries_on_whitespace,omitempty"`
- Store *bool `json:"store,omitempty"`
+ Meta map[string]string `json:"meta,omitempty"`
+ Normalizer *string `json:"normalizer,omitempty"`
+ Norms *bool `json:"norms,omitempty"`
+ NullValue *string `json:"null_value,omitempty"`
+ OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`
+ Properties map[string]Property `json:"properties,omitempty"`
+ Script Script `json:"script,omitempty"`
+ Similarity *string `json:"similarity,omitempty"`
+ SplitQueriesOnWhitespace *bool `json:"split_queries_on_whitespace,omitempty"`
+ Store *bool `json:"store,omitempty"`
// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.
// Defaults to false.
TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`
@@ -76,7 +79,7 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,7 +111,7 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -127,7 +130,7 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
}
case "eager_global_ordinals":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -147,7 +150,7 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -438,6 +441,12 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -449,7 +458,7 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -464,7 +473,7 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -503,7 +512,7 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
s.Normalizer = &o
case "norms":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -528,6 +537,11 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
}
s.NullValue = &o
+ case "on_script_error":
+ if err := dec.Decode(&s.OnScriptError); err != nil {
+ return fmt.Errorf("%s | %w", "OnScriptError", err)
+ }
+
case "properties":
if s.Properties == nil {
s.Properties = make(map[string]Property, 0)
@@ -535,7 +549,7 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -826,6 +840,12 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -835,6 +855,42 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
}
}
+ case "script":
+ message := json.RawMessage{}
+ if err := dec.Decode(&message); err != nil {
+ return fmt.Errorf("%s | %w", "Script", err)
+ }
+ keyDec := json.NewDecoder(bytes.NewReader(message))
+ for {
+ t, err := keyDec.Token()
+ if err != nil {
+ if errors.Is(err, io.EOF) {
+ break
+ }
+ return fmt.Errorf("%s | %w", "Script", err)
+ }
+
+ switch t {
+
+ case "lang", "options", "source":
+ o := NewInlineScript()
+ localDec := json.NewDecoder(bytes.NewReader(message))
+ if err := localDec.Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "Script", err)
+ }
+ s.Script = o
+
+ case "id":
+ o := NewStoredScriptId()
+ localDec := json.NewDecoder(bytes.NewReader(message))
+ if err := localDec.Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "Script", err)
+ }
+ s.Script = o
+
+ }
+ }
+
case "similarity":
var tmp json.RawMessage
if err := dec.Decode(&tmp); err != nil {
@@ -848,7 +904,7 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "split_queries_on_whitespace":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -862,7 +918,7 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
}
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -876,7 +932,7 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error {
}
case "time_series_dimension":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -916,7 +972,9 @@ func (s KeywordProperty) MarshalJSON() ([]byte, error) {
Normalizer: s.Normalizer,
Norms: s.Norms,
NullValue: s.NullValue,
+ OnScriptError: s.OnScriptError,
Properties: s.Properties,
+ Script: s.Script,
Similarity: s.Similarity,
SplitQueriesOnWhitespace: s.SplitQueriesOnWhitespace,
Store: s.Store,
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordtokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordtokenizer.go
index 8a0e7eb3d2..a8f8085c3b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordtokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/keywordtokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// KeywordTokenizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L62-L65
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L62-L65
type KeywordTokenizer struct {
BufferSize int `json:"buffer_size"`
Type string `json:"type,omitempty"`
@@ -55,7 +55,7 @@ func (s *KeywordTokenizer) UnmarshalJSON(data []byte) error {
case "buffer_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kibanatoken.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kibanatoken.go
index 1ad29170e2..e6992f01bb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kibanatoken.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kibanatoken.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// KibanaToken type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/enroll_kibana/Response.ts#L27-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/enroll_kibana/Response.ts#L27-L30
type KibanaToken struct {
Name string `json:"name"`
Value string `json:"value"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnquery.go
index 6b80a43512..fd7f2e9ee0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,20 +31,21 @@ import (
// KnnQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Knn.ts#L27-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Knn.ts#L54-L67
type KnnQuery struct {
- // Boost Boost value to apply to kNN scores
+ // Boost Floating point number used to decrease or increase the relevance scores of
+ // the query.
+ // Boost values are relative to the default value of 1.0.
+ // A boost value between 0 and 1.0 decreases the relevance score.
+ // A value greater than 1.0 increases the relevance score.
Boost *float32 `json:"boost,omitempty"`
// Field The name of the vector field to search against
Field string `json:"field"`
// Filter Filters for the kNN search query
Filter []Query `json:"filter,omitempty"`
- // InnerHits If defined, each search hit will contain inner hits.
- InnerHits *InnerHits `json:"inner_hits,omitempty"`
- // K The final number of nearest neighbors to return as top hits
- K int64 `json:"k"`
// NumCandidates The number of nearest neighbor candidates to consider per shard
- NumCandidates int64 `json:"num_candidates"`
+ NumCandidates *int `json:"num_candidates,omitempty"`
+ QueryName_ *string `json:"_name,omitempty"`
// QueryVector The query vector
QueryVector []float32 `json:"query_vector,omitempty"`
// QueryVectorBuilder The query vector builder. You must provide a query_vector_builder or
@@ -70,7 +71,7 @@ func (s *KnnQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -106,40 +107,33 @@ func (s *KnnQuery) UnmarshalJSON(data []byte) error {
}
}
- case "inner_hits":
- if err := dec.Decode(&s.InnerHits); err != nil {
- return fmt.Errorf("%s | %w", "InnerHits", err)
- }
+ case "num_candidates":
- case "k":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.ParseInt(v, 10, 64)
+ value, err := strconv.Atoi(v)
if err != nil {
- return fmt.Errorf("%s | %w", "K", err)
+ return fmt.Errorf("%s | %w", "NumCandidates", err)
}
- s.K = value
+ s.NumCandidates = &value
case float64:
- f := int64(v)
- s.K = f
+ f := int(v)
+ s.NumCandidates = &f
}
- case "num_candidates":
- var tmp interface{}
- dec.Decode(&tmp)
- switch v := tmp.(type) {
- case string:
- value, err := strconv.ParseInt(v, 10, 64)
- if err != nil {
- return fmt.Errorf("%s | %w", "NumCandidates", err)
- }
- s.NumCandidates = value
- case float64:
- f := int64(v)
- s.NumCandidates = f
+ case "_name":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "QueryName_", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
}
+ s.QueryName_ = &o
case "query_vector":
if err := dec.Decode(&s.QueryVector); err != nil {
@@ -152,7 +146,7 @@ func (s *KnnQuery) UnmarshalJSON(data []byte) error {
}
case "similarity":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnretriever.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnretriever.go
new file mode 100644
index 0000000000..41e64799b9
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnretriever.go
@@ -0,0 +1,165 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Code generated from the elasticsearch-specification DO NOT EDIT.
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
+
+package types
+
+import (
+ "bytes"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "strconv"
+)
+
+// KnnRetriever type.
+//
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Retriever.ts#L58-L71
+type KnnRetriever struct {
+ // Field The name of the vector field to search against.
+ Field string `json:"field"`
+ // Filter Query to filter the documents that can match.
+ Filter []Query `json:"filter,omitempty"`
+ // K Number of nearest neighbors to return as top hits.
+ K int `json:"k"`
+ // NumCandidates Number of nearest neighbor candidates to consider per shard.
+ NumCandidates int `json:"num_candidates"`
+ // QueryVector Query vector. Must have the same number of dimensions as the vector field you
+ // are searching against. You must provide a query_vector_builder or
+ // query_vector, but not both.
+ QueryVector []float32 `json:"query_vector,omitempty"`
+ // QueryVectorBuilder Defines a model to build a query vector.
+ QueryVectorBuilder *QueryVectorBuilder `json:"query_vector_builder,omitempty"`
+ // Similarity The minimum similarity required for a document to be considered a match.
+ Similarity *float32 `json:"similarity,omitempty"`
+}
+
+func (s *KnnRetriever) UnmarshalJSON(data []byte) error {
+
+ dec := json.NewDecoder(bytes.NewReader(data))
+
+ for {
+ t, err := dec.Token()
+ if err != nil {
+ if errors.Is(err, io.EOF) {
+ break
+ }
+ return err
+ }
+
+ switch t {
+
+ case "field":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "Field", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.Field = o
+
+ case "filter":
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := NewQuery()
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "Filter", err)
+ }
+
+ s.Filter = append(s.Filter, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Filter); err != nil {
+ return fmt.Errorf("%s | %w", "Filter", err)
+ }
+ }
+
+ case "k":
+
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.Atoi(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "K", err)
+ }
+ s.K = value
+ case float64:
+ f := int(v)
+ s.K = f
+ }
+
+ case "num_candidates":
+
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.Atoi(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "NumCandidates", err)
+ }
+ s.NumCandidates = value
+ case float64:
+ f := int(v)
+ s.NumCandidates = f
+ }
+
+ case "query_vector":
+ if err := dec.Decode(&s.QueryVector); err != nil {
+ return fmt.Errorf("%s | %w", "QueryVector", err)
+ }
+
+ case "query_vector_builder":
+ if err := dec.Decode(&s.QueryVectorBuilder); err != nil {
+ return fmt.Errorf("%s | %w", "QueryVectorBuilder", err)
+ }
+
+ case "similarity":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseFloat(v, 32)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Similarity", err)
+ }
+ f := float32(value)
+ s.Similarity = &f
+ case float64:
+ f := float32(v)
+ s.Similarity = &f
+ }
+
+ }
+ }
+ return nil
+}
+
+// NewKnnRetriever returns a KnnRetriever.
+func NewKnnRetriever() *KnnRetriever {
+ r := &KnnRetriever{}
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnsearch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnsearch.go
new file mode 100644
index 0000000000..2f65e8712b
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/knnsearch.go
@@ -0,0 +1,182 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Code generated from the elasticsearch-specification DO NOT EDIT.
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
+
+package types
+
+import (
+ "bytes"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "strconv"
+)
+
+// KnnSearch type.
+//
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Knn.ts#L30-L52
+type KnnSearch struct {
+ // Boost Boost value to apply to kNN scores
+ Boost *float32 `json:"boost,omitempty"`
+ // Field The name of the vector field to search against
+ Field string `json:"field"`
+ // Filter Filters for the kNN search query
+ Filter []Query `json:"filter,omitempty"`
+ // InnerHits If defined, each search hit will contain inner hits.
+ InnerHits *InnerHits `json:"inner_hits,omitempty"`
+ // K The final number of nearest neighbors to return as top hits
+ K *int `json:"k,omitempty"`
+ // NumCandidates The number of nearest neighbor candidates to consider per shard
+ NumCandidates *int `json:"num_candidates,omitempty"`
+ // QueryVector The query vector
+ QueryVector []float32 `json:"query_vector,omitempty"`
+ // QueryVectorBuilder The query vector builder. You must provide a query_vector_builder or
+ // query_vector, but not both.
+ QueryVectorBuilder *QueryVectorBuilder `json:"query_vector_builder,omitempty"`
+ // Similarity The minimum similarity for a vector to be considered a match
+ Similarity *float32 `json:"similarity,omitempty"`
+}
+
+func (s *KnnSearch) UnmarshalJSON(data []byte) error {
+
+ dec := json.NewDecoder(bytes.NewReader(data))
+
+ for {
+ t, err := dec.Token()
+ if err != nil {
+ if errors.Is(err, io.EOF) {
+ break
+ }
+ return err
+ }
+
+ switch t {
+
+ case "boost":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseFloat(v, 32)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Boost", err)
+ }
+ f := float32(value)
+ s.Boost = &f
+ case float64:
+ f := float32(v)
+ s.Boost = &f
+ }
+
+ case "field":
+ if err := dec.Decode(&s.Field); err != nil {
+ return fmt.Errorf("%s | %w", "Field", err)
+ }
+
+ case "filter":
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := NewQuery()
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "Filter", err)
+ }
+
+ s.Filter = append(s.Filter, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Filter); err != nil {
+ return fmt.Errorf("%s | %w", "Filter", err)
+ }
+ }
+
+ case "inner_hits":
+ if err := dec.Decode(&s.InnerHits); err != nil {
+ return fmt.Errorf("%s | %w", "InnerHits", err)
+ }
+
+ case "k":
+
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.Atoi(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "K", err)
+ }
+ s.K = &value
+ case float64:
+ f := int(v)
+ s.K = &f
+ }
+
+ case "num_candidates":
+
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.Atoi(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "NumCandidates", err)
+ }
+ s.NumCandidates = &value
+ case float64:
+ f := int(v)
+ s.NumCandidates = &f
+ }
+
+ case "query_vector":
+ if err := dec.Decode(&s.QueryVector); err != nil {
+ return fmt.Errorf("%s | %w", "QueryVector", err)
+ }
+
+ case "query_vector_builder":
+ if err := dec.Decode(&s.QueryVectorBuilder); err != nil {
+ return fmt.Errorf("%s | %w", "QueryVectorBuilder", err)
+ }
+
+ case "similarity":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseFloat(v, 32)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Similarity", err)
+ }
+ f := float32(value)
+ s.Similarity = &f
+ case float64:
+ f := float32(v)
+ s.Similarity = &f
+ }
+
+ }
+ }
+ return nil
+}
+
+// NewKnnSearch returns a KnnSearch.
+func NewKnnSearch() *KnnSearch {
+ r := &KnnSearch{}
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kstemtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kstemtokenfilter.go
index c67eaf91e3..bd51db43d4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kstemtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kstemtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// KStemTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L239-L241
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L241-L243
type KStemTokenFilter struct {
Type string `json:"type,omitempty"`
Version *string `json:"version,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojianalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojianalyzer.go
index 2e114c0b58..78b505cc8d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojianalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojianalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// KuromojiAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/kuromoji-plugin.ts#L25-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/kuromoji-plugin.ts#L25-L29
type KuromojiAnalyzer struct {
Mode kuromojitokenizationmode.KuromojiTokenizationMode `json:"mode"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojiiterationmarkcharfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojiiterationmarkcharfilter.go
index 4ba4f0621b..428d0d231c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojiiterationmarkcharfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojiiterationmarkcharfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// KuromojiIterationMarkCharFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/kuromoji-plugin.ts#L31-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/kuromoji-plugin.ts#L31-L35
type KuromojiIterationMarkCharFilter struct {
NormalizeKana bool `json:"normalize_kana"`
NormalizeKanji bool `json:"normalize_kanji"`
@@ -55,7 +55,7 @@ func (s *KuromojiIterationMarkCharFilter) UnmarshalJSON(data []byte) error {
switch t {
case "normalize_kana":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -69,7 +69,7 @@ func (s *KuromojiIterationMarkCharFilter) UnmarshalJSON(data []byte) error {
}
case "normalize_kanji":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojipartofspeechtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojipartofspeechtokenfilter.go
index 68bf56c3b4..9ad097d136 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojipartofspeechtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojipartofspeechtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// KuromojiPartOfSpeechTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/kuromoji-plugin.ts#L37-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/kuromoji-plugin.ts#L37-L40
type KuromojiPartOfSpeechTokenFilter struct {
Stoptags []string `json:"stoptags"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojireadingformtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojireadingformtokenfilter.go
index e545b39cbc..e6ad27d062 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojireadingformtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojireadingformtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// KuromojiReadingFormTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/kuromoji-plugin.ts#L42-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/kuromoji-plugin.ts#L42-L45
type KuromojiReadingFormTokenFilter struct {
Type string `json:"type,omitempty"`
UseRomaji bool `json:"use_romaji"`
@@ -59,7 +59,7 @@ func (s *KuromojiReadingFormTokenFilter) UnmarshalJSON(data []byte) error {
}
case "use_romaji":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojistemmertokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojistemmertokenfilter.go
index 37244b28a3..a4267d8a4a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojistemmertokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojistemmertokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// KuromojiStemmerTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/kuromoji-plugin.ts#L47-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/kuromoji-plugin.ts#L47-L50
type KuromojiStemmerTokenFilter struct {
MinimumLength int `json:"minimum_length"`
Type string `json:"type,omitempty"`
@@ -55,7 +55,7 @@ func (s *KuromojiStemmerTokenFilter) UnmarshalJSON(data []byte) error {
case "minimum_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojitokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojitokenizer.go
index f3fb7065a3..f47c97eedd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojitokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/kuromojitokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// KuromojiTokenizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/kuromoji-plugin.ts#L58-L67
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/kuromoji-plugin.ts#L58-L67
type KuromojiTokenizer struct {
DiscardCompoundToken *bool `json:"discard_compound_token,omitempty"`
DiscardPunctuation *bool `json:"discard_punctuation,omitempty"`
@@ -62,7 +62,7 @@ func (s *KuromojiTokenizer) UnmarshalJSON(data []byte) error {
switch t {
case "discard_compound_token":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -76,7 +76,7 @@ func (s *KuromojiTokenizer) UnmarshalJSON(data []byte) error {
}
case "discard_punctuation":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *KuromojiTokenizer) UnmarshalJSON(data []byte) error {
case "nbest_cost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/languageanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/languageanalyzer.go
index 1b6556f917..e51812b5fa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/languageanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/languageanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// LanguageAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/analyzers.ts#L52-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L52-L59
type LanguageAnalyzer struct {
Language language.Language `json:"language"`
StemExclusion []string `json:"stem_exclusion"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/languagecontext.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/languagecontext.go
index bf0d72b5a2..8edd135863 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/languagecontext.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/languagecontext.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// LanguageContext type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/get_script_languages/types.ts#L22-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/get_script_languages/types.ts#L22-L25
type LanguageContext struct {
Contexts []string `json:"contexts"`
Language scriptlanguage.ScriptLanguage `json:"language"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/laplacesmoothingmodel.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/laplacesmoothingmodel.go
index 6316dfde34..d4dba5c4cd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/laplacesmoothingmodel.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/laplacesmoothingmodel.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// LaplaceSmoothingModel type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L427-L432
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L427-L432
type LaplaceSmoothingModel struct {
// Alpha A constant that is added to all counts to balance weights.
Alpha Float64 `json:"alpha"`
@@ -53,7 +53,7 @@ func (s *LaplaceSmoothingModel) UnmarshalJSON(data []byte) error {
switch t {
case "alpha":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/latest.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/latest.go
index 3de6df1f2c..da191ea709 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/latest.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/latest.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// Latest type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/_types/Transform.ts#L47-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L47-L52
type Latest struct {
// Sort Specifies the date field that is used to identify the latest documents.
Sort string `json:"sort"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/latlongeolocation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/latlongeolocation.go
index 8b767a1289..c729e36f9c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/latlongeolocation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/latlongeolocation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// LatLonGeoLocation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Geo.ts#L120-L129
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L120-L129
type LatLonGeoLocation struct {
// Lat Latitude
Lat Float64 `json:"lat"`
@@ -55,7 +55,7 @@ func (s *LatLonGeoLocation) UnmarshalJSON(data []byte) error {
switch t {
case "lat":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *LatLonGeoLocation) UnmarshalJSON(data []byte) error {
}
case "lon":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/learningtorank.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/learningtorank.go
new file mode 100644
index 0000000000..a0a5398c15
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/learningtorank.go
@@ -0,0 +1,89 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Code generated from the elasticsearch-specification DO NOT EDIT.
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
+
+package types
+
+import (
+ "bytes"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "strconv"
+)
+
+// LearningToRank type.
+//
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/rescoring.ts#L88-L97
+type LearningToRank struct {
+ // ModelId The unique identifier of the trained model uploaded to Elasticsearch
+ ModelId string `json:"model_id"`
+ // Params Named parameters to be passed to the query templates used for feature
+ Params map[string]json.RawMessage `json:"params,omitempty"`
+}
+
+func (s *LearningToRank) UnmarshalJSON(data []byte) error {
+
+ dec := json.NewDecoder(bytes.NewReader(data))
+
+ for {
+ t, err := dec.Token()
+ if err != nil {
+ if errors.Is(err, io.EOF) {
+ break
+ }
+ return err
+ }
+
+ switch t {
+
+ case "model_id":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "ModelId", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.ModelId = o
+
+ case "params":
+ if s.Params == nil {
+ s.Params = make(map[string]json.RawMessage, 0)
+ }
+ if err := dec.Decode(&s.Params); err != nil {
+ return fmt.Errorf("%s | %w", "Params", err)
+ }
+
+ }
+ }
+ return nil
+}
+
+// NewLearningToRank returns a LearningToRank.
+func NewLearningToRank() *LearningToRank {
+ r := &LearningToRank{
+ Params: make(map[string]json.RawMessage, 0),
+ }
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lengthtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lengthtokenfilter.go
index d8ebef422e..2ce52069c8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lengthtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lengthtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// LengthTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L243-L247
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L245-L249
type LengthTokenFilter struct {
Max *int `json:"max,omitempty"`
Min *int `json:"min,omitempty"`
@@ -56,7 +56,7 @@ func (s *LengthTokenFilter) UnmarshalJSON(data []byte) error {
case "max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *LengthTokenFilter) UnmarshalJSON(data []byte) error {
case "min":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lettertokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lettertokenizer.go
index e18cf87aac..d20f86a0f4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lettertokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lettertokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// LetterTokenizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L67-L69
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L67-L69
type LetterTokenizer struct {
Type string `json:"type,omitempty"`
Version *string `json:"version,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/license.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/license.go
index 0cadae4310..66773d0d4f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/license.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/license.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// License type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/license/_types/License.ts#L42-L53
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/_types/License.ts#L42-L53
type License struct {
ExpiryDateInMillis int64 `json:"expiry_date_in_millis"`
IssueDateInMillis int64 `json:"issue_date_in_millis"`
@@ -102,7 +102,7 @@ func (s *License) UnmarshalJSON(data []byte) error {
}
case "max_resource_units":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/licenseinformation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/licenseinformation.go
index a27c800aa6..2721cf2a25 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/licenseinformation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/licenseinformation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// LicenseInformation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/license/get/types.ts#L25-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/license/get/types.ts#L25-L38
type LicenseInformation struct {
ExpiryDate DateTime `json:"expiry_date,omitempty"`
ExpiryDateInMillis *int64 `json:"expiry_date_in_millis,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycle.go
index 61e0f323cb..4368fef740 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// Lifecycle type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/get_lifecycle/types.ts#L24-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/get_lifecycle/types.ts#L24-L28
type Lifecycle struct {
ModifiedDate DateTime `json:"modified_date"`
Policy IlmPolicy `json:"policy"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplain.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplain.go
index dccdb497d9..dcba2757c2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplain.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplain.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// LifecycleExplainManaged
// LifecycleExplainUnmanaged
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/explain_lifecycle/types.ts#L59-L62
-type LifecycleExplain interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/explain_lifecycle/types.ts#L59-L62
+type LifecycleExplain any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplainmanaged.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplainmanaged.go
index c9f2c28e1b..ca02d7e854 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplainmanaged.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplainmanaged.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// LifecycleExplainManaged type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/explain_lifecycle/types.ts#L26-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/explain_lifecycle/types.ts#L26-L52
type LifecycleExplainManaged struct {
Action *string `json:"action,omitempty"`
ActionTime DateTime `json:"action_time,omitempty"`
@@ -100,7 +100,7 @@ func (s *LifecycleExplainManaged) UnmarshalJSON(data []byte) error {
case "failed_step_retry_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -130,7 +130,7 @@ func (s *LifecycleExplainManaged) UnmarshalJSON(data []byte) error {
}
case "is_auto_retryable_error":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplainphaseexecution.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplainphaseexecution.go
index 43409486d6..0c0df51e6c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplainphaseexecution.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplainphaseexecution.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// LifecycleExplainPhaseExecution type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/explain_lifecycle/types.ts#L64-L68
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/explain_lifecycle/types.ts#L64-L68
type LifecycleExplainPhaseExecution struct {
ModifiedDateInMillis int64 `json:"modified_date_in_millis"`
Policy string `json:"policy"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplainunmanaged.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplainunmanaged.go
index ce61a63953..ae5b3c5b1e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplainunmanaged.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lifecycleexplainunmanaged.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// LifecycleExplainUnmanaged type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/explain_lifecycle/types.ts#L54-L57
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/explain_lifecycle/types.ts#L54-L57
type LifecycleExplainUnmanaged struct {
Index string `json:"index"`
Managed bool `json:"managed,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/like.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/like.go
index 6e6294ee82..a8c5ce60db 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/like.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/like.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// LikeDocument
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L186-L191
-type Like interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L186-L191
+type Like any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/likedocument.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/likedocument.go
index b1e451807b..0d249fce68 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/likedocument.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/likedocument.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// LikeDocument type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L165-L184
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L162-L184
type LikeDocument struct {
// Doc A document not present in the index.
Doc json.RawMessage `json:"doc,omitempty"`
@@ -40,7 +40,8 @@ type LikeDocument struct {
// Id_ ID of a document.
Id_ *string `json:"_id,omitempty"`
// Index_ Index of a document.
- Index_ *string `json:"_index,omitempty"`
+ Index_ *string `json:"_index,omitempty"`
+ // PerFieldAnalyzer Overrides the default analyzer.
PerFieldAnalyzer map[string]string `json:"per_field_analyzer,omitempty"`
Routing *string `json:"routing,omitempty"`
Version *int64 `json:"version,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/limits.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/limits.go
index 9af132da8c..357a54fc7a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/limits.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/limits.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Limits type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/info/types.ts#L34-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/info/types.ts#L34-L38
type Limits struct {
EffectiveMaxModelMemoryLimit string `json:"effective_max_model_memory_limit"`
MaxModelMemoryLimit *string `json:"max_model_memory_limit,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/limittokencounttokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/limittokencounttokenfilter.go
index 3f1ed13059..a15fd7b6fa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/limittokencounttokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/limittokencounttokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// LimitTokenCountTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L249-L253
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L251-L255
type LimitTokenCountTokenFilter struct {
ConsumeAllTokens *bool `json:"consume_all_tokens,omitempty"`
MaxTokenCount Stringifiedinteger `json:"max_token_count,omitempty"`
@@ -55,7 +55,7 @@ func (s *LimitTokenCountTokenFilter) UnmarshalJSON(data []byte) error {
switch t {
case "consume_all_tokens":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/linearinterpolationsmoothingmodel.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/linearinterpolationsmoothingmodel.go
index 1876d4766b..2a051e130b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/linearinterpolationsmoothingmodel.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/linearinterpolationsmoothingmodel.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// LinearInterpolationSmoothingModel type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L434-L438
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L434-L438
type LinearInterpolationSmoothingModel struct {
BigramLambda Float64 `json:"bigram_lambda"`
TrigramLambda Float64 `json:"trigram_lambda"`
@@ -54,7 +54,7 @@ func (s *LinearInterpolationSmoothingModel) UnmarshalJSON(data []byte) error {
switch t {
case "bigram_lambda":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *LinearInterpolationSmoothingModel) UnmarshalJSON(data []byte) error {
}
case "trigram_lambda":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -86,7 +86,7 @@ func (s *LinearInterpolationSmoothingModel) UnmarshalJSON(data []byte) error {
}
case "unigram_lambda":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/linearmovingaverageaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/linearmovingaverageaggregation.go
index 45c13d885a..f5ed67af91 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/linearmovingaverageaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/linearmovingaverageaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// LinearMovingAverageAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L242-L245
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L242-L245
type LinearMovingAverageAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,10 +43,8 @@ type LinearMovingAverageAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
Minimize *bool `json:"minimize,omitempty"`
Model string `json:"model,omitempty"`
- Name *string `json:"name,omitempty"`
Predict *int `json:"predict,omitempty"`
Settings EmptyObject `json:"settings"`
Window *int `json:"window,omitempty"`
@@ -89,13 +87,8 @@ func (s *LinearMovingAverageAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "minimize":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,21 +106,9 @@ func (s *LinearMovingAverageAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Model", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "predict":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -148,7 +129,7 @@ func (s *LinearMovingAverageAggregation) UnmarshalJSON(data []byte) error {
case "window":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -174,10 +155,8 @@ func (s LinearMovingAverageAggregation) MarshalJSON() ([]byte, error) {
BucketsPath: s.BucketsPath,
Format: s.Format,
GapPolicy: s.GapPolicy,
- Meta: s.Meta,
Minimize: s.Minimize,
Model: s.Model,
- Name: s.Name,
Predict: s.Predict,
Settings: s.Settings,
Window: s.Window,
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/loggingaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/loggingaction.go
index e5afe3299a..ab73d8166f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/loggingaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/loggingaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// LoggingAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L281-L285
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L281-L285
type LoggingAction struct {
Category *string `json:"category,omitempty"`
Level *string `json:"level,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/loggingresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/loggingresult.go
index 793a537d0b..1e70c88c70 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/loggingresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/loggingresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// LoggingResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L287-L289
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L287-L289
type LoggingResult struct {
LoggedText string `json:"logged_text"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/logstashpipeline.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/logstashpipeline.go
index a787dc446c..de7f1acca3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/logstashpipeline.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/logstashpipeline.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// LogstashPipeline type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/logstash/_types/Pipeline.ts#L60-L92
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/logstash/_types/Pipeline.ts#L60-L92
type LogstashPipeline struct {
// Description Description of the pipeline.
// This description is not used by Elasticsearch or Logstash.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longnumberproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longnumberproperty.go
index fa4145bf1c..759587061b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longnumberproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longnumberproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// LongNumberProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L154-L157
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L156-L159
type LongNumberProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -79,7 +79,7 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +150,7 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -441,6 +441,12 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -452,7 +458,7 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -467,7 +473,7 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -481,7 +487,7 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -503,7 +509,7 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error {
}
case "null_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -529,7 +535,7 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -820,6 +826,12 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -878,7 +890,7 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -892,7 +904,7 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error {
}
case "time_series_dimension":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longrangeproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longrangeproperty.go
index de48bf7327..6f29954975 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longrangeproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longrangeproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// LongRangeProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/range.ts#L50-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/range.ts#L50-L52
type LongRangeProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -67,7 +67,7 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,7 +113,7 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +138,7 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -429,6 +429,12 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -440,7 +446,7 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -455,7 +461,7 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -483,7 +489,7 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -774,6 +780,12 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -796,7 +808,7 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longraretermsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longraretermsaggregate.go
index cf47cb04cf..abdacad2ef 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longraretermsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longraretermsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// LongRareTermsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L431-L436
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L431-L436
type LongRareTermsAggregate struct {
Buckets BucketsLongRareTermsBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longraretermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longraretermsbucket.go
index 4d38145f41..e0c1165767 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longraretermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longraretermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// LongRareTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L438-L441
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L438-L441
type LongRareTermsBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -56,7 +56,7 @@ func (s *LongRareTermsBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *LongRareTermsBucket) UnmarshalJSON(data []byte) error {
}
case "key":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -542,7 +542,7 @@ func (s *LongRareTermsBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -592,7 +592,7 @@ func (s *LongRareTermsBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -602,7 +602,7 @@ func (s *LongRareTermsBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -619,7 +619,7 @@ func (s *LongRareTermsBucket) UnmarshalJSON(data []byte) error {
func (s LongRareTermsBucket) MarshalJSON() ([]byte, error) {
type opt LongRareTermsBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longtermsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longtermsaggregate.go
index 7cc519ff0a..d0ea94218a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longtermsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longtermsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// LongTermsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L399-L404
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L399-L404
type LongTermsAggregate struct {
Buckets BucketsLongTermsBucket `json:"buckets"`
DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`
@@ -76,7 +76,7 @@ func (s *LongTermsAggregate) UnmarshalJSON(data []byte) error {
}
case "doc_count_error_upper_bound":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *LongTermsAggregate) UnmarshalJSON(data []byte) error {
}
case "sum_other_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longtermsbucket.go
index 7b4ce8012e..a25ee91697 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/longtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,13 +32,13 @@ import (
// LongTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L406-L409
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L406-L409
type LongTermsBucket struct {
- Aggregations map[string]Aggregate `json:"-"`
- DocCount int64 `json:"doc_count"`
- DocCountError *int64 `json:"doc_count_error,omitempty"`
- Key int64 `json:"key"`
- KeyAsString *string `json:"key_as_string,omitempty"`
+ Aggregations map[string]Aggregate `json:"-"`
+ DocCount int64 `json:"doc_count"`
+ DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`
+ Key int64 `json:"key"`
+ KeyAsString *string `json:"key_as_string,omitempty"`
}
func (s *LongTermsBucket) UnmarshalJSON(data []byte) error {
@@ -57,7 +57,7 @@ func (s *LongTermsBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,23 +71,23 @@ func (s *LongTermsBucket) UnmarshalJSON(data []byte) error {
s.DocCount = f
}
- case "doc_count_error":
- var tmp interface{}
+ case "doc_count_error_upper_bound":
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
- return fmt.Errorf("%s | %w", "DocCountError", err)
+ return fmt.Errorf("%s | %w", "DocCountErrorUpperBound", err)
}
- s.DocCountError = &value
+ s.DocCountErrorUpperBound = &value
case float64:
f := int64(v)
- s.DocCountError = &f
+ s.DocCountErrorUpperBound = &f
}
case "key":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -558,7 +558,7 @@ func (s *LongTermsBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -608,7 +608,7 @@ func (s *LongTermsBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -618,7 +618,7 @@ func (s *LongTermsBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -635,7 +635,7 @@ func (s *LongTermsBucket) UnmarshalJSON(data []byte) error {
func (s LongTermsBucket) MarshalJSON() ([]byte, error) {
type opt LongTermsBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercasenormalizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercasenormalizer.go
index 1cd00ef1de..9b16e39adc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercasenormalizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercasenormalizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// LowercaseNormalizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/normalizers.ts#L26-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/normalizers.ts#L26-L28
type LowercaseNormalizer struct {
Type string `json:"type,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercaseprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercaseprocessor.go
index 9b66485887..6a6f71222d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercaseprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercaseprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// LowercaseProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L910-L926
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L910-L926
type LowercaseProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -100,7 +100,7 @@ func (s *LowercaseProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *LowercaseProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercasetokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercasetokenfilter.go
index 5b3b9de55b..d3389173e7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercasetokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercasetokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// LowercaseTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L255-L258
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L257-L260
type LowercaseTokenFilter struct {
Language *string `json:"language,omitempty"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercasetokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercasetokenizer.go
index 0c8a1d76cd..781907328e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercasetokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/lowercasetokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// LowercaseTokenizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L71-L73
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L71-L73
type LowercaseTokenizer struct {
Type string `json:"type,omitempty"`
Version *string `json:"version,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/machinelearning.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/machinelearning.go
index 362c0cf2fa..470add0880 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/machinelearning.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/machinelearning.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MachineLearning type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L372-L379
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L372-L379
type MachineLearning struct {
Available bool `json:"available"`
DataFrameAnalyticsJobs MlDataFrameAnalyticsJobs `json:"data_frame_analytics_jobs"`
@@ -60,7 +60,7 @@ func (s *MachineLearning) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *MachineLearning) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -115,7 +115,7 @@ func (s *MachineLearning) UnmarshalJSON(data []byte) error {
case "node_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/manageuserprivileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/manageuserprivileges.go
index 2a7812bdd9..ec28209342 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/manageuserprivileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/manageuserprivileges.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ManageUserPrivileges type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/Privileges.ts#L197-L199
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L222-L224
type ManageUserPrivileges struct {
Applications []string `json:"applications"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mapboxvectortiles.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mapboxvectortiles.go
index c888420cbf..e009663923 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mapboxvectortiles.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mapboxvectortiles.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// MapboxVectorTiles type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Binary.ts#L21-L21
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Binary.ts#L21-L21
type MapboxVectorTiles []byte
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappingcharfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappingcharfilter.go
index 34c664435e..eff98a829f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappingcharfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappingcharfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MappingCharFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/char_filters.ts#L48-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/char_filters.ts#L48-L52
type MappingCharFilter struct {
Mappings []string `json:"mappings,omitempty"`
MappingsPath *string `json:"mappings_path,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettings.go
index a99b3e7bec..bdf96633f4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MappingLimitSettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L409-L422
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L409-L422
type MappingLimitSettings struct {
Coerce *bool `json:"coerce,omitempty"`
Depth *MappingLimitSettingsDepth `json:"depth,omitempty"`
@@ -59,7 +59,7 @@ func (s *MappingLimitSettings) UnmarshalJSON(data []byte) error {
switch t {
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *MappingLimitSettings) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsdepth.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsdepth.go
index c8785c5dd1..95ca656e3b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsdepth.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsdepth.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,13 +31,13 @@ import (
// MappingLimitSettingsDepth type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L434-L441
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L434-L441
type MappingLimitSettingsDepth struct {
// Limit The maximum depth for a field, which is measured as the number of inner
// objects. For instance, if all fields are defined
// at the root object level, then the depth is 1. If there is one object
// mapping, then the depth is 2, etc.
- Limit *int `json:"limit,omitempty"`
+ Limit *int64 `json:"limit,omitempty"`
}
func (s *MappingLimitSettingsDepth) UnmarshalJSON(data []byte) error {
@@ -56,18 +56,17 @@ func (s *MappingLimitSettingsDepth) UnmarshalJSON(data []byte) error {
switch t {
case "limit":
-
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.Atoi(v)
+ value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
return fmt.Errorf("%s | %w", "Limit", err)
}
s.Limit = &value
case float64:
- f := int(v)
+ f := int64(v)
s.Limit = &f
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsdimensionfields.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsdimensionfields.go
index c1ff1be6fc..33de8afa3b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsdimensionfields.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsdimensionfields.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,13 +31,13 @@ import (
// MappingLimitSettingsDimensionFields type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L471-L477
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L471-L477
type MappingLimitSettingsDimensionFields struct {
// Limit [preview] This functionality is in technical preview and may be changed or
// removed in a future release.
// Elastic will work to fix any issues, but features in technical preview are
// not subject to the support SLA of official GA features.
- Limit *int `json:"limit,omitempty"`
+ Limit *int64 `json:"limit,omitempty"`
}
func (s *MappingLimitSettingsDimensionFields) UnmarshalJSON(data []byte) error {
@@ -56,18 +56,17 @@ func (s *MappingLimitSettingsDimensionFields) UnmarshalJSON(data []byte) error {
switch t {
case "limit":
-
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.Atoi(v)
+ value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
return fmt.Errorf("%s | %w", "Limit", err)
}
s.Limit = &value
case float64:
- f := int(v)
+ f := int64(v)
s.Limit = &f
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsfieldnamelength.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsfieldnamelength.go
index d8e2c31567..3808414b4e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsfieldnamelength.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsfieldnamelength.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MappingLimitSettingsFieldNameLength type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L462-L469
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L462-L469
type MappingLimitSettingsFieldNameLength struct {
// Limit Setting for the maximum length of a field name. This setting isn’t really
// something that addresses mappings explosion but
@@ -58,7 +58,7 @@ func (s *MappingLimitSettingsFieldNameLength) UnmarshalJSON(data []byte) error {
switch t {
case "limit":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsnestedfields.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsnestedfields.go
index 23351fd39b..f19bec1353 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsnestedfields.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsnestedfields.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,14 +31,14 @@ import (
// MappingLimitSettingsNestedFields type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L443-L451
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L443-L451
type MappingLimitSettingsNestedFields struct {
// Limit The maximum number of distinct nested mappings in an index. The nested type
// should only be used in special cases, when
// arrays of objects need to be queried independently of each other. To
// safeguard against poorly designed mappings, this
// setting limits the number of unique nested types per index.
- Limit *int `json:"limit,omitempty"`
+ Limit *int64 `json:"limit,omitempty"`
}
func (s *MappingLimitSettingsNestedFields) UnmarshalJSON(data []byte) error {
@@ -57,18 +57,17 @@ func (s *MappingLimitSettingsNestedFields) UnmarshalJSON(data []byte) error {
switch t {
case "limit":
-
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.Atoi(v)
+ value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
return fmt.Errorf("%s | %w", "Limit", err)
}
s.Limit = &value
case float64:
- f := int(v)
+ f := int64(v)
s.Limit = &f
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsnestedobjects.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsnestedobjects.go
index 4d00346d53..a77fa7a105 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsnestedobjects.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingsnestedobjects.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,13 +31,13 @@ import (
// MappingLimitSettingsNestedObjects type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L453-L460
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L453-L460
type MappingLimitSettingsNestedObjects struct {
// Limit The maximum number of nested JSON objects that a single document can contain
// across all nested types. This limit helps
// to prevent out of memory errors when a document contains too many nested
// objects.
- Limit *int `json:"limit,omitempty"`
+ Limit *int64 `json:"limit,omitempty"`
}
func (s *MappingLimitSettingsNestedObjects) UnmarshalJSON(data []byte) error {
@@ -56,18 +56,17 @@ func (s *MappingLimitSettingsNestedObjects) UnmarshalJSON(data []byte) error {
switch t {
case "limit":
-
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.Atoi(v)
+ value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
return fmt.Errorf("%s | %w", "Limit", err)
}
s.Limit = &value
case float64:
- f := int(v)
+ f := int64(v)
s.Limit = &f
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingstotalfields.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingstotalfields.go
index 061b584a0c..ac02a7ad4a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingstotalfields.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappinglimitsettingstotalfields.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MappingLimitSettingsTotalFields type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L424-L432
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L424-L432
type MappingLimitSettingsTotalFields struct {
// Limit The maximum number of fields in an index. Field and object mappings, as well
// as field aliases count towards this limit.
@@ -39,7 +39,7 @@ type MappingLimitSettingsTotalFields struct {
// large. Higher values can lead to performance
// degradations and memory issues, especially in clusters with a high load or
// few resources.
- Limit *int `json:"limit,omitempty"`
+ Limit *int64 `json:"limit,omitempty"`
}
func (s *MappingLimitSettingsTotalFields) UnmarshalJSON(data []byte) error {
@@ -58,18 +58,17 @@ func (s *MappingLimitSettingsTotalFields) UnmarshalJSON(data []byte) error {
switch t {
case "limit":
-
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.Atoi(v)
+ value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
return fmt.Errorf("%s | %w", "Limit", err)
}
s.Limit = &value
case float64:
- f := int(v)
+ f := int64(v)
s.Limit = &f
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappingstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappingstats.go
index 1945b073bc..70ed02cc5e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappingstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mappingstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MappingStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L186-L190
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L186-L190
type MappingStats struct {
TotalCount int64 `json:"total_count"`
TotalEstimatedOverhead ByteSize `json:"total_estimated_overhead,omitempty"`
@@ -54,7 +54,7 @@ func (s *MappingStats) UnmarshalJSON(data []byte) error {
switch t {
case "total_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -74,7 +74,7 @@ func (s *MappingStats) UnmarshalJSON(data []byte) error {
}
case "total_estimated_overhead_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicator.go
index 5a4aadca37..c7b4dcbb5b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicator.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicator.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// MasterIsStableIndicator type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L79-L83
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L79-L83
type MasterIsStableIndicator struct {
Details *MasterIsStableIndicatorDetails `json:"details,omitempty"`
Diagnosis []Diagnosis `json:"diagnosis,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatorclusterformationnode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatorclusterformationnode.go
index 8ae929c036..ff4315c81b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatorclusterformationnode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatorclusterformationnode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MasterIsStableIndicatorClusterFormationNode type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L98-L102
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L98-L102
type MasterIsStableIndicatorClusterFormationNode struct {
ClusterFormationMessage string `json:"cluster_formation_message"`
Name *string `json:"name,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatordetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatordetails.go
index 8a600e7ca3..5e9325c536 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatordetails.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatordetails.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// MasterIsStableIndicatorDetails type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L84-L89
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L84-L89
type MasterIsStableIndicatorDetails struct {
ClusterFormation []MasterIsStableIndicatorClusterFormationNode `json:"cluster_formation,omitempty"`
CurrentMaster IndicatorNode `json:"current_master"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatorexceptionfetchinghistory.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatorexceptionfetchinghistory.go
index 0edc5a700e..3088f4ac3c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatorexceptionfetchinghistory.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterisstableindicatorexceptionfetchinghistory.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MasterIsStableIndicatorExceptionFetchingHistory type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L94-L97
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L94-L97
type MasterIsStableIndicatorExceptionFetchingHistory struct {
Message string `json:"message"`
StackTrace string `json:"stack_trace"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterrecord.go
index 0f3681e979..b6f7cbda30 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/masterrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MasterRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/master/types.ts#L20-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/master/types.ts#L20-L39
type MasterRecord struct {
// Host host name
Host *string `json:"host,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchallquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchallquery.go
index 81a51236e5..b525c18d9e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchallquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchallquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MatchAllQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/MatchAllQuery.ts#L22-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/MatchAllQuery.ts#L22-L22
type MatchAllQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -58,7 +58,7 @@ func (s *MatchAllQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchboolprefixquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchboolprefixquery.go
index 24869dc32a..8724fdd72d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchboolprefixquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchboolprefixquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// MatchBoolPrefixQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L349-L403
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L349-L403
type MatchBoolPrefixQuery struct {
// Analyzer Analyzer used to convert the text in the query value into tokens.
Analyzer *string `json:"analyzer,omitempty"`
@@ -113,7 +113,7 @@ func (s *MatchBoolPrefixQuery) UnmarshalJSON(data []byte) error {
s.Analyzer = &o
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -139,7 +139,7 @@ func (s *MatchBoolPrefixQuery) UnmarshalJSON(data []byte) error {
}
case "fuzzy_transpositions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -154,7 +154,7 @@ func (s *MatchBoolPrefixQuery) UnmarshalJSON(data []byte) error {
case "max_expansions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -180,7 +180,7 @@ func (s *MatchBoolPrefixQuery) UnmarshalJSON(data []byte) error {
case "prefix_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchedfield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchedfield.go
index 769368d09e..07808e9416 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchedfield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchedfield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MatchedField type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/text_structure/test_grok_pattern/types.ts#L23-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/test_grok_pattern/types.ts#L23-L27
type MatchedField struct {
Length int `json:"length"`
Match string `json:"match"`
@@ -55,7 +55,7 @@ func (s *MatchedField) UnmarshalJSON(data []byte) error {
case "length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *MatchedField) UnmarshalJSON(data []byte) error {
case "offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchedtext.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchedtext.go
index 4f1ff83334..412691accf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchedtext.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchedtext.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MatchedText type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/text_structure/test_grok_pattern/types.ts#L29-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/test_grok_pattern/types.ts#L29-L32
type MatchedText struct {
Fields map[string][]MatchedField `json:"fields,omitempty"`
Matched bool `json:"matched"`
@@ -61,7 +61,7 @@ func (s *MatchedText) UnmarshalJSON(data []byte) error {
}
case "matched":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchnonequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchnonequery.go
index 337b6d6813..37fd4072aa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchnonequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchnonequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MatchNoneQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/MatchNoneQuery.ts#L22-L22
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/MatchNoneQuery.ts#L22-L22
type MatchNoneQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -58,7 +58,7 @@ func (s *MatchNoneQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchonlytextproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchonlytextproperty.go
index fa6dc647fd..b74e32dd8a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchonlytextproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchonlytextproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MatchOnlyTextProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L216-L241
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L218-L243
type MatchOnlyTextProperty struct {
// CopyTo Allows you to copy the values of multiple fields into a group
// field, which can then be queried as a single field.
@@ -83,7 +83,7 @@ func (s *MatchOnlyTextProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -374,6 +374,12 @@ func (s *MatchOnlyTextProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchphraseprefixquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchphraseprefixquery.go
index a767680c28..8efcfdfada 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchphraseprefixquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchphraseprefixquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// MatchPhrasePrefixQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L428-L454
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L428-L454
type MatchPhrasePrefixQuery struct {
// Analyzer Analyzer used to convert text in the query value into tokens.
Analyzer *string `json:"analyzer,omitempty"`
@@ -93,7 +93,7 @@ func (s *MatchPhrasePrefixQuery) UnmarshalJSON(data []byte) error {
s.Analyzer = &o
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -110,7 +110,7 @@ func (s *MatchPhrasePrefixQuery) UnmarshalJSON(data []byte) error {
case "max_expansions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +150,7 @@ func (s *MatchPhrasePrefixQuery) UnmarshalJSON(data []byte) error {
case "slop":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchphrasequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchphrasequery.go
index 1837c1028b..3ff72530b0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchphrasequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchphrasequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// MatchPhraseQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L405-L426
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L405-L426
type MatchPhraseQuery struct {
// Analyzer Analyzer used to convert the text in the query value into tokens.
Analyzer *string `json:"analyzer,omitempty"`
@@ -90,7 +90,7 @@ func (s *MatchPhraseQuery) UnmarshalJSON(data []byte) error {
s.Analyzer = &o
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -131,7 +131,7 @@ func (s *MatchPhraseQuery) UnmarshalJSON(data []byte) error {
case "slop":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchquery.go
index 104aa2253f..ddf4bfe29f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matchquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// MatchQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L282-L347
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L282-L347
type MatchQuery struct {
// Analyzer Analyzer used to convert the text in the query value into tokens.
Analyzer *string `json:"analyzer,omitempty"`
@@ -111,7 +111,7 @@ func (s *MatchQuery) UnmarshalJSON(data []byte) error {
s.Analyzer = &o
case "auto_generate_synonyms_phrase_query":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *MatchQuery) UnmarshalJSON(data []byte) error {
}
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -141,7 +141,7 @@ func (s *MatchQuery) UnmarshalJSON(data []byte) error {
}
case "cutoff_frequency":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -167,7 +167,7 @@ func (s *MatchQuery) UnmarshalJSON(data []byte) error {
}
case "fuzzy_transpositions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -181,7 +181,7 @@ func (s *MatchQuery) UnmarshalJSON(data []byte) error {
}
case "lenient":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -196,7 +196,7 @@ func (s *MatchQuery) UnmarshalJSON(data []byte) error {
case "max_expansions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -222,7 +222,7 @@ func (s *MatchQuery) UnmarshalJSON(data []byte) error {
case "prefix_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixaggregation.go
index e332c41258..16cd928d42 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,20 +26,17 @@ import (
"errors"
"fmt"
"io"
- "strconv"
)
// MatrixAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/matrix.ts#L26-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/matrix.ts#L26-L36
type MatrixAggregation struct {
// Fields An array of fields for computing the statistics.
Fields []string `json:"fields,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
// Missing The value to apply to documents that do not have a value.
// By default, documents without a value are ignored.
Missing map[string]Float64 `json:"missing,omitempty"`
- Name *string `json:"name,omitempty"`
}
func (s *MatrixAggregation) UnmarshalJSON(data []byte) error {
@@ -73,11 +70,6 @@ func (s *MatrixAggregation) UnmarshalJSON(data []byte) error {
}
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "missing":
if s.Missing == nil {
s.Missing = make(map[string]Float64, 0)
@@ -86,18 +78,6 @@ func (s *MatrixAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Missing", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixstatsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixstatsaggregate.go
index d8e8ae5d43..56b5736ffd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixstatsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixstatsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MatrixStatsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L757-L761
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L757-L761
type MatrixStatsAggregate struct {
DocCount int64 `json:"doc_count"`
Fields []MatrixStatsFields `json:"fields,omitempty"`
@@ -54,7 +54,7 @@ func (s *MatrixStatsAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixstatsaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixstatsaggregation.go
index 9cb906d52f..a02962ae1b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixstatsaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixstatsaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,24 +26,21 @@ import (
"errors"
"fmt"
"io"
- "strconv"
"github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode"
)
// MatrixStatsAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/matrix.ts#L38-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/matrix.ts#L38-L44
type MatrixStatsAggregation struct {
// Fields An array of fields for computing the statistics.
Fields []string `json:"fields,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
// Missing The value to apply to documents that do not have a value.
// By default, documents without a value are ignored.
Missing map[string]Float64 `json:"missing,omitempty"`
// Mode Array value the aggregation will use for array or multi-valued fields.
Mode *sortmode.SortMode `json:"mode,omitempty"`
- Name *string `json:"name,omitempty"`
}
func (s *MatrixStatsAggregation) UnmarshalJSON(data []byte) error {
@@ -77,11 +74,6 @@ func (s *MatrixStatsAggregation) UnmarshalJSON(data []byte) error {
}
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "missing":
if s.Missing == nil {
s.Missing = make(map[string]Float64, 0)
@@ -95,18 +87,6 @@ func (s *MatrixStatsAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Mode", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixstatsfields.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixstatsfields.go
index 13cf59bdb1..7884eb09ae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixstatsfields.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/matrixstatsfields.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MatrixStatsFields type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L763-L772
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L763-L772
type MatrixStatsFields struct {
Correlation map[string]Float64 `json:"correlation"`
Count int64 `json:"count"`
@@ -67,7 +67,7 @@ func (s *MatrixStatsFields) UnmarshalJSON(data []byte) error {
}
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -90,7 +90,7 @@ func (s *MatrixStatsFields) UnmarshalJSON(data []byte) error {
}
case "kurtosis":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -106,7 +106,7 @@ func (s *MatrixStatsFields) UnmarshalJSON(data []byte) error {
}
case "mean":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -127,7 +127,7 @@ func (s *MatrixStatsFields) UnmarshalJSON(data []byte) error {
}
case "skewness":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -143,7 +143,7 @@ func (s *MatrixStatsFields) UnmarshalJSON(data []byte) error {
}
case "variance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxaggregate.go
index 1b9cdfc9c2..606fd4e9ca 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MaxAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L200-L201
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L200-L201
type MaxAggregate struct {
Meta Metadata `json:"meta,omitempty"`
// Value The metric value. A missing value generally means that there was no data to
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxaggregation.go
index a0a433f25f..1e063fc6ad 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MaxAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L162-L162
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L162-L162
type MaxAggregation struct {
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxbucketaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxbucketaggregation.go
index 6a9baf1521..c2a93c9d9e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxbucketaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/maxbucketaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// MaxBucketAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L224-L224
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L224-L224
type MaxBucketAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,8 +43,6 @@ type MaxBucketAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
}
func (s *MaxBucketAggregation) UnmarshalJSON(data []byte) error {
@@ -84,23 +82,6 @@ func (s *MaxBucketAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/medianabsolutedeviationaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/medianabsolutedeviationaggregate.go
index 462cd992b8..67ea0396d0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/medianabsolutedeviationaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/medianabsolutedeviationaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MedianAbsoluteDeviationAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L194-L195
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L194-L195
type MedianAbsoluteDeviationAggregate struct {
Meta Metadata `json:"meta,omitempty"`
// Value The metric value. A missing value generally means that there was no data to
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/medianabsolutedeviationaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/medianabsolutedeviationaggregation.go
index 2e07b6803a..c439072c20 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/medianabsolutedeviationaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/medianabsolutedeviationaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MedianAbsoluteDeviationAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L164-L170
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L164-L170
type MedianAbsoluteDeviationAggregation struct {
// Compression Limits the maximum number of nodes used by the underlying TDigest algorithm
// to `20 * compression`, enabling control of memory usage and approximation
@@ -62,7 +62,7 @@ func (s *MedianAbsoluteDeviationAggregation) UnmarshalJSON(data []byte) error {
switch t {
case "compression":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memmlstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memmlstats.go
index 50b31f071f..d0ffeb75a8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memmlstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memmlstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MemMlStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_memory_stats/types.ts#L90-L111
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_memory_stats/types.ts#L90-L111
type MemMlStats struct {
// AnomalyDetectors Amount of native memory set aside for anomaly detection jobs.
AnomalyDetectors ByteSize `json:"anomaly_detectors,omitempty"`
@@ -83,7 +83,7 @@ func (s *MemMlStats) UnmarshalJSON(data []byte) error {
case "anomaly_detectors_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +104,7 @@ func (s *MemMlStats) UnmarshalJSON(data []byte) error {
case "data_frame_analytics_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *MemMlStats) UnmarshalJSON(data []byte) error {
case "max_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -146,7 +146,7 @@ func (s *MemMlStats) UnmarshalJSON(data []byte) error {
case "native_code_overhead_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -167,7 +167,7 @@ func (s *MemMlStats) UnmarshalJSON(data []byte) error {
case "native_inference_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memory.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memory.go
index a57e252fc3..419dee0a52 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memory.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memory.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// Memory type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_memory_stats/types.ts#L25-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_memory_stats/types.ts#L25-L48
type Memory struct {
Attributes map[string]string `json:"attributes"`
EphemeralId string `json:"ephemeral_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memorystats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memorystats.go
index 251e619055..d2f6df77d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memorystats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memorystats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MemoryStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L596-L620
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L596-L620
type MemoryStats struct {
// AdjustedTotalInBytes If the amount of physical memory has been overridden using the
// `es`.`total_memory_bytes` system property then this reports the overridden
@@ -68,7 +68,7 @@ func (s *MemoryStats) UnmarshalJSON(data []byte) error {
switch t {
case "adjusted_total_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *MemoryStats) UnmarshalJSON(data []byte) error {
}
case "free_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -110,7 +110,7 @@ func (s *MemoryStats) UnmarshalJSON(data []byte) error {
s.Resident = &o
case "resident_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -137,7 +137,7 @@ func (s *MemoryStats) UnmarshalJSON(data []byte) error {
s.Share = &o
case "share_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -152,7 +152,7 @@ func (s *MemoryStats) UnmarshalJSON(data []byte) error {
}
case "total_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -179,7 +179,7 @@ func (s *MemoryStats) UnmarshalJSON(data []byte) error {
s.TotalVirtual = &o
case "total_virtual_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -194,7 +194,7 @@ func (s *MemoryStats) UnmarshalJSON(data []byte) error {
}
case "used_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memstats.go
index 1366f2abac..695d279424 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/memstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MemStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/get_memory_stats/types.ts#L65-L88
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/get_memory_stats/types.ts#L65-L88
type MemStats struct {
// AdjustedTotal If the amount of physical memory has been overridden using the
// es.total_memory_bytes system property
@@ -73,7 +73,7 @@ func (s *MemStats) UnmarshalJSON(data []byte) error {
case "adjusted_total_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -99,7 +99,7 @@ func (s *MemStats) UnmarshalJSON(data []byte) error {
case "total_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/merge.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/merge.go
index c498409b27..f82a2215a8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/merge.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/merge.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Merge type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L330-L332
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L330-L332
type Merge struct {
Scheduler *MergeScheduler `json:"scheduler,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mergescheduler.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mergescheduler.go
index 66ac93966f..eb64d2022f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mergescheduler.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mergescheduler.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MergeScheduler type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L334-L337
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L334-L337
type MergeScheduler struct {
MaxMergeCount Stringifiedinteger `json:"max_merge_count,omitempty"`
MaxThreadCount Stringifiedinteger `json:"max_thread_count,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mergesstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mergesstats.go
index c67fc193ed..74a52fe0eb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mergesstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mergesstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MergesStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L161-L178
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L161-L178
type MergesStats struct {
Current int64 `json:"current"`
CurrentDocs int64 `json:"current_docs"`
@@ -67,7 +67,7 @@ func (s *MergesStats) UnmarshalJSON(data []byte) error {
switch t {
case "current":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -82,7 +82,7 @@ func (s *MergesStats) UnmarshalJSON(data []byte) error {
}
case "current_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -109,7 +109,7 @@ func (s *MergesStats) UnmarshalJSON(data []byte) error {
s.CurrentSize = &o
case "current_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -124,7 +124,7 @@ func (s *MergesStats) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -151,7 +151,7 @@ func (s *MergesStats) UnmarshalJSON(data []byte) error {
s.TotalAutoThrottle = &o
case "total_auto_throttle_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -166,7 +166,7 @@ func (s *MergesStats) UnmarshalJSON(data []byte) error {
}
case "total_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -193,7 +193,7 @@ func (s *MergesStats) UnmarshalJSON(data []byte) error {
s.TotalSize = &o
case "total_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/metadata.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/metadata.go
index 1277a59b07..807ee20d27 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/metadata.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/metadata.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,5 +26,5 @@ import (
// Metadata type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L99-L99
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L99-L99
type Metadata map[string]json.RawMessage
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/metrics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/metrics.go
index f7bd59fa94..575a16f60e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/metrics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/metrics.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Metrics type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L76-L76
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L76-L76
type Metrics []string
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mgetoperation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mgetoperation.go
index a0ca42c5f0..9a7ecbc8ca 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mgetoperation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mgetoperation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// MgetOperation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/mget/types.ts#L32-L55
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mget/types.ts#L32-L55
type MgetOperation struct {
// Id_ The unique document ID.
Id_ string `json:"_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mgetresponseitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mgetresponseitem.go
index 1d8deca998..d5baba53a5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mgetresponseitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mgetresponseitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// GetResult
// MultiGetError
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/mget/types.ts#L57-L60
-type MgetResponseItem interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mget/types.ts#L57-L60
+type MgetResponseItem any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/migrationfeatureindexinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/migrationfeatureindexinfo.go
index 2e9e71f690..9d10e00f6c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/migrationfeatureindexinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/migrationfeatureindexinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MigrationFeatureIndexInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L44-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L44-L48
type MigrationFeatureIndexInfo struct {
FailureCause *ErrorCause `json:"failure_cause,omitempty"`
Index string `json:"index"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minaggregate.go
index 8704f6f16c..b97b57faec 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MinAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L197-L198
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L197-L198
type MinAggregate struct {
Meta Metadata `json:"meta,omitempty"`
// Value The metric value. A missing value generally means that there was no data to
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minaggregation.go
index 4d203983a2..43149463c8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MinAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L172-L172
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L172-L172
type MinAggregation struct {
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minbucketaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minbucketaggregation.go
index 650f2da68d..5c5cb15b1d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minbucketaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minbucketaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// MinBucketAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L226-L226
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L226-L226
type MinBucketAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,8 +43,6 @@ type MinBucketAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
}
func (s *MinBucketAggregation) UnmarshalJSON(data []byte) error {
@@ -84,23 +82,6 @@ func (s *MinBucketAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minimallicenseinformation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minimallicenseinformation.go
index 0467903da9..bc6720aa45 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minimallicenseinformation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minimallicenseinformation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// MinimalLicenseInformation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/info/types.ts#L34-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/info/types.ts#L34-L40
type MinimalLicenseInformation struct {
ExpiryDateInMillis int64 `json:"expiry_date_in_millis"`
Mode licensetype.LicenseType `json:"mode"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minimumshouldmatch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minimumshouldmatch.go
index c3c44abc31..b99b798bf9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minimumshouldmatch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/minimumshouldmatch.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// int
// string
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L163-L167
-type MinimumShouldMatch interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L163-L167
+type MinimumShouldMatch any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missing.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missing.go
index 3db8e3a9aa..9aa57f7889 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missing.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missing.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -27,5 +27,5 @@ package types
// Float64
// bool
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/AggregationContainer.ts#L517-L517
-type Missing interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/AggregationContainer.ts#L516-L516
+type Missing any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missingaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missingaggregate.go
index 6d281d5e68..0484f5f34a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missingaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missingaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// MissingAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L483-L484
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L483-L484
type MissingAggregate struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *MissingAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +519,7 @@ func (s *MissingAggregate) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -569,7 +569,7 @@ func (s *MissingAggregate) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -579,7 +579,7 @@ func (s *MissingAggregate) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -596,7 +596,7 @@ func (s *MissingAggregate) UnmarshalJSON(data []byte) error {
func (s MissingAggregate) MarshalJSON() ([]byte, error) {
type opt MissingAggregate
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missingaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missingaggregation.go
index 8aeff7f2de..49dd955780 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missingaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/missingaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,18 +26,15 @@ import (
"errors"
"fmt"
"io"
- "strconv"
)
// MissingAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L572-L578
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L576-L582
type MissingAggregation struct {
// Field The name of the field.
- Field *string `json:"field,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Missing Missing `json:"missing,omitempty"`
- Name *string `json:"name,omitempty"`
+ Field *string `json:"field,omitempty"`
+ Missing Missing `json:"missing,omitempty"`
}
func (s *MissingAggregation) UnmarshalJSON(data []byte) error {
@@ -60,28 +57,11 @@ func (s *MissingAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Field", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "missing":
if err := dec.Decode(&s.Missing); err != nil {
return fmt.Errorf("%s | %w", "Missing", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlcounter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlcounter.go
index cab56d1a94..6310358a22 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlcounter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlcounter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MlCounter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L255-L257
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L255-L257
type MlCounter struct {
Count int64 `json:"count"`
}
@@ -52,7 +52,7 @@ func (s *MlCounter) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldatafeed.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldatafeed.go
index b708f50c36..0249064982 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldatafeed.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldatafeed.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MLDatafeed type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Datafeed.ts#L37-L58
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L36-L57
type MLDatafeed struct {
Aggregations map[string]Aggregations `json:"aggregations,omitempty"`
// Authorization The security privileges that the datafeed uses to run its queries. If Elastic
@@ -124,7 +124,7 @@ func (s *MLDatafeed) UnmarshalJSON(data []byte) error {
case "max_empty_searches":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -163,7 +163,7 @@ func (s *MLDatafeed) UnmarshalJSON(data []byte) error {
case "scroll_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobs.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobs.go
index 8d21fc2578..a399cb3994 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobs.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobs.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// MlDataFrameAnalyticsJobs type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L177-L182
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L177-L182
type MlDataFrameAnalyticsJobs struct {
All_ MlDataFrameAnalyticsJobsCount `json:"_all"`
AnalysisCounts *MlDataFrameAnalyticsJobsAnalysis `json:"analysis_counts,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobsanalysis.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobsanalysis.go
index 9fbc15f3a3..e9fba3ae6e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobsanalysis.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobsanalysis.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MlDataFrameAnalyticsJobsAnalysis type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L184-L188
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L184-L188
type MlDataFrameAnalyticsJobsAnalysis struct {
Classification *int `json:"classification,omitempty"`
OutlierDetection *int `json:"outlier_detection,omitempty"`
@@ -55,7 +55,7 @@ func (s *MlDataFrameAnalyticsJobsAnalysis) UnmarshalJSON(data []byte) error {
case "classification":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *MlDataFrameAnalyticsJobsAnalysis) UnmarshalJSON(data []byte) error {
case "outlier_detection":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *MlDataFrameAnalyticsJobsAnalysis) UnmarshalJSON(data []byte) error {
case "regression":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobscount.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobscount.go
index 605ca89bfa..d80cdfe073 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobscount.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobscount.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MlDataFrameAnalyticsJobsCount type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L194-L196
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L194-L196
type MlDataFrameAnalyticsJobsCount struct {
Count int64 `json:"count"`
}
@@ -52,7 +52,7 @@ func (s *MlDataFrameAnalyticsJobsCount) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobsmemory.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobsmemory.go
index 4797a4c815..d5ff44708f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobsmemory.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mldataframeanalyticsjobsmemory.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// MlDataFrameAnalyticsJobsMemory type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L190-L192
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L190-L192
type MlDataFrameAnalyticsJobsMemory struct {
PeakUsageBytes JobStatistics `json:"peak_usage_bytes"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlfilter.go
index a367e2a116..f41670cd1f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MLFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Filter.ts#L22-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Filter.ts#L22-L29
type MLFilter struct {
// Description A description of the filter.
Description *string `json:"description,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinference.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinference.go
index db09784d80..cfd3f77279 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinference.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinference.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// MlInference type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L198-L206
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L198-L206
type MlInference struct {
Deployments *MlInferenceDeployments `json:"deployments,omitempty"`
IngestProcessors map[string]MlInferenceIngestProcessor `json:"ingest_processors"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencedeployments.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencedeployments.go
index 5417243f7c..06decbcf0f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencedeployments.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencedeployments.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MlInferenceDeployments type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L227-L232
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L227-L232
type MlInferenceDeployments struct {
Count int `json:"count"`
InferenceCounts JobStatistics `json:"inference_counts"`
@@ -56,7 +56,7 @@ func (s *MlInferenceDeployments) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencedeploymentstimems.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencedeploymentstimems.go
index 4f3baf6ff4..f58c572b7d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencedeploymentstimems.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencedeploymentstimems.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MlInferenceDeploymentsTimeMs type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L234-L236
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L234-L236
type MlInferenceDeploymentsTimeMs struct {
Avg Float64 `json:"avg"`
}
@@ -52,7 +52,7 @@ func (s *MlInferenceDeploymentsTimeMs) UnmarshalJSON(data []byte) error {
switch t {
case "avg":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferenceingestprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferenceingestprocessor.go
index 9baf4c924a..31586d8ecc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferenceingestprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferenceingestprocessor.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// MlInferenceIngestProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L208-L213
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L208-L213
type MlInferenceIngestProcessor struct {
NumDocsProcessed MlInferenceIngestProcessorCount `json:"num_docs_processed"`
NumFailures MlInferenceIngestProcessorCount `json:"num_failures"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferenceingestprocessorcount.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferenceingestprocessorcount.go
index c16c832261..f2caaa42c0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferenceingestprocessorcount.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferenceingestprocessorcount.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MlInferenceIngestProcessorCount type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L238-L242
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L238-L242
type MlInferenceIngestProcessorCount struct {
Max int64 `json:"max"`
Min int64 `json:"min"`
@@ -54,7 +54,7 @@ func (s *MlInferenceIngestProcessorCount) UnmarshalJSON(data []byte) error {
switch t {
case "max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -69,7 +69,7 @@ func (s *MlInferenceIngestProcessorCount) UnmarshalJSON(data []byte) error {
}
case "min":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -84,7 +84,7 @@ func (s *MlInferenceIngestProcessorCount) UnmarshalJSON(data []byte) error {
}
case "sum":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencetrainedmodels.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencetrainedmodels.go
index 4210e7a565..278d065e43 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencetrainedmodels.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencetrainedmodels.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// MlInferenceTrainedModels type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L215-L225
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L215-L225
type MlInferenceTrainedModels struct {
All_ MlCounter `json:"_all"`
Count *MlInferenceTrainedModelsCount `json:"count,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencetrainedmodelscount.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencetrainedmodelscount.go
index 706fdf3ec3..fa5a0b8125 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencetrainedmodelscount.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mlinferencetrainedmodelscount.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MlInferenceTrainedModelsCount type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L244-L253
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L244-L253
type MlInferenceTrainedModelsCount struct {
Classification *int64 `json:"classification,omitempty"`
Ner *int64 `json:"ner,omitempty"`
@@ -59,7 +59,7 @@ func (s *MlInferenceTrainedModelsCount) UnmarshalJSON(data []byte) error {
switch t {
case "classification":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -74,7 +74,7 @@ func (s *MlInferenceTrainedModelsCount) UnmarshalJSON(data []byte) error {
}
case "ner":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -89,7 +89,7 @@ func (s *MlInferenceTrainedModelsCount) UnmarshalJSON(data []byte) error {
}
case "other":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +104,7 @@ func (s *MlInferenceTrainedModelsCount) UnmarshalJSON(data []byte) error {
}
case "pass_through":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -119,7 +119,7 @@ func (s *MlInferenceTrainedModelsCount) UnmarshalJSON(data []byte) error {
}
case "prepackaged":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -134,7 +134,7 @@ func (s *MlInferenceTrainedModelsCount) UnmarshalJSON(data []byte) error {
}
case "regression":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -149,7 +149,7 @@ func (s *MlInferenceTrainedModelsCount) UnmarshalJSON(data []byte) error {
}
case "text_embedding":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -164,7 +164,7 @@ func (s *MlInferenceTrainedModelsCount) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mljobforecasts.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mljobforecasts.go
index 41ebceb07f..d1b3dc8aed 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mljobforecasts.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mljobforecasts.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MlJobForecasts type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L172-L175
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L172-L175
type MlJobForecasts struct {
ForecastedJobs int64 `json:"forecasted_jobs"`
Total int64 `json:"total"`
@@ -53,7 +53,7 @@ func (s *MlJobForecasts) UnmarshalJSON(data []byte) error {
switch t {
case "forecasted_jobs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -68,7 +68,7 @@ func (s *MlJobForecasts) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelconfig.go
index ca70e6b296..d363b6005d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ModelConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/inference/_types/Services.ts#L23-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Services.ts#L23-L39
type ModelConfig struct {
// Service The service type
Service string `json:"service"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelconfigcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelconfigcontainer.go
index 721e80e725..8ead34121e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelconfigcontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelconfigcontainer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// ModelConfigContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/inference/_types/Services.ts#L41-L53
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Services.ts#L41-L53
type ModelConfigContainer struct {
// ModelId The model Id
ModelId string `json:"model_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelplotconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelplotconfig.go
index 49bf780878..7d9b11c7f7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelplotconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelplotconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ModelPlotConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/ModelPlot.ts#L23-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/ModelPlot.ts#L23-L42
type ModelPlotConfig struct {
// AnnotationsEnabled If true, enables calculation and storage of the model change annotations for
// each entity that is being analyzed.
@@ -62,7 +62,7 @@ func (s *ModelPlotConfig) UnmarshalJSON(data []byte) error {
switch t {
case "annotations_enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -76,7 +76,7 @@ func (s *ModelPlotConfig) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelsizestats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelsizestats.go
index 421e2ae8d9..a6557b7135 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelsizestats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelsizestats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// ModelSizeStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Model.ts#L59-L81
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Model.ts#L59-L81
type ModelSizeStats struct {
AssignmentMemoryBasis *string `json:"assignment_memory_basis,omitempty"`
BucketAllocationFailuresCount int64 `json:"bucket_allocation_failures_count"`
@@ -87,7 +87,7 @@ func (s *ModelSizeStats) UnmarshalJSON(data []byte) error {
s.AssignmentMemoryBasis = &o
case "bucket_allocation_failures_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,7 +108,7 @@ func (s *ModelSizeStats) UnmarshalJSON(data []byte) error {
case "categorized_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -124,7 +124,7 @@ func (s *ModelSizeStats) UnmarshalJSON(data []byte) error {
case "dead_category_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -140,7 +140,7 @@ func (s *ModelSizeStats) UnmarshalJSON(data []byte) error {
case "failed_category_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -156,7 +156,7 @@ func (s *ModelSizeStats) UnmarshalJSON(data []byte) error {
case "frequent_category_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -207,7 +207,7 @@ func (s *ModelSizeStats) UnmarshalJSON(data []byte) error {
case "rare_category_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -234,7 +234,7 @@ func (s *ModelSizeStats) UnmarshalJSON(data []byte) error {
s.ResultType = o
case "timestamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -249,7 +249,7 @@ func (s *ModelSizeStats) UnmarshalJSON(data []byte) error {
}
case "total_by_field_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -265,7 +265,7 @@ func (s *ModelSizeStats) UnmarshalJSON(data []byte) error {
case "total_category_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -280,7 +280,7 @@ func (s *ModelSizeStats) UnmarshalJSON(data []byte) error {
}
case "total_over_field_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -295,7 +295,7 @@ func (s *ModelSizeStats) UnmarshalJSON(data []byte) error {
}
case "total_partition_field_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelsnapshot.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelsnapshot.go
index edae57173f..14dd80f3c6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelsnapshot.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelsnapshot.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ModelSnapshot type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Model.ts#L25-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Model.ts#L25-L46
type ModelSnapshot struct {
// Description An optional description of the job.
Description *string `json:"description,omitempty"`
@@ -92,7 +92,7 @@ func (s *ModelSnapshot) UnmarshalJSON(data []byte) error {
case "latest_record_time_stamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,7 +108,7 @@ func (s *ModelSnapshot) UnmarshalJSON(data []byte) error {
case "latest_result_time_stamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -133,7 +133,7 @@ func (s *ModelSnapshot) UnmarshalJSON(data []byte) error {
}
case "retain":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -147,7 +147,7 @@ func (s *ModelSnapshot) UnmarshalJSON(data []byte) error {
}
case "snapshot_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -167,7 +167,7 @@ func (s *ModelSnapshot) UnmarshalJSON(data []byte) error {
}
case "timestamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelsnapshotupgrade.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelsnapshotupgrade.go
index fad465bf94..13e962143b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelsnapshotupgrade.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/modelsnapshotupgrade.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// ModelSnapshotUpgrade type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Model.ts#L48-L57
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Model.ts#L48-L57
type ModelSnapshotUpgrade struct {
AssignmentExplanation string `json:"assignment_explanation"`
JobId string `json:"job_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/monitoring.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/monitoring.go
index a0c6b96df3..99556dcd6d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/monitoring.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/monitoring.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Monitoring type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L381-L384
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L381-L384
type Monitoring struct {
Available bool `json:"available"`
CollectionEnabled bool `json:"collection_enabled"`
@@ -55,7 +55,7 @@ func (s *Monitoring) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -69,7 +69,7 @@ func (s *Monitoring) UnmarshalJSON(data []byte) error {
}
case "collection_enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *Monitoring) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/morelikethisquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/morelikethisquery.go
index 7a637f35d5..2c8e8923d5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/morelikethisquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/morelikethisquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// MoreLikeThisQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L78-L163
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L78-L160
type MoreLikeThisQuery struct {
// Analyzer The analyzer that is used to analyze the free form text.
// Defaults to the analyzer associated with the first field in fields.
@@ -80,10 +80,8 @@ type MoreLikeThisQuery struct {
// MinimumShouldMatch After the disjunctive query has been formed, this parameter controls the
// number of terms that must match.
MinimumShouldMatch MinimumShouldMatch `json:"minimum_should_match,omitempty"`
- // PerFieldAnalyzer Overrides the default analyzer.
- PerFieldAnalyzer map[string]string `json:"per_field_analyzer,omitempty"`
- QueryName_ *string `json:"_name,omitempty"`
- Routing *string `json:"routing,omitempty"`
+ QueryName_ *string `json:"_name,omitempty"`
+ Routing *string `json:"routing,omitempty"`
// StopWords An array of stop words.
// Any word in this set is ignored.
StopWords []string `json:"stop_words,omitempty"`
@@ -122,7 +120,7 @@ func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte) error {
s.Analyzer = &o
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +136,7 @@ func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte) error {
}
case "boost_terms":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -154,7 +152,7 @@ func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte) error {
}
case "fail_on_unsupported_field":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -173,7 +171,7 @@ func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte) error {
}
case "include":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -204,7 +202,7 @@ func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte) error {
case "max_doc_freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -220,7 +218,7 @@ func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte) error {
case "max_query_terms":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -236,7 +234,7 @@ func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte) error {
case "max_word_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -252,7 +250,7 @@ func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte) error {
case "min_doc_freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -268,7 +266,7 @@ func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte) error {
case "min_term_freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -284,7 +282,7 @@ func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte) error {
case "min_word_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -303,14 +301,6 @@ func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "MinimumShouldMatch", err)
}
- case "per_field_analyzer":
- if s.PerFieldAnalyzer == nil {
- s.PerFieldAnalyzer = make(map[string]string, 0)
- }
- if err := dec.Decode(&s.PerFieldAnalyzer); err != nil {
- return fmt.Errorf("%s | %w", "PerFieldAnalyzer", err)
- }
-
case "_name":
var tmp json.RawMessage
if err := dec.Decode(&tmp); err != nil {
@@ -377,9 +367,7 @@ func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte) error {
// NewMoreLikeThisQuery returns a MoreLikeThisQuery.
func NewMoreLikeThisQuery() *MoreLikeThisQuery {
- r := &MoreLikeThisQuery{
- PerFieldAnalyzer: make(map[string]string, 0),
- }
+ r := &MoreLikeThisQuery{}
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mountedsnapshot.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mountedsnapshot.go
index b63ea1c222..40f04b1773 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mountedsnapshot.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mountedsnapshot.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MountedSnapshot type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/searchable_snapshots/mount/types.ts#L23-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/mount/types.ts#L23-L27
type MountedSnapshot struct {
Indices []string `json:"indices"`
Shards ShardStatistics `json:"shards"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/movingaverageaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/movingaverageaggregation.go
index 7deceb080f..bd76e97a9f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/movingaverageaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/movingaverageaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -28,5 +28,5 @@ package types
// HoltMovingAverageAggregation
// HoltWintersMovingAverageAggregation
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L228-L234
-type MovingAverageAggregation interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L228-L234
+type MovingAverageAggregation any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/movingfunctionaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/movingfunctionaggregation.go
index ada3149860..267a5d529d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/movingfunctionaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/movingfunctionaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// MovingFunctionAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L288-L303
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L288-L303
type MovingFunctionAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,8 +43,6 @@ type MovingFunctionAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
// Script The script that should be executed on each window of data.
Script *string `json:"script,omitempty"`
// Shift By default, the window consists of the last n values excluding the current
@@ -93,23 +91,6 @@ func (s *MovingFunctionAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "script":
var tmp json.RawMessage
if err := dec.Decode(&tmp); err != nil {
@@ -124,7 +105,7 @@ func (s *MovingFunctionAggregation) UnmarshalJSON(data []byte) error {
case "shift":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -140,7 +121,7 @@ func (s *MovingFunctionAggregation) UnmarshalJSON(data []byte) error {
case "window":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/movingpercentilesaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/movingpercentilesaggregation.go
index 4b70951624..36c525ad81 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/movingpercentilesaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/movingpercentilesaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// MovingPercentilesAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L305-L317
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L305-L317
type MovingPercentilesAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -44,8 +44,6 @@ type MovingPercentilesAggregation struct {
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
Keyed *bool `json:"keyed,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
// Shift By default, the window consists of the last n values excluding the current
// bucket.
// Increasing `shift` by 1, moves the starting window position by 1 to the
@@ -93,7 +91,7 @@ func (s *MovingPercentilesAggregation) UnmarshalJSON(data []byte) error {
}
case "keyed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -106,26 +104,9 @@ func (s *MovingPercentilesAggregation) UnmarshalJSON(data []byte) error {
s.Keyed = &v
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "shift":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -141,7 +122,7 @@ func (s *MovingPercentilesAggregation) UnmarshalJSON(data []byte) error {
case "window":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/msearchrequestitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/msearchrequestitem.go
index 202e41b59c..ad3bda42d0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/msearchrequestitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/msearchrequestitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// MultisearchHeader
// MultisearchBody
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/msearch/types.ts#L47-L50
-type MsearchRequestItem interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/types.ts#L47-L50
+type MsearchRequestItem any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/msearchresponseitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/msearchresponseitem.go
index 965c62befe..ed4cb03a0f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/msearchresponseitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/msearchresponseitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// MultiSearchItem
// ErrorResponseBase
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/msearch/types.ts#L208-L211
-type MsearchResponseItem interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/types.ts#L208-L211
+type MsearchResponseItem any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mtermvectorsoperation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mtermvectorsoperation.go
index 350f4525a4..7dc569c3b5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mtermvectorsoperation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mtermvectorsoperation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// MTermVectorsOperation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/mtermvectors/types.ts#L35-L94
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mtermvectors/types.ts#L35-L94
type MTermVectorsOperation struct {
// Doc An artificial document (a document not present in the index) for which you
// want to retrieve term vectors.
@@ -49,7 +49,7 @@ type MTermVectorsOperation struct {
// Filter Filter terms based on their tf-idf scores.
Filter *TermVectorsFilter `json:"filter,omitempty"`
// Id_ The ID of the document.
- Id_ string `json:"_id"`
+ Id_ *string `json:"_id,omitempty"`
// Index_ The index of the document.
Index_ *string `json:"_index,omitempty"`
// Offsets If `true`, the response includes term offsets.
@@ -89,7 +89,7 @@ func (s *MTermVectorsOperation) UnmarshalJSON(data []byte) error {
}
case "field_statistics":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -134,7 +134,7 @@ func (s *MTermVectorsOperation) UnmarshalJSON(data []byte) error {
}
case "offsets":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -148,7 +148,7 @@ func (s *MTermVectorsOperation) UnmarshalJSON(data []byte) error {
}
case "payloads":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -162,7 +162,7 @@ func (s *MTermVectorsOperation) UnmarshalJSON(data []byte) error {
}
case "positions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -181,7 +181,7 @@ func (s *MTermVectorsOperation) UnmarshalJSON(data []byte) error {
}
case "term_statistics":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseadjacencymatrixbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseadjacencymatrixbucket.go
index b62861d597..db94e9f848 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseadjacencymatrixbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseadjacencymatrixbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseAdjacencyMatrixBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseAdjacencyMatrixBucket struct {
Buckets BucketsAdjacencyMatrixBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasecompositebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasecompositebucket.go
index 4187ee7058..e4b3054773 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasecompositebucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasecompositebucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseCompositeBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseCompositeBucket struct {
Buckets BucketsCompositeBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasedatehistogrambucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasedatehistogrambucket.go
index d3fd954f52..42264cfb06 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasedatehistogrambucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasedatehistogrambucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseDateHistogramBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseDateHistogramBucket struct {
Buckets BucketsDateHistogramBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasedoubletermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasedoubletermsbucket.go
index 5d4afd8b7b..bfa1c5ce01 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasedoubletermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasedoubletermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseDoubleTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseDoubleTermsBucket struct {
Buckets BucketsDoubleTermsBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasefiltersbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasefiltersbucket.go
index 2e982a3864..0d33165cb0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasefiltersbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasefiltersbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseFiltersBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseFiltersBucket struct {
Buckets BucketsFiltersBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasefrequentitemsetsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasefrequentitemsetsbucket.go
index dbb57c35a1..044fa7cde7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasefrequentitemsetsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasefrequentitemsetsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseFrequentItemSetsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseFrequentItemSetsBucket struct {
Buckets BucketsFrequentItemSetsBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeohashgridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeohashgridbucket.go
index 1410482ad2..ac4a4bbcdb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeohashgridbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeohashgridbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseGeoHashGridBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseGeoHashGridBucket struct {
Buckets BucketsGeoHashGridBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeohexgridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeohexgridbucket.go
index 3e3b108761..2217c6fcf3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeohexgridbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeohexgridbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseGeoHexGridBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseGeoHexGridBucket struct {
Buckets BucketsGeoHexGridBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeotilegridbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeotilegridbucket.go
index 8088f62309..7557a34523 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeotilegridbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasegeotilegridbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseGeoTileGridBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseGeoTileGridBucket struct {
Buckets BucketsGeoTileGridBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasehistogrambucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasehistogrambucket.go
index a62f8806e9..f7e002a37b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasehistogrambucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasehistogrambucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseHistogramBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseHistogramBucket struct {
Buckets BucketsHistogramBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseipprefixbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseipprefixbucket.go
index 1d4107ee0e..260d6a1672 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseipprefixbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseipprefixbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseIpPrefixBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseIpPrefixBucket struct {
Buckets BucketsIpPrefixBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseiprangebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseiprangebucket.go
index d3b46d1435..1148f6e5ad 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseiprangebucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaseiprangebucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseIpRangeBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseIpRangeBucket struct {
Buckets BucketsIpRangeBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaselongraretermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaselongraretermsbucket.go
index f774788609..729b486f6a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaselongraretermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaselongraretermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseLongRareTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseLongRareTermsBucket struct {
Buckets BucketsLongRareTermsBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaselongtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaselongtermsbucket.go
index 774a9ad375..a03f1bd056 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaselongtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaselongtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseLongTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseLongTermsBucket struct {
Buckets BucketsLongTermsBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasemultitermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasemultitermsbucket.go
index dee144b066..a32b33a324 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasemultitermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasemultitermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseMultiTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseMultiTermsBucket struct {
Buckets BucketsMultiTermsBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaserangebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaserangebucket.go
index 7bad838fa7..00fb433876 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaserangebucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebaserangebucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseRangeBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseRangeBucket struct {
Buckets BucketsRangeBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasesignificantlongtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasesignificantlongtermsbucket.go
index 81f908cd0a..23d8fd3b70 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasesignificantlongtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasesignificantlongtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseSignificantLongTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseSignificantLongTermsBucket struct {
Buckets BucketsSignificantLongTermsBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasesignificantstringtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasesignificantstringtermsbucket.go
index f9cbb11d1c..c014122afa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasesignificantstringtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasesignificantstringtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseSignificantStringTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseSignificantStringTermsBucket struct {
Buckets BucketsSignificantStringTermsBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasestringraretermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasestringraretermsbucket.go
index 5cd7f1134a..9d290e60c7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasestringraretermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasestringraretermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseStringRareTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseStringRareTermsBucket struct {
Buckets BucketsStringRareTermsBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasestringtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasestringtermsbucket.go
index ca4d827133..8967cc208c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasestringtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasestringtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseStringTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseStringTermsBucket struct {
Buckets BucketsStringTermsBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasevariablewidthhistogrambucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasevariablewidthhistogrambucket.go
index fb1f0d4e4e..c731fba5d4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasevariablewidthhistogrambucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasevariablewidthhistogrambucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseVariableWidthHistogramBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseVariableWidthHistogramBucket struct {
Buckets BucketsVariableWidthHistogramBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasevoid.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasevoid.go
index e5861e10a4..836cf7cf86 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasevoid.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multibucketaggregatebasevoid.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiBucketAggregateBaseVoid type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L327-L329
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L327-L329
type MultiBucketAggregateBaseVoid struct {
Buckets BucketsVoid `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
@@ -59,13 +59,13 @@ func (s *MultiBucketAggregateBaseVoid) UnmarshalJSON(data []byte) error {
localDec := json.NewDecoder(source)
switch rawMsg[0] {
case '{':
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := localDec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Buckets", err)
}
s.Buckets = o
case '[':
- o := []interface{}{}
+ o := []any{}
if err := localDec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Buckets", err)
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multigeterror.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multigeterror.go
index 5d3471be3d..91ecf8ca44 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multigeterror.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multigeterror.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiGetError type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/mget/types.ts#L62-L66
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mget/types.ts#L62-L66
type MultiGetError struct {
Error ErrorCause `json:"error"`
Id_ string `json:"_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multimatchquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multimatchquery.go
index 917eec84f7..6deeec0e0a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multimatchquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multimatchquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// MultiMatchQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L456-L539
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L456-L539
type MultiMatchQuery struct {
// Analyzer Analyzer used to convert the text in the query value into tokens.
Analyzer *string `json:"analyzer,omitempty"`
@@ -116,7 +116,7 @@ func (s *MultiMatchQuery) UnmarshalJSON(data []byte) error {
s.Analyzer = &o
case "auto_generate_synonyms_phrase_query":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -130,7 +130,7 @@ func (s *MultiMatchQuery) UnmarshalJSON(data []byte) error {
}
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -146,7 +146,7 @@ func (s *MultiMatchQuery) UnmarshalJSON(data []byte) error {
}
case "cutoff_frequency":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -188,7 +188,7 @@ func (s *MultiMatchQuery) UnmarshalJSON(data []byte) error {
}
case "fuzzy_transpositions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -202,7 +202,7 @@ func (s *MultiMatchQuery) UnmarshalJSON(data []byte) error {
}
case "lenient":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -217,7 +217,7 @@ func (s *MultiMatchQuery) UnmarshalJSON(data []byte) error {
case "max_expansions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -243,7 +243,7 @@ func (s *MultiMatchQuery) UnmarshalJSON(data []byte) error {
case "prefix_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -283,7 +283,7 @@ func (s *MultiMatchQuery) UnmarshalJSON(data []byte) error {
case "slop":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -298,7 +298,7 @@ func (s *MultiMatchQuery) UnmarshalJSON(data []byte) error {
}
case "tie_breaker":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multiplexertokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multiplexertokenfilter.go
index 473e4d1c3f..6da06268ad 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multiplexertokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multiplexertokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiplexerTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L260-L264
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L262-L266
type MultiplexerTokenFilter struct {
Filters []string `json:"filters"`
PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchbody.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchbody.go
index 9924f92624..fd8144cbf2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchbody.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchbody.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MultisearchBody type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/msearch/types.ts#L70-L201
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/types.ts#L70-L201
type MultisearchBody struct {
Aggregations map[string]Aggregations `json:"aggregations,omitempty"`
Collapse *FieldCollapse `json:"collapse,omitempty"`
@@ -55,7 +55,7 @@ type MultisearchBody struct {
// IndicesBoost Boosts the _score of documents from specified indices.
IndicesBoost []map[string]Float64 `json:"indices_boost,omitempty"`
// Knn Defines the approximate kNN search to run.
- Knn []KnnQuery `json:"knn,omitempty"`
+ Knn []KnnSearch `json:"knn,omitempty"`
// MinScore Minimum _score for matching documents. Documents with a lower _score are
// not included in the search results.
MinScore *Float64 `json:"min_score,omitempty"`
@@ -155,7 +155,7 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error {
}
case "explain":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -183,7 +183,7 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error {
case "from":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -211,7 +211,7 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error {
rawMsg := json.RawMessage{}
dec.Decode(&rawMsg)
if !bytes.HasPrefix(rawMsg, []byte("[")) {
- o := NewKnnQuery()
+ o := NewKnnSearch()
if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Knn", err)
}
@@ -224,7 +224,7 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error {
}
case "min_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -250,7 +250,7 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error {
}
case "profile":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -303,7 +303,7 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error {
}
case "seq_no_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -318,7 +318,7 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -380,7 +380,7 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error {
}
case "terminate_after":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -407,7 +407,7 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error {
s.Timeout = &o
case "track_scores":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -426,7 +426,7 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error {
}
case "version":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchheader.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchheader.go
index f3468e511d..94cf783c3a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchheader.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchheader.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// MultisearchHeader type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/msearch/types.ts#L52-L67
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/types.ts#L52-L67
type MultisearchHeader struct {
AllowNoIndices *bool `json:"allow_no_indices,omitempty"`
AllowPartialSearchResults *bool `json:"allow_partial_search_results,omitempty"`
@@ -65,7 +65,7 @@ func (s *MultisearchHeader) UnmarshalJSON(data []byte) error {
switch t {
case "allow_no_indices":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -79,7 +79,7 @@ func (s *MultisearchHeader) UnmarshalJSON(data []byte) error {
}
case "allow_partial_search_results":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -93,7 +93,7 @@ func (s *MultisearchHeader) UnmarshalJSON(data []byte) error {
}
case "ccs_minimize_roundtrips":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -123,7 +123,7 @@ func (s *MultisearchHeader) UnmarshalJSON(data []byte) error {
}
case "ignore_throttled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -137,7 +137,7 @@ func (s *MultisearchHeader) UnmarshalJSON(data []byte) error {
}
case "ignore_unavailable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -179,7 +179,7 @@ func (s *MultisearchHeader) UnmarshalJSON(data []byte) error {
s.Preference = &o
case "request_cache":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchitem.go
index c0a5989490..5165ae3ab5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// MultiSearchItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/msearch/types.ts#L213-L216
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/types.ts#L213-L216
type MultiSearchItem struct {
Aggregations map[string]Aggregate `json:"aggregations,omitempty"`
Clusters_ *ClusterStatistics `json:"_clusters,omitempty"`
@@ -522,7 +522,7 @@ func (s *MultiSearchItem) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -572,7 +572,7 @@ func (s *MultiSearchItem) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -582,7 +582,7 @@ func (s *MultiSearchItem) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -610,7 +610,7 @@ func (s *MultiSearchItem) UnmarshalJSON(data []byte) error {
}
case "max_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -626,7 +626,7 @@ func (s *MultiSearchItem) UnmarshalJSON(data []byte) error {
}
case "num_reduce_phases":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -662,7 +662,7 @@ func (s *MultiSearchItem) UnmarshalJSON(data []byte) error {
case "status":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -720,7 +720,7 @@ func (s *MultiSearchItem) UnmarshalJSON(data []byte) error {
s.Suggest[elems[1]] = append(s.Suggest[elems[1]], o)
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -730,7 +730,7 @@ func (s *MultiSearchItem) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Suggest")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -740,7 +740,7 @@ func (s *MultiSearchItem) UnmarshalJSON(data []byte) error {
}
case "terminated_early":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -754,7 +754,7 @@ func (s *MultiSearchItem) UnmarshalJSON(data []byte) error {
}
case "timed_out":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -768,7 +768,7 @@ func (s *MultiSearchItem) UnmarshalJSON(data []byte) error {
}
case "took":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchresult.go
index 0c1dbd6c23..63569cc118 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multisearchresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MultiSearchResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/msearch/types.ts#L203-L206
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch/types.ts#L203-L206
type MultiSearchResult struct {
Responses []MsearchResponseItem `json:"responses"`
Took int64 `json:"took"`
@@ -94,7 +94,7 @@ func (s *MultiSearchResult) UnmarshalJSON(data []byte) error {
}
case "took":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermlookup.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermlookup.go
index cb35f08fd6..cd4cee107d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermlookup.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermlookup.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// MultiTermLookup type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L622-L632
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L626-L636
type MultiTermLookup struct {
// Field A fields from which to retrieve terms.
Field string `json:"field"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermsaggregate.go
index 1bad145a8b..bc075aee02 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MultiTermsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L461-L463
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L461-L463
type MultiTermsAggregate struct {
Buckets BucketsMultiTermsBucket `json:"buckets"`
DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`
@@ -76,7 +76,7 @@ func (s *MultiTermsAggregate) UnmarshalJSON(data []byte) error {
}
case "doc_count_error_upper_bound":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *MultiTermsAggregate) UnmarshalJSON(data []byte) error {
}
case "sum_other_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermsaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermsaggregation.go
index 36ed257bc9..c3f1a09655 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermsaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermsaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,14 +34,12 @@ import (
// MultiTermsAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L580-L620
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L584-L624
type MultiTermsAggregation struct {
// CollectMode Specifies the strategy for data collection.
CollectMode *termsaggregationcollectmode.TermsAggregationCollectMode `json:"collect_mode,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
// MinDocCount The minimum number of documents in a bucket for it to be returned.
- MinDocCount *int64 `json:"min_doc_count,omitempty"`
- Name *string `json:"name,omitempty"`
+ MinDocCount *int64 `json:"min_doc_count,omitempty"`
// Order Specifies the sort order of the buckets.
// Defaults to sorting by descending document count.
Order AggregateOrder `json:"order,omitempty"`
@@ -80,13 +78,8 @@ func (s *MultiTermsAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "CollectMode", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "min_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,18 +93,6 @@ func (s *MultiTermsAggregation) UnmarshalJSON(data []byte) error {
s.MinDocCount = &f
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "order":
rawMsg := json.RawMessage{}
@@ -134,7 +115,7 @@ func (s *MultiTermsAggregation) UnmarshalJSON(data []byte) error {
}
case "shard_min_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +131,7 @@ func (s *MultiTermsAggregation) UnmarshalJSON(data []byte) error {
case "shard_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -165,7 +146,7 @@ func (s *MultiTermsAggregation) UnmarshalJSON(data []byte) error {
}
case "show_term_doc_count_error":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -180,7 +161,7 @@ func (s *MultiTermsAggregation) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermsbucket.go
index 05dd34ab6d..dedcf5c47c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/multitermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// MultiTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L465-L469
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L465-L469
type MultiTermsBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -57,7 +57,7 @@ func (s *MultiTermsBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *MultiTermsBucket) UnmarshalJSON(data []byte) error {
}
case "doc_count_error_upper_bound":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -548,7 +548,7 @@ func (s *MultiTermsBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -598,7 +598,7 @@ func (s *MultiTermsBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -608,7 +608,7 @@ func (s *MultiTermsBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -625,7 +625,7 @@ func (s *MultiTermsBucket) UnmarshalJSON(data []byte) error {
func (s MultiTermsBucket) MarshalJSON() ([]byte, error) {
type opt MultiTermsBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/murmur3hashproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/murmur3hashproperty.go
index d4206e3947..6f9add1ed7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/murmur3hashproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/murmur3hashproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// Murmur3HashProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/specialized.ts#L75-L77
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L81-L83
type Murmur3HashProperty struct {
CopyTo []string `json:"copy_to,omitempty"`
DocValues *bool `json:"doc_values,omitempty"`
@@ -80,7 +80,7 @@ func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -105,7 +105,7 @@ func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -396,6 +396,12 @@ func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -407,7 +413,7 @@ func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -436,7 +442,7 @@ func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -727,6 +733,12 @@ func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -749,7 +761,7 @@ func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mutualinformationheuristic.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mutualinformationheuristic.go
index a0c049bc7a..eaa0d9446c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mutualinformationheuristic.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/mutualinformationheuristic.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// MutualInformationHeuristic type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L751-L760
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L755-L764
type MutualInformationHeuristic struct {
// BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a
// different set of documents that you want to compare to.
@@ -57,7 +57,7 @@ func (s *MutualInformationHeuristic) UnmarshalJSON(data []byte) error {
switch t {
case "background_is_superset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *MutualInformationHeuristic) UnmarshalJSON(data []byte) error {
}
case "include_negatives":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/names.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/names.go
index 90dab0df11..675104cc36 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/names.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/names.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Names type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L81-L81
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L81-L81
type Names []string
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nativecode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nativecode.go
index 1e4137d739..a5d96450e4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nativecode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nativecode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NativeCode type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/info/types.ts#L29-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/info/types.ts#L29-L32
type NativeCode struct {
BuildHash string `json:"build_hash"`
Version string `json:"version"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nativecodeinformation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nativecodeinformation.go
index 66c8bbb3d3..530e3ff052 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nativecodeinformation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nativecodeinformation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NativeCodeInformation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/info/types.ts#L29-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/info/types.ts#L29-L32
type NativeCodeInformation struct {
BuildHash string `json:"build_hash"`
Version string `json:"version"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nerinferenceoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nerinferenceoptions.go
index 070a2a3157..f9aa159c4a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nerinferenceoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nerinferenceoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NerInferenceOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L255-L264
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L255-L264
type NerInferenceOptions struct {
// ClassificationLabels The token classification labels. Must be IOB formatted tags
ClassificationLabels []string `json:"classification_labels,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nerinferenceupdateoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nerinferenceupdateoptions.go
index c02e78ed23..0fb703fa3a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nerinferenceupdateoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nerinferenceupdateoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NerInferenceUpdateOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L404-L409
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L404-L409
type NerInferenceUpdateOptions struct {
// ResultsField The field that is added to incoming documents to contain the inference
// prediction. Defaults to predicted_value.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedaggregate.go
index 1cb673d52f..c01815ff21 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// NestedAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L486-L487
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L486-L487
type NestedAggregate struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *NestedAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +519,7 @@ func (s *NestedAggregate) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -569,7 +569,7 @@ func (s *NestedAggregate) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -579,7 +579,7 @@ func (s *NestedAggregate) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -596,7 +596,7 @@ func (s *NestedAggregate) UnmarshalJSON(data []byte) error {
func (s NestedAggregate) MarshalJSON() ([]byte, error) {
type opt NestedAggregate
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedaggregation.go
index 54b1e71f1d..7252b418b9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,15 +26,12 @@ import (
"errors"
"fmt"
"io"
- "strconv"
)
// NestedAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L634-L639
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L638-L643
type NestedAggregation struct {
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
// Path The path to the field of type `nested`.
Path *string `json:"path,omitempty"`
}
@@ -54,23 +51,6 @@ func (s *NestedAggregation) UnmarshalJSON(data []byte) error {
switch t {
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "path":
if err := dec.Decode(&s.Path); err != nil {
return fmt.Errorf("%s | %w", "Path", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedidentity.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedidentity.go
index b238fc3fa4..d160c032e5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedidentity.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedidentity.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NestedIdentity type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/hits.ts#L88-L92
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/hits.ts#L88-L92
type NestedIdentity struct {
Field string `json:"field"`
Nested_ *NestedIdentity `json:"_nested,omitempty"`
@@ -65,7 +65,7 @@ func (s *NestedIdentity) UnmarshalJSON(data []byte) error {
case "offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedproperty.go
index 82674ac44c..26e95dcbfe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// NestedProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/complex.ts#L39-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/complex.ts#L39-L44
type NestedProperty struct {
CopyTo []string `json:"copy_to,omitempty"`
Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
@@ -87,7 +87,7 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -107,7 +107,7 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -398,6 +398,12 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -409,7 +415,7 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -424,7 +430,7 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error {
}
case "include_in_parent":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -438,7 +444,7 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error {
}
case "include_in_root":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -466,7 +472,7 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -757,6 +763,12 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -779,7 +791,7 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedquery.go
index 8d92cde01c..f91418726b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// NestedQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/joining.ts#L106-L130
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/joining.ts#L106-L130
type NestedQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -72,7 +72,7 @@ func (s *NestedQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *NestedQuery) UnmarshalJSON(data []byte) error {
}
case "ignore_unmapped":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedsortvalue.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedsortvalue.go
index 92f1de7ef4..b43971c9bb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedsortvalue.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nestedsortvalue.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NestedSortValue type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/sort.ts#L30-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L30-L35
type NestedSortValue struct {
Filter *Query `json:"filter,omitempty"`
MaxChildren *int `json:"max_children,omitempty"`
@@ -61,7 +61,7 @@ func (s *NestedSortValue) UnmarshalJSON(data []byte) error {
case "max_children":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nevercondition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nevercondition.go
index 9bfffe614b..910a98d7b5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nevercondition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nevercondition.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NeverCondition type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Conditions.ts#L69-L69
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L69-L69
type NeverCondition struct {
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ngramtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ngramtokenfilter.go
index 56543869da..9412ae255d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ngramtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ngramtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NGramTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L266-L271
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L268-L273
type NGramTokenFilter struct {
MaxGram *int `json:"max_gram,omitempty"`
MinGram *int `json:"min_gram,omitempty"`
@@ -57,7 +57,7 @@ func (s *NGramTokenFilter) UnmarshalJSON(data []byte) error {
case "max_gram":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -73,7 +73,7 @@ func (s *NGramTokenFilter) UnmarshalJSON(data []byte) error {
case "min_gram":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ngramtokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ngramtokenizer.go
index 5d45642915..b213f1743f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ngramtokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ngramtokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// NGramTokenizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L39-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L39-L45
type NGramTokenizer struct {
CustomTokenChars *string `json:"custom_token_chars,omitempty"`
MaxGram int `json:"max_gram"`
@@ -72,7 +72,7 @@ func (s *NGramTokenizer) UnmarshalJSON(data []byte) error {
case "max_gram":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *NGramTokenizer) UnmarshalJSON(data []byte) error {
case "min_gram":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nlpberttokenizationconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nlpberttokenizationconfig.go
index 96ba6436dd..206ee378fe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nlpberttokenizationconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nlpberttokenizationconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// NlpBertTokenizationConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L131-L158
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L131-L158
type NlpBertTokenizationConfig struct {
// DoLowerCase Should the tokenizer lower case the text
DoLowerCase *bool `json:"do_lower_case,omitempty"`
@@ -65,7 +65,7 @@ func (s *NlpBertTokenizationConfig) UnmarshalJSON(data []byte) error {
switch t {
case "do_lower_case":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -80,7 +80,7 @@ func (s *NlpBertTokenizationConfig) UnmarshalJSON(data []byte) error {
case "max_sequence_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *NlpBertTokenizationConfig) UnmarshalJSON(data []byte) error {
case "span":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -116,7 +116,7 @@ func (s *NlpBertTokenizationConfig) UnmarshalJSON(data []byte) error {
}
case "with_special_tokens":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nlprobertatokenizationconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nlprobertatokenizationconfig.go
index 05f2a91d01..2dcea667c2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nlprobertatokenizationconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nlprobertatokenizationconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// NlpRobertaTokenizationConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L160-L187
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L160-L187
type NlpRobertaTokenizationConfig struct {
// AddPrefixSpace Should the tokenizer prefix input with a space character
AddPrefixSpace *bool `json:"add_prefix_space,omitempty"`
@@ -65,7 +65,7 @@ func (s *NlpRobertaTokenizationConfig) UnmarshalJSON(data []byte) error {
switch t {
case "add_prefix_space":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -80,7 +80,7 @@ func (s *NlpRobertaTokenizationConfig) UnmarshalJSON(data []byte) error {
case "max_sequence_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *NlpRobertaTokenizationConfig) UnmarshalJSON(data []byte) error {
case "span":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -116,7 +116,7 @@ func (s *NlpRobertaTokenizationConfig) UnmarshalJSON(data []byte) error {
}
case "with_special_tokens":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nlptokenizationupdateoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nlptokenizationupdateoptions.go
index d457f1a676..981ce8165b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nlptokenizationupdateoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nlptokenizationupdateoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// NlpTokenizationUpdateOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L356-L361
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L356-L361
type NlpTokenizationUpdateOptions struct {
// Span Span options to apply
Span *int `json:"span,omitempty"`
@@ -58,7 +58,7 @@ func (s *NlpTokenizationUpdateOptions) UnmarshalJSON(data []byte) error {
case "span":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/node.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/node.go
index 9958aec094..c8d464b988 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/node.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/node.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Node type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/searchable_snapshots/cache_stats/Response.ts#L30-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/cache_stats/Response.ts#L30-L32
type Node struct {
SharedCache Shared `json:"shared_cache"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeallocationexplanation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeallocationexplanation.go
index 5096c1f1b6..148dfe5ccb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeallocationexplanation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeallocationexplanation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// NodeAllocationExplanation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/allocation_explain/types.ts#L97-L106
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L97-L106
type NodeAllocationExplanation struct {
Deciders []AllocationDecision `json:"deciders"`
NodeAttributes map[string]string `json:"node_attributes"`
@@ -100,7 +100,7 @@ func (s *NodeAllocationExplanation) UnmarshalJSON(data []byte) error {
case "weight_ranking":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeattributes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeattributes.go
index cd6aaa8e78..1ddfb4e52c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeattributes.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeattributes.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// NodeAttributes type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Node.ts#L41-L58
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Node.ts#L41-L58
type NodeAttributes struct {
// Attributes Lists node attributes.
Attributes map[string]string `json:"attributes"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeattributesrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeattributesrecord.go
index 1805ef8482..135d174262 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeattributesrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeattributesrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeAttributesRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/nodeattrs/types.ts#L20-L55
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/nodeattrs/types.ts#L20-L55
type NodeAttributesRecord struct {
// Attr The attribute name.
Attr *string `json:"attr,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodebufferpool.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodebufferpool.go
index 2402231f12..eda8294327 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodebufferpool.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodebufferpool.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeBufferPool type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L788-L809
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L788-L809
type NodeBufferPool struct {
// Count Number of buffer pools.
Count *int64 `json:"count,omitempty"`
@@ -61,7 +61,7 @@ func (s *NodeBufferPool) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *NodeBufferPool) UnmarshalJSON(data []byte) error {
s.TotalCapacity = &o
case "total_capacity_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -115,7 +115,7 @@ func (s *NodeBufferPool) UnmarshalJSON(data []byte) error {
s.Used = &o
case "used_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodediskusage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodediskusage.go
index f875c95307..858dba8c95 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodediskusage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodediskusage.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// NodeDiskUsage type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/allocation_explain/types.ts#L56-L60
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L56-L60
type NodeDiskUsage struct {
LeastAvailable DiskUsage `json:"least_available"`
MostAvailable DiskUsage `json:"most_available"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeids.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeids.go
index 3d2974e392..6695bdefc3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeids.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeids.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodeIds type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L64-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L64-L64
type NodeIds []string
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfo.go
index 0025bde89b..a4dd926236 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// NodeInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L31-L67
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L31-L67
type NodeInfo struct {
Aggregations map[string]NodeInfoAggregation `json:"aggregations,omitempty"`
Attributes map[string]string `json:"attributes"`
@@ -212,7 +212,7 @@ func (s *NodeInfo) UnmarshalJSON(data []byte) error {
}
case "total_indexing_buffer":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoaction.go
index 1b4ee1aa4b..32dfda1e14 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L181-L183
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L181-L183
type NodeInfoAction struct {
DestructiveRequiresName string `json:"destructive_requires_name"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoaggregation.go
index dc408e7230..a690588390 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoaggregation.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodeInfoAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L232-L234
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L232-L234
type NodeInfoAggregation struct {
Types []string `json:"types"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfobootstrap.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfobootstrap.go
index 07dae210e8..bdaeeaccd5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfobootstrap.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfobootstrap.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoBootstrap type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L201-L203
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L201-L203
type NodeInfoBootstrap struct {
MemoryLock string `json:"memory_lock"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoclient.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoclient.go
index 4922a81cc2..9505ee64db 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoclient.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoclient.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoClient type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L185-L187
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L185-L187
type NodeInfoClient struct {
Type string `json:"type"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfodiscover.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfodiscover.go
index 4809f497c8..f574ce68ee 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfodiscover.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfodiscover.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoDiscover type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L173-L179
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L173-L179
type NodeInfoDiscover struct {
NodeInfoDiscover map[string]json.RawMessage `json:"-"`
SeedHosts []string `json:"seed_hosts,omitempty"`
@@ -98,7 +98,7 @@ func (s *NodeInfoDiscover) UnmarshalJSON(data []byte) error {
func (s NodeInfoDiscover) MarshalJSON() ([]byte, error) {
type opt NodeInfoDiscover
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfohttp.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfohttp.go
index 1f135a8a06..5549914ee1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfohttp.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfohttp.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoHttp type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L303-L308
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L303-L308
type NodeInfoHttp struct {
BoundAddress []string `json:"bound_address"`
MaxContentLength ByteSize `json:"max_content_length,omitempty"`
@@ -65,7 +65,7 @@ func (s *NodeInfoHttp) UnmarshalJSON(data []byte) error {
}
case "max_content_length_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingest.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingest.go
index aaf315adec..fb7888d5f7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingest.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingest.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodeInfoIngest type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L224-L226
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L224-L226
type NodeInfoIngest struct {
Processors []NodeInfoIngestProcessor `json:"processors"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingestdownloader.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingestdownloader.go
index cacad963e4..4d0428245c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingestdownloader.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingestdownloader.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoIngestDownloader type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L128-L130
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L128-L130
type NodeInfoIngestDownloader struct {
Enabled string `json:"enabled"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingestinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingestinfo.go
index e4aa7c01bf..1683686c63 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingestinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingestinfo.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodeInfoIngestInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L124-L126
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L124-L126
type NodeInfoIngestInfo struct {
Downloader NodeInfoIngestDownloader `json:"downloader"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingestprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingestprocessor.go
index 5fc2c9c670..81dbbb6d0e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingestprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoingestprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoIngestProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L228-L230
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L228-L230
type NodeInfoIngestProcessor struct {
Type string `json:"type"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfojvmmemory.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfojvmmemory.go
index 482eb9e095..e1c09b3f4f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfojvmmemory.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfojvmmemory.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoJvmMemory type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L310-L321
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L310-L321
type NodeInfoJvmMemory struct {
DirectMax ByteSize `json:"direct_max,omitempty"`
DirectMaxInBytes int64 `json:"direct_max_in_bytes"`
@@ -66,7 +66,7 @@ func (s *NodeInfoJvmMemory) UnmarshalJSON(data []byte) error {
}
case "direct_max_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -86,7 +86,7 @@ func (s *NodeInfoJvmMemory) UnmarshalJSON(data []byte) error {
}
case "heap_init_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -106,7 +106,7 @@ func (s *NodeInfoJvmMemory) UnmarshalJSON(data []byte) error {
}
case "heap_max_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -126,7 +126,7 @@ func (s *NodeInfoJvmMemory) UnmarshalJSON(data []byte) error {
}
case "non_heap_init_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -146,7 +146,7 @@ func (s *NodeInfoJvmMemory) UnmarshalJSON(data []byte) error {
}
case "non_heap_max_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfomemory.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfomemory.go
index c5589e9f79..b1fd471d54 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfomemory.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfomemory.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoMemory type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L323-L326
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L323-L326
type NodeInfoMemory struct {
Total string `json:"total"`
TotalInBytes int64 `json:"total_in_bytes"`
@@ -65,7 +65,7 @@ func (s *NodeInfoMemory) UnmarshalJSON(data []byte) error {
s.Total = o
case "total_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfonetwork.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfonetwork.go
index e58b6cdf7e..15bee76ec8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfonetwork.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfonetwork.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoNetwork type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L328-L331
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L328-L331
type NodeInfoNetwork struct {
PrimaryInterface NodeInfoNetworkInterface `json:"primary_interface"`
RefreshInterval int `json:"refresh_interval"`
@@ -59,7 +59,7 @@ func (s *NodeInfoNetwork) UnmarshalJSON(data []byte) error {
case "refresh_interval":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfonetworkinterface.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfonetworkinterface.go
index d91de28da4..7517637705 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfonetworkinterface.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfonetworkinterface.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoNetworkInterface type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L333-L337
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L333-L337
type NodeInfoNetworkInterface struct {
Address string `json:"address"`
MacAddress string `json:"mac_address"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfooscpu.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfooscpu.go
index cdb8039272..f8ff560290 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfooscpu.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfooscpu.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoOSCPU type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L339-L348
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L339-L348
type NodeInfoOSCPU struct {
CacheSize string `json:"cache_size"`
CacheSizeInBytes int `json:"cache_size_in_bytes"`
@@ -72,7 +72,7 @@ func (s *NodeInfoOSCPU) UnmarshalJSON(data []byte) error {
case "cache_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *NodeInfoOSCPU) UnmarshalJSON(data []byte) error {
case "cores_per_socket":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +104,7 @@ func (s *NodeInfoOSCPU) UnmarshalJSON(data []byte) error {
case "mhz":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -132,7 +132,7 @@ func (s *NodeInfoOSCPU) UnmarshalJSON(data []byte) error {
case "total_cores":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -148,7 +148,7 @@ func (s *NodeInfoOSCPU) UnmarshalJSON(data []byte) error {
case "total_sockets":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfopath.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfopath.go
index 85216e5f57..cb3eb0e27a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfopath.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfopath.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoPath type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L158-L163
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L158-L163
type NodeInfoPath struct {
Data []string `json:"data,omitempty"`
Home *string `json:"home,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinforepositories.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinforepositories.go
index 4532a2976b..1670e6a223 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinforepositories.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinforepositories.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodeInfoRepositories type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L165-L167
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L165-L167
type NodeInfoRepositories struct {
Url NodeInfoRepositoriesUrl `json:"url"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinforepositoriesurl.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinforepositoriesurl.go
index 2995ed05a8..3ff421f179 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinforepositoriesurl.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinforepositoriesurl.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoRepositoriesUrl type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L169-L171
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L169-L171
type NodeInfoRepositoriesUrl struct {
AllowedUrls string `json:"allowed_urls"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoscript.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoscript.go
index 24091c2351..f01cbed45d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoscript.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoscript.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,10 +31,10 @@ import (
// NodeInfoScript type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L281-L284
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L281-L284
type NodeInfoScript struct {
- AllowedTypes string `json:"allowed_types"`
- DisableMaxCompilationsRate string `json:"disable_max_compilations_rate"`
+ AllowedTypes string `json:"allowed_types"`
+ DisableMaxCompilationsRate *string `json:"disable_max_compilations_rate,omitempty"`
}
func (s *NodeInfoScript) UnmarshalJSON(data []byte) error {
@@ -74,7 +74,7 @@ func (s *NodeInfoScript) UnmarshalJSON(data []byte) error {
if err != nil {
o = string(tmp[:])
}
- s.DisableMaxCompilationsRate = o
+ s.DisableMaxCompilationsRate = &o
}
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosearch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosearch.go
index 3402da9990..88da5da716 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosearch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosearch.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodeInfoSearch type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L286-L288
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L286-L288
type NodeInfoSearch struct {
Remote NodeInfoSearchRemote `json:"remote"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosearchremote.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosearchremote.go
index 1b4e172a58..34ba67e867 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosearchremote.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosearchremote.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoSearchRemote type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L290-L292
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L290-L292
type NodeInfoSearchRemote struct {
Connect string `json:"connect"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettings.go
index dc8a6a6180..900d5990b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettings.go
@@ -16,17 +16,17 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodeInfoSettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L69-L85
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L69-L85
type NodeInfoSettings struct {
Action *NodeInfoAction `json:"action,omitempty"`
Bootstrap *NodeInfoBootstrap `json:"bootstrap,omitempty"`
- Client NodeInfoClient `json:"client"`
+ Client *NodeInfoClient `json:"client,omitempty"`
Cluster NodeInfoSettingsCluster `json:"cluster"`
Discovery *NodeInfoDiscover `json:"discovery,omitempty"`
Http NodeInfoSettingsHttp `json:"http"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingscluster.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingscluster.go
index 13273ffc74..e233d2eeb1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingscluster.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingscluster.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// NodeInfoSettingsCluster type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L132-L142
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L132-L142
type NodeInfoSettingsCluster struct {
DeprecationIndexing *DeprecationIndexing `json:"deprecation_indexing,omitempty"`
Election NodeInfoSettingsClusterElection `json:"election"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsclusterelection.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsclusterelection.go
index a5c0aded2b..4bc16ee6f1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsclusterelection.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsclusterelection.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// NodeInfoSettingsClusterElection type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L148-L150
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L148-L150
type NodeInfoSettingsClusterElection struct {
Strategy string `json:"strategy"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingshttp.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingshttp.go
index 20d6662524..23d4d3fa07 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingshttp.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingshttp.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoSettingsHttp type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L189-L194
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L189-L194
type NodeInfoSettingsHttp struct {
Compression string `json:"compression,omitempty"`
Port string `json:"port,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingshttptype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingshttptype.go
index ddbb29d167..ebff8c56e8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingshttptype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingshttptype.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoSettingsHttpType type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L196-L199
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L196-L199
type NodeInfoSettingsHttpType struct {
Default string `json:"default"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsingest.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsingest.go
index 81e57f3cfb..42b7963a17 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsingest.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsingest.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodeInfoSettingsIngest type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L87-L122
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L87-L122
type NodeInfoSettingsIngest struct {
Append *NodeInfoIngestInfo `json:"append,omitempty"`
Attachment *NodeInfoIngestInfo `json:"attachment,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsnetwork.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsnetwork.go
index d19b608436..39b2715cae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsnetwork.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsnetwork.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,9 +30,9 @@ import (
// NodeInfoSettingsNetwork type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L220-L222
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L220-L222
type NodeInfoSettingsNetwork struct {
- Host string `json:"host"`
+ Host *string `json:"host,omitempty"`
}
func (s *NodeInfoSettingsNetwork) UnmarshalJSON(data []byte) error {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsnode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsnode.go
index a86eb4a241..32d6d0ecf0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsnode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingsnode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoSettingsNode type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L152-L156
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L152-L156
type NodeInfoSettingsNode struct {
Attr map[string]json.RawMessage `json:"attr"`
MaxLocalStorageNodes *string `json:"max_local_storage_nodes,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingstransport.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingstransport.go
index 02462d68bc..d52d5a8f90 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingstransport.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingstransport.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoSettingsTransport type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L205-L209
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L205-L209
type NodeInfoSettingsTransport struct {
Features *NodeInfoSettingsTransportFeatures `json:"features,omitempty"`
Type NodeInfoSettingsTransportType `json:"type"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingstransportfeatures.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingstransportfeatures.go
index fae3827ae7..e4b2d01fb8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingstransportfeatures.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingstransportfeatures.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoSettingsTransportFeatures type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L216-L218
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L216-L218
type NodeInfoSettingsTransportFeatures struct {
XPack string `json:"x-pack"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingstransporttype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingstransporttype.go
index 8faff4fdd6..c55716cac1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingstransporttype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfosettingstransporttype.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoSettingsTransportType type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L211-L214
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L211-L214
type NodeInfoSettingsTransportType struct {
Default string `json:"default"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfotransport.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfotransport.go
index 9b25ad353f..cd121330e8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfotransport.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfotransport.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoTransport type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L350-L354
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L350-L354
type NodeInfoTransport struct {
BoundAddress []string `json:"bound_address"`
Profiles map[string]string `json:"profiles"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpack.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpack.go
index ee3f869fd7..8a3b1a8d29 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpack.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpack.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// NodeInfoXpack type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L236-L240
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L236-L240
type NodeInfoXpack struct {
License *NodeInfoXpackLicense `json:"license,omitempty"`
Notification map[string]json.RawMessage `json:"notification,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacklicense.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacklicense.go
index 3d3a62ee61..f980494b80 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacklicense.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacklicense.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodeInfoXpackLicense type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L273-L275
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L273-L275
type NodeInfoXpackLicense struct {
SelfGenerated NodeInfoXpackLicenseType `json:"self_generated"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacklicensetype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacklicensetype.go
index 7d99234485..c44f0ae9bf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacklicensetype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacklicensetype.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoXpackLicenseType type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L277-L279
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L277-L279
type NodeInfoXpackLicenseType struct {
Type string `json:"type"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurity.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurity.go
index ebb60d0576..dca8d5b406 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurity.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurity.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoXpackSecurity type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L242-L247
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L242-L247
type NodeInfoXpackSecurity struct {
Authc *NodeInfoXpackSecurityAuthc `json:"authc,omitempty"`
Enabled string `json:"enabled"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthc.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthc.go
index ae0f256acf..6e3046944c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthc.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthc.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodeInfoXpackSecurityAuthc type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L253-L256
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L253-L256
type NodeInfoXpackSecurityAuthc struct {
Realms NodeInfoXpackSecurityAuthcRealms `json:"realms"`
Token NodeInfoXpackSecurityAuthcToken `json:"token"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthcrealms.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthcrealms.go
index ace24da572..aac9da387b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthcrealms.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthcrealms.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodeInfoXpackSecurityAuthcRealms type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L258-L262
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L258-L262
type NodeInfoXpackSecurityAuthcRealms struct {
File map[string]NodeInfoXpackSecurityAuthcRealmsStatus `json:"file,omitempty"`
Native map[string]NodeInfoXpackSecurityAuthcRealmsStatus `json:"native,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthcrealmsstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthcrealmsstatus.go
index d35ce6460e..97e43a4447 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthcrealmsstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthcrealmsstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoXpackSecurityAuthcRealmsStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L268-L271
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L268-L271
type NodeInfoXpackSecurityAuthcRealmsStatus struct {
Enabled *string `json:"enabled,omitempty"`
Order string `json:"order"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthctoken.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthctoken.go
index a9a1da6c1b..98b0b12a87 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthctoken.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityauthctoken.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeInfoXpackSecurityAuthcToken type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L264-L266
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L264-L266
type NodeInfoXpackSecurityAuthcToken struct {
Enabled string `json:"enabled"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityssl.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityssl.go
index 604161b6b7..db8a7df7ae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityssl.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeinfoxpacksecurityssl.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodeInfoXpackSecuritySsl type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L249-L251
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L249-L251
type NodeInfoXpackSecuritySsl struct {
Ssl map[string]string `json:"ssl"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodejvminfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodejvminfo.go
index 9e6198b144..626cd9fd1e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodejvminfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodejvminfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeJvmInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L356-L370
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L356-L370
type NodeJvmInfo struct {
GcCollectors []string `json:"gc_collectors"`
InputArguments []string `json:"input_arguments"`
@@ -84,7 +84,7 @@ func (s *NodeJvmInfo) UnmarshalJSON(data []byte) error {
case "pid":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +104,7 @@ func (s *NodeJvmInfo) UnmarshalJSON(data []byte) error {
}
case "using_bundled_jdk", "bundled_jdk":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeoperatingsysteminfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeoperatingsysteminfo.go
index df6af19467..6531846d03 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeoperatingsysteminfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeoperatingsysteminfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeOperatingSystemInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L372-L389
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L372-L389
type NodeOperatingSystemInfo struct {
// AllocatedProcessors The number of processors actually used to calculate thread pool size. This
// number can be set with the node.processors setting of a node and defaults to
@@ -70,7 +70,7 @@ func (s *NodeOperatingSystemInfo) UnmarshalJSON(data []byte) error {
case "allocated_processors":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -98,7 +98,7 @@ func (s *NodeOperatingSystemInfo) UnmarshalJSON(data []byte) error {
case "available_processors":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodepackagingtype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodepackagingtype.go
index 35be6e8730..eeef62ddef 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodepackagingtype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodepackagingtype.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodePackagingType type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L526-L539
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L526-L539
type NodePackagingType struct {
// Count Number of selected nodes using the distribution flavor and file type.
Count int `json:"count"`
@@ -58,7 +58,7 @@ func (s *NodePackagingType) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeprocessinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeprocessinfo.go
index 19291ac6bb..b4de914184 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeprocessinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeprocessinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeProcessInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L391-L398
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L391-L398
type NodeProcessInfo struct {
// Id Process identifier (PID)
Id int64 `json:"id"`
@@ -57,7 +57,7 @@ func (s *NodeProcessInfo) UnmarshalJSON(data []byte) error {
switch t {
case "id":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *NodeProcessInfo) UnmarshalJSON(data []byte) error {
}
case "mlockall":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodereloaderror.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodereloaderror.go
index 3054fe3de3..1ce90c8ea0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodereloaderror.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodereloaderror.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// NodeReloadError type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/NodeReloadResult.ts#L24-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/NodeReloadResult.ts#L24-L27
type NodeReloadError struct {
Name string `json:"name"`
ReloadException *ErrorCause `json:"reload_exception,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodereloadresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodereloadresult.go
index e037a294cc..f929aad15c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodereloadresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodereloadresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// Stats
// NodeReloadError
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/NodeReloadResult.ts#L29-L30
-type NodeReloadResult interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/NodeReloadResult.ts#L29-L30
+type NodeReloadResult any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodescontext.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodescontext.go
index 2905449d7d..1d0699701f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodescontext.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodescontext.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodesContext type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L997-L1002
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L997-L1002
type NodesContext struct {
CacheEvictions *int64 `json:"cache_evictions,omitempty"`
CompilationLimitTriggered *int64 `json:"compilation_limit_triggered,omitempty"`
@@ -55,7 +55,7 @@ func (s *NodesContext) UnmarshalJSON(data []byte) error {
switch t {
case "cache_evictions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *NodesContext) UnmarshalJSON(data []byte) error {
}
case "compilation_limit_triggered":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *NodesContext) UnmarshalJSON(data []byte) error {
}
case "compilations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodescredentials.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodescredentials.go
index 57ceb6c3f1..d1fb30be91 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodescredentials.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodescredentials.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodesCredentials type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_service_credentials/types.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_service_credentials/types.ts#L23-L28
type NodesCredentials struct {
// FileTokens File-backed tokens collected from all nodes
FileTokens map[string]NodesCredentialsFileToken `json:"file_tokens"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodescredentialsfiletoken.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodescredentialsfiletoken.go
index 47fbf299c8..999b4670b3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodescredentialsfiletoken.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodescredentialsfiletoken.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodesCredentialsFileToken type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_service_credentials/types.ts#L30-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_service_credentials/types.ts#L30-L32
type NodesCredentialsFileToken struct {
Nodes []string `json:"nodes"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeshard.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeshard.go
index a658c33377..67086d0f54 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeshard.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeshard.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// NodeShard type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Node.ts#L60-L71
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Node.ts#L60-L71
type NodeShard struct {
AllocationId map[string]string `json:"allocation_id,omitempty"`
Index string `json:"index"`
@@ -81,7 +81,7 @@ func (s *NodeShard) UnmarshalJSON(data []byte) error {
}
case "primary":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *NodeShard) UnmarshalJSON(data []byte) error {
case "shard":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeshutdownstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeshutdownstatus.go
index ac97cf96da..3a5c776559 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeshutdownstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeshutdownstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// NodeShutdownStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L29-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L29-L38
type NodeShutdownStatus struct {
NodeId string `json:"node_id"`
PersistentTasks PersistentTaskStatus `json:"persistent_tasks"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesindexingpressure.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesindexingpressure.go
index 3c523aa04c..c90b0c0b99 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesindexingpressure.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesindexingpressure.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodesIndexingPressure type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L116-L121
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L116-L121
type NodesIndexingPressure struct {
// Memory Contains statistics for memory consumption from indexing load.
Memory *NodesIndexingPressureMemory `json:"memory,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesindexingpressurememory.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesindexingpressurememory.go
index 39f12ad491..1820cb56bb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesindexingpressurememory.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesindexingpressurememory.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodesIndexingPressureMemory type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L123-L142
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L123-L142
type NodesIndexingPressureMemory struct {
// Current Contains statistics for current indexing load.
Current *PressureMemory `json:"current,omitempty"`
@@ -71,7 +71,7 @@ func (s *NodesIndexingPressureMemory) UnmarshalJSON(data []byte) error {
}
case "limit_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesingest.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesingest.go
index 5466333cd1..bc1076ba24 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesingest.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesingest.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// NodesIngest type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L345-L354
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L345-L354
type NodesIngest struct {
// Pipelines Contains statistics about ingest pipelines for the node.
Pipelines map[string]IngestTotal `json:"pipelines,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesrecord.go
index 05efbffb3b..cae7d2b614 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodesrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodesRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/nodes/types.ts#L23-L542
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/nodes/types.ts#L23-L542
type NodesRecord struct {
// Build The Elasticsearch build hash.
Build *string `json:"build,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodestatistics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodestatistics.go
index bb1e50613e..d41861677a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodestatistics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodestatistics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeStatistics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Node.ts#L28-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Node.ts#L28-L39
type NodeStatistics struct {
// Failed Number of nodes that rejected the request or failed to respond. If this value
// is not 0, a reason for the rejection or failure is included in the response.
@@ -60,7 +60,7 @@ func (s *NodeStatistics) UnmarshalJSON(data []byte) error {
case "failed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -81,7 +81,7 @@ func (s *NodeStatistics) UnmarshalJSON(data []byte) error {
case "successful":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -97,7 +97,7 @@ func (s *NodeStatistics) UnmarshalJSON(data []byte) error {
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodetasks.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodetasks.go
index 98f4078198..c358818ec1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodetasks.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodetasks.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// NodeTasks type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/tasks/_types/TaskListResponseBase.ts#L49-L57
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/_types/TaskListResponseBase.ts#L49-L57
type NodeTasks struct {
Attributes map[string]string `json:"attributes,omitempty"`
Host *string `json:"host,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodethreadpoolinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodethreadpoolinfo.go
index 8e74035625..5003506090 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodethreadpoolinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodethreadpoolinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// NodeThreadPoolInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/info/types.ts#L294-L301
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/info/types.ts#L294-L301
type NodeThreadPoolInfo struct {
Core *int `json:"core,omitempty"`
KeepAlive Duration `json:"keep_alive,omitempty"`
@@ -58,7 +58,7 @@ func (s *NodeThreadPoolInfo) UnmarshalJSON(data []byte) error {
case "core":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -79,7 +79,7 @@ func (s *NodeThreadPoolInfo) UnmarshalJSON(data []byte) error {
case "max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *NodeThreadPoolInfo) UnmarshalJSON(data []byte) error {
case "queue_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -111,7 +111,7 @@ func (s *NodeThreadPoolInfo) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeusage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeusage.go
index 8d34f29d5f..a11d008657 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeusage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nodeusage.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// NodeUsage type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/usage/types.ts#L25-L30
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/usage/types.ts#L25-L30
type NodeUsage struct {
Aggregations map[string]json.RawMessage `json:"aggregations"`
RestActions map[string]int `json:"rest_actions"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/norianalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/norianalyzer.go
index 4d3966b2e7..87e80fd16d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/norianalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/norianalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// NoriAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/analyzers.ts#L66-L72
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L66-L72
type NoriAnalyzer struct {
DecompoundMode *noridecompoundmode.NoriDecompoundMode `json:"decompound_mode,omitempty"`
Stoptags []string `json:"stoptags,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/noripartofspeechtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/noripartofspeechtokenfilter.go
index d040e6c14f..e96283284d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/noripartofspeechtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/noripartofspeechtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// NoriPartOfSpeechTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L273-L276
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L275-L278
type NoriPartOfSpeechTokenFilter struct {
Stoptags []string `json:"stoptags,omitempty"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/noritokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/noritokenizer.go
index 9a73a9bcc7..e987688d4b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/noritokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/noritokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// NoriTokenizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L81-L87
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L81-L87
type NoriTokenizer struct {
DecompoundMode *noridecompoundmode.NoriDecompoundMode `json:"decompound_mode,omitempty"`
DiscardPunctuation *bool `json:"discard_punctuation,omitempty"`
@@ -64,7 +64,7 @@ func (s *NoriTokenizer) UnmarshalJSON(data []byte) error {
}
case "discard_punctuation":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/normalizeaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/normalizeaggregation.go
index 509ee4f4eb..afa7631fd3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/normalizeaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/normalizeaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// NormalizeAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L319-L324
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L319-L324
type NormalizeAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -44,10 +44,8 @@ type NormalizeAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
// Method The specific method to apply.
Method *normalizemethod.NormalizeMethod `json:"method,omitempty"`
- Name *string `json:"name,omitempty"`
}
func (s *NormalizeAggregation) UnmarshalJSON(data []byte) error {
@@ -87,28 +85,11 @@ func (s *NormalizeAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "method":
if err := dec.Decode(&s.Method); err != nil {
return fmt.Errorf("%s | %w", "Method", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/normalizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/normalizer.go
index 9d10632b8d..d55ad87205 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/normalizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/normalizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// LowercaseNormalizer
// CustomNormalizer
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/normalizers.ts#L20-L24
-type Normalizer interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/normalizers.ts#L20-L24
+type Normalizer any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nullvalue.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nullvalue.go
new file mode 100644
index 0000000000..17bfbd9357
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/nullvalue.go
@@ -0,0 +1,29 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package types
+
+// NullValue is a custom type used to represent the concept of a null or missing value.
+// It can be used as a placeholder for variables or fields that are not initialized,
+// or to indicate that a specific piece of data is intentionally absent.
+type NullValue struct{}
+
+// MarshalJSON converts the NullValue to JSON format.
+// It always returns a "null" value as per JSON standard for null values.
+func (n NullValue) MarshalJSON() ([]byte, error) {
+ return []byte("null"), nil
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/numberrangequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/numberrangequery.go
index 8177bee032..a81c045a48 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/numberrangequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/numberrangequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// NumberRangeQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L145-L164
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L145-L164
type NumberRangeQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -72,7 +72,7 @@ func (s *NumberRangeQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -93,7 +93,7 @@ func (s *NumberRangeQuery) UnmarshalJSON(data []byte) error {
}
case "gt":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -109,7 +109,7 @@ func (s *NumberRangeQuery) UnmarshalJSON(data []byte) error {
}
case "gte":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *NumberRangeQuery) UnmarshalJSON(data []byte) error {
}
case "lt":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -141,7 +141,7 @@ func (s *NumberRangeQuery) UnmarshalJSON(data []byte) error {
}
case "lte":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/numericdecayfunction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/numericdecayfunction.go
index d10e6e0056..84c1459440 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/numericdecayfunction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/numericdecayfunction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -29,7 +29,7 @@ import (
// NumericDecayFunction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L182-L184
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L182-L184
type NumericDecayFunction struct {
// MultiValueMode Determines how the distance is calculated when a field used for computing the
// decay contains multiple values.
@@ -41,7 +41,7 @@ type NumericDecayFunction struct {
func (s NumericDecayFunction) MarshalJSON() ([]byte, error) {
type opt NumericDecayFunction
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/numericfielddata.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/numericfielddata.go
index b066ec4c2c..1d7f83c986 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/numericfielddata.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/numericfielddata.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// NumericFielddata type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/NumericFielddata.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/NumericFielddata.ts#L22-L24
type NumericFielddata struct {
Format numericfielddataformat.NumericFielddataFormat `json:"format"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/objectproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/objectproperty.go
index 9b8720d6f3..3fb663794b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/objectproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/objectproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// ObjectProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/complex.ts#L46-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/complex.ts#L46-L50
type ObjectProperty struct {
CopyTo []string `json:"copy_to,omitempty"`
Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
@@ -86,7 +86,7 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -106,7 +106,7 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -397,6 +397,12 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -408,7 +414,7 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -437,7 +443,7 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -728,6 +734,12 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -750,7 +762,7 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -764,7 +776,7 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error {
}
case "subobjects":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/onehotencodingpreprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/onehotencodingpreprocessor.go
index 2c882c7e64..e56e97617c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/onehotencodingpreprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/onehotencodingpreprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// OneHotEncodingPreprocessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model/types.ts#L44-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L44-L47
type OneHotEncodingPreprocessor struct {
Field string `json:"field"`
HotMap map[string]string `json:"hot_map"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/operatingsystem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/operatingsystem.go
index 28cec443fa..cb7f996d36 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/operatingsystem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/operatingsystem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// OperatingSystem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L945-L951
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L945-L951
type OperatingSystem struct {
Cgroup *Cgroup `json:"cgroup,omitempty"`
Cpu *Cpu `json:"cpu,omitempty"`
@@ -76,7 +76,7 @@ func (s *OperatingSystem) UnmarshalJSON(data []byte) error {
}
case "timestamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/operatingsystemmemoryinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/operatingsystemmemoryinfo.go
index ecc03152f8..d3986f9914 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/operatingsystemmemoryinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/operatingsystemmemoryinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// OperatingSystemMemoryInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/stats/types.ts#L541-L568
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/stats/types.ts#L541-L568
type OperatingSystemMemoryInfo struct {
// AdjustedTotalInBytes Total amount, in bytes, of memory across all selected nodes, but using the
// value specified using the `es.total_memory_bytes` system property instead of
@@ -65,7 +65,7 @@ func (s *OperatingSystemMemoryInfo) UnmarshalJSON(data []byte) error {
switch t {
case "adjusted_total_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -80,7 +80,7 @@ func (s *OperatingSystemMemoryInfo) UnmarshalJSON(data []byte) error {
}
case "free_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *OperatingSystemMemoryInfo) UnmarshalJSON(data []byte) error {
case "free_percent":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -111,7 +111,7 @@ func (s *OperatingSystemMemoryInfo) UnmarshalJSON(data []byte) error {
}
case "total_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -126,7 +126,7 @@ func (s *OperatingSystemMemoryInfo) UnmarshalJSON(data []byte) error {
}
case "used_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -142,7 +142,7 @@ func (s *OperatingSystemMemoryInfo) UnmarshalJSON(data []byte) error {
case "used_percent":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/operationcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/operationcontainer.go
index f6c4c98123..07b463ce8b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/operationcontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/operationcontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// OperationContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/bulk/types.ts#L145-L167
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L145-L167
type OperationContainer struct {
// Create Indexes the specified document if it does not already exist.
// The following line must contain the source data to be indexed.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/outlierdetectionparameters.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/outlierdetectionparameters.go
index 831c71b67a..32f9439dd2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/outlierdetectionparameters.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/outlierdetectionparameters.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// OutlierDetectionParameters type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L527-L561
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L527-L561
type OutlierDetectionParameters struct {
// ComputeFeatureInfluence Specifies whether the feature influence calculation is enabled.
ComputeFeatureInfluence *bool `json:"compute_feature_influence,omitempty"`
@@ -80,7 +80,7 @@ func (s *OutlierDetectionParameters) UnmarshalJSON(data []byte) error {
switch t {
case "compute_feature_influence":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -94,7 +94,7 @@ func (s *OutlierDetectionParameters) UnmarshalJSON(data []byte) error {
}
case "feature_influence_threshold":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -123,7 +123,7 @@ func (s *OutlierDetectionParameters) UnmarshalJSON(data []byte) error {
case "n_neighbors":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +138,7 @@ func (s *OutlierDetectionParameters) UnmarshalJSON(data []byte) error {
}
case "outlier_fraction":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -154,7 +154,7 @@ func (s *OutlierDetectionParameters) UnmarshalJSON(data []byte) error {
}
case "standardization_enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/overallbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/overallbucket.go
index afa32c5a99..7be5ccbcce 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/overallbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/overallbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// OverallBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Bucket.ts#L130-L145
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Bucket.ts#L130-L145
type OverallBucket struct {
// BucketSpan The length of the bucket in seconds. Matches the job with the longest
// bucket_span value.
@@ -72,7 +72,7 @@ func (s *OverallBucket) UnmarshalJSON(data []byte) error {
}
case "is_interim":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *OverallBucket) UnmarshalJSON(data []byte) error {
}
case "overall_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/overallbucketjob.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/overallbucketjob.go
index d7a4e3b8c5..99d8d8237e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/overallbucketjob.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/overallbucketjob.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// OverallBucketJob type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Bucket.ts#L146-L149
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Bucket.ts#L146-L149
type OverallBucketJob struct {
JobId string `json:"job_id"`
MaxAnomalyScore Float64 `json:"max_anomaly_score"`
@@ -58,7 +58,7 @@ func (s *OverallBucketJob) UnmarshalJSON(data []byte) error {
}
case "max_anomaly_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/overlapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/overlapping.go
index 80444d7e10..3ce8d37be1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/overlapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/overlapping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// Overlapping type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42
type Overlapping struct {
IndexPatterns []string `json:"index_patterns"`
Name string `json:"name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/page.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/page.go
index 6722756150..1fa2f6b490 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/page.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/page.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Page type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Page.ts#L22-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Page.ts#L22-L33
type Page struct {
// From Skips the specified number of items.
From *int `json:"from,omitempty"`
@@ -56,7 +56,7 @@ func (s *Page) UnmarshalJSON(data []byte) error {
case "from":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *Page) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyaction.go
index fb64de9be8..f456878f7b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// PagerDutyAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L54-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L54-L54
type PagerDutyAction struct {
Account *string `json:"account,omitempty"`
AttachPayload bool `json:"attach_payload"`
@@ -74,7 +74,7 @@ func (s *PagerDutyAction) UnmarshalJSON(data []byte) error {
s.Account = &o
case "attach_payload":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutycontext.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutycontext.go
index 9a22ba7f25..540270f7f9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutycontext.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutycontext.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// PagerDutyContext type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L61-L65
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L61-L65
type PagerDutyContext struct {
Href *string `json:"href,omitempty"`
Src *string `json:"src,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyevent.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyevent.go
index 9a1499f1ec..84c3f0c2b4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyevent.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyevent.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// PagerDutyEvent type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L40-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L40-L52
type PagerDutyEvent struct {
Account *string `json:"account,omitempty"`
AttachPayload bool `json:"attach_payload"`
@@ -74,7 +74,7 @@ func (s *PagerDutyEvent) UnmarshalJSON(data []byte) error {
s.Account = &o
case "attach_payload":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyeventproxy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyeventproxy.go
index 550ee3cc6d..121bf5ab13 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyeventproxy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyeventproxy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PagerDutyEventProxy type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L56-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L56-L59
type PagerDutyEventProxy struct {
Host *string `json:"host,omitempty"`
Port *int `json:"port,omitempty"`
@@ -59,7 +59,7 @@ func (s *PagerDutyEventProxy) UnmarshalJSON(data []byte) error {
case "port":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyresult.go
index 131a2a0c0b..4f9f49969e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pagerdutyresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PagerDutyResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L78-L83
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L78-L83
type PagerDutyResult struct {
Event PagerDutyEvent `json:"event"`
Reason *string `json:"reason,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/painlesscontextsetup.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/painlesscontextsetup.go
index e1791b4a7c..864d5fd3f5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/painlesscontextsetup.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/painlesscontextsetup.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// PainlessContextSetup type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/scripts_painless_execute/types.ts#L25-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/scripts_painless_execute/types.ts#L25-L39
type PainlessContextSetup struct {
// Document Document that’s temporarily indexed in-memory and accessible from the script.
Document json.RawMessage `json:"document,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parentaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parentaggregate.go
index 8d8666445e..819025f8c6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parentaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parentaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// ParentAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L779-L780
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L779-L780
type ParentAggregate struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *ParentAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +519,7 @@ func (s *ParentAggregate) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -569,7 +569,7 @@ func (s *ParentAggregate) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -579,7 +579,7 @@ func (s *ParentAggregate) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -596,7 +596,7 @@ func (s *ParentAggregate) UnmarshalJSON(data []byte) error {
func (s ParentAggregate) MarshalJSON() ([]byte, error) {
type opt ParentAggregate
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parentaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parentaggregation.go
index 64e933ae62..38b1501c24 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parentaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parentaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,15 +26,12 @@ import (
"errors"
"fmt"
"io"
- "strconv"
)
// ParentAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L641-L646
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L645-L650
type ParentAggregation struct {
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
// Type The child type that should be selected.
Type *string `json:"type,omitempty"`
}
@@ -54,23 +51,6 @@ func (s *ParentAggregation) UnmarshalJSON(data []byte) error {
switch t {
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "type":
if err := dec.Decode(&s.Type); err != nil {
return fmt.Errorf("%s | %w", "Type", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parentidquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parentidquery.go
index 827314a8f5..b9469adb58 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parentidquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parentidquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ParentIdQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/joining.ts#L132-L146
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/joining.ts#L132-L146
type ParentIdQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -65,7 +65,7 @@ func (s *ParentIdQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -86,7 +86,7 @@ func (s *ParentIdQuery) UnmarshalJSON(data []byte) error {
}
case "ignore_unmapped":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parenttaskinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parenttaskinfo.go
index 192e97956d..4e523af964 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parenttaskinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/parenttaskinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ParentTaskInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/tasks/_types/TaskListResponseBase.ts#L45-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/_types/TaskListResponseBase.ts#L45-L47
type ParentTaskInfo struct {
Action string `json:"action"`
Cancellable bool `json:"cancellable"`
@@ -78,7 +78,7 @@ func (s *ParentTaskInfo) UnmarshalJSON(data []byte) error {
s.Action = o
case "cancellable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *ParentTaskInfo) UnmarshalJSON(data []byte) error {
}
case "cancelled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -131,7 +131,7 @@ func (s *ParentTaskInfo) UnmarshalJSON(data []byte) error {
}
case "id":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/passthroughinferenceoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/passthroughinferenceoptions.go
index 87214ac6b6..fa9df17a88 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/passthroughinferenceoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/passthroughinferenceoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PassThroughInferenceOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L224-L231
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L224-L231
type PassThroughInferenceOptions struct {
// ResultsField The field that is added to incoming documents to contain the inference
// prediction. Defaults to predicted_value.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/passthroughinferenceupdateoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/passthroughinferenceupdateoptions.go
index 3cd61ada67..f8f68944ee 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/passthroughinferenceupdateoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/passthroughinferenceupdateoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PassThroughInferenceUpdateOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L385-L390
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L385-L390
type PassThroughInferenceUpdateOptions struct {
// ResultsField The field that is added to incoming documents to contain the inference
// prediction. Defaults to predicted_value.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pathhierarchytokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pathhierarchytokenizer.go
index 781bff6124..a1ffc6fd65 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pathhierarchytokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pathhierarchytokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PathHierarchyTokenizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L89-L96
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L89-L96
type PathHierarchyTokenizer struct {
BufferSize Stringifiedinteger `json:"buffer_size,omitempty"`
Delimiter *string `json:"delimiter,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternanalyzer.go
index dee1f3cad4..17887360e8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PatternAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/analyzers.ts#L74-L81
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L74-L81
type PatternAnalyzer struct {
Flags *string `json:"flags,omitempty"`
Lowercase *bool `json:"lowercase,omitempty"`
@@ -69,7 +69,7 @@ func (s *PatternAnalyzer) UnmarshalJSON(data []byte) error {
s.Flags = &o
case "lowercase":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patterncapturetokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patterncapturetokenfilter.go
index ba3851e286..361855ca0b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patterncapturetokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patterncapturetokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// PatternCaptureTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L278-L282
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L280-L284
type PatternCaptureTokenFilter struct {
Patterns []string `json:"patterns"`
PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternreplacecharfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternreplacecharfilter.go
index dbd9cb5434..6b1d9ccd63 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternreplacecharfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternreplacecharfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PatternReplaceCharFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/char_filters.ts#L54-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/char_filters.ts#L54-L59
type PatternReplaceCharFilter struct {
Flags *string `json:"flags,omitempty"`
Pattern string `json:"pattern"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternreplacetokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternreplacetokenfilter.go
index 2b3350d103..aefced26a9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternreplacetokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patternreplacetokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PatternReplaceTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L284-L290
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L286-L292
type PatternReplaceTokenFilter struct {
All *bool `json:"all,omitempty"`
Flags *string `json:"flags,omitempty"`
@@ -57,7 +57,7 @@ func (s *PatternReplaceTokenFilter) UnmarshalJSON(data []byte) error {
switch t {
case "all":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patterntokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patterntokenizer.go
index d5a9cfcea0..6e6542a3f5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patterntokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/patterntokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PatternTokenizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L98-L103
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L98-L103
type PatternTokenizer struct {
Flags *string `json:"flags,omitempty"`
Group *int `json:"group,omitempty"`
@@ -69,7 +69,7 @@ func (s *PatternTokenizer) UnmarshalJSON(data []byte) error {
case "group":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pendingtask.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pendingtask.go
index 5ddd534598..d759d0dc3b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pendingtask.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pendingtask.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PendingTask type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/pending_tasks/types.ts#L23-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/pending_tasks/types.ts#L23-L47
type PendingTask struct {
// Executing Indicates whether the pending tasks are currently executing or not.
Executing bool `json:"executing"`
@@ -68,7 +68,7 @@ func (s *PendingTask) UnmarshalJSON(data []byte) error {
switch t {
case "executing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *PendingTask) UnmarshalJSON(data []byte) error {
case "insert_order":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pendingtasksrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pendingtasksrecord.go
index 9660079a20..55a1807e7c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pendingtasksrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pendingtasksrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PendingTasksRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/pending_tasks/types.ts#L20-L41
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/pending_tasks/types.ts#L20-L41
type PendingTasksRecord struct {
// InsertOrder The task insertion order.
InsertOrder *string `json:"insertOrder,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentage.go
index 6d725ce425..66ffc8d28a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentage.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// float32
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Numeric.ts#L28-L28
-type Percentage interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Numeric.ts#L28-L28
+type Percentage any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentagescoreheuristic.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentagescoreheuristic.go
index 740bb294df..d9147dadd7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentagescoreheuristic.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentagescoreheuristic.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// PercentageScoreHeuristic type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L762-L762
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L766-L766
type PercentageScoreHeuristic struct {
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentileranksaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentileranksaggregation.go
index 8437a32105..a2e314dbbc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentileranksaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentileranksaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PercentileRanksAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L174-L193
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L174-L193
type PercentileRanksAggregation struct {
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
@@ -92,7 +92,7 @@ func (s *PercentileRanksAggregation) UnmarshalJSON(data []byte) error {
}
case "keyed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentiles.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentiles.go
index 5b96789938..6a8cae167f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentiles.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentiles.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// KeyedPercentiles
// []ArrayPercentilesItem
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L150-L151
-type Percentiles interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L150-L151
+type Percentiles any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesaggregation.go
index 6fe9bebf13..47ffde8582 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PercentilesAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L195-L214
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L195-L214
type PercentilesAggregation struct {
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
@@ -92,7 +92,7 @@ func (s *PercentilesAggregation) UnmarshalJSON(data []byte) error {
}
case "keyed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesbucketaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesbucketaggregate.go
index a30672df96..7a8c66a378 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesbucketaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesbucketaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// PercentilesBucketAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L178-L179
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L178-L179
type PercentilesBucketAggregate struct {
Meta Metadata `json:"meta,omitempty"`
Values Percentiles `json:"values"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesbucketaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesbucketaggregation.go
index 2a3dda84c7..3dbe56860d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesbucketaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percentilesbucketaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// PercentilesBucketAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L354-L359
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L354-L359
type PercentilesBucketAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,8 +43,6 @@ type PercentilesBucketAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
// Percents The list of percentiles to calculate.
Percents []Float64 `json:"percents,omitempty"`
}
@@ -86,23 +84,6 @@ func (s *PercentilesBucketAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "percents":
if err := dec.Decode(&s.Percents); err != nil {
return fmt.Errorf("%s | %w", "Percents", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percolatequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percolatequery.go
index 3bdd290ecd..fd0610f211 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percolatequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percolatequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PercolateQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L193-L230
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L193-L230
type PercolateQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -78,7 +78,7 @@ func (s *PercolateQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percolatorproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percolatorproperty.go
index f7de3d55cc..c7e0d587d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percolatorproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/percolatorproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// PercolatorProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L180-L182
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L182-L184
type PercolatorProperty struct {
Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
Fields map[string]Property `json:"fields,omitempty"`
@@ -71,7 +71,7 @@ func (s *PercolatorProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -362,6 +362,12 @@ func (s *PercolatorProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -373,7 +379,7 @@ func (s *PercolatorProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -402,7 +408,7 @@ func (s *PercolatorProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -693,6 +699,12 @@ func (s *PercolatorProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/perpartitioncategorization.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/perpartitioncategorization.go
index bceb1885e6..d7ab446a1e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/perpartitioncategorization.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/perpartitioncategorization.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PerPartitionCategorization type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Analysis.ts#L150-L159
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Analysis.ts#L150-L159
type PerPartitionCategorization struct {
// Enabled To enable this setting, you must also set the `partition_field_name` property
// to the same value in every detector that uses the keyword `mlcategory`.
@@ -62,7 +62,7 @@ func (s *PerPartitionCategorization) UnmarshalJSON(data []byte) error {
switch t {
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -76,7 +76,7 @@ func (s *PerPartitionCategorization) UnmarshalJSON(data []byte) error {
}
case "stop_on_warn":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/persistenttaskstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/persistenttaskstatus.go
index f96331458f..ba125796df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/persistenttaskstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/persistenttaskstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// PersistentTaskStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L56-L58
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L56-L58
type PersistentTaskStatus struct {
Status shutdownstatus.ShutdownStatus `json:"status"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phase.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phase.go
index 94a7aa25de..f15920fa8e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phase.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phase.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// Phase type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/_types/Phase.ts#L25-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/_types/Phase.ts#L25-L36
type Phase struct {
Actions json.RawMessage `json:"actions,omitempty"`
Configurations *Configurations `json:"configurations,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phases.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phases.go
index 6d5789dbe4..32ec5e8187 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phases.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phases.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Phases type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/_types/Phase.ts#L38-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/_types/Phase.ts#L38-L44
type Phases struct {
Cold *Phase `json:"cold,omitempty"`
Delete *Phase `json:"delete,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phonetictokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phonetictokenfilter.go
index 6ba4e446a2..3b26b23796 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phonetictokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phonetictokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -36,7 +36,7 @@ import (
// PhoneticTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/phonetic-plugin.ts#L64-L72
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/phonetic-plugin.ts#L64-L72
type PhoneticTokenFilter struct {
Encoder phoneticencoder.PhoneticEncoder `json:"encoder"`
Languageset []phoneticlanguage.PhoneticLanguage `json:"languageset"`
@@ -69,13 +69,24 @@ func (s *PhoneticTokenFilter) UnmarshalJSON(data []byte) error {
}
case "languageset":
- if err := dec.Decode(&s.Languageset); err != nil {
- return fmt.Errorf("%s | %w", "Languageset", err)
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := &phoneticlanguage.PhoneticLanguage{}
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "Languageset", err)
+ }
+
+ s.Languageset = append(s.Languageset, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Languageset); err != nil {
+ return fmt.Errorf("%s | %w", "Languageset", err)
+ }
}
case "max_code_len":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +106,7 @@ func (s *PhoneticTokenFilter) UnmarshalJSON(data []byte) error {
}
case "replace":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggest.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggest.go
index d8abf815d0..278d36c164 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggest.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggest.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PhraseSuggest type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L57-L62
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L57-L62
type PhraseSuggest struct {
Length int `json:"length"`
Offset int `json:"offset"`
@@ -56,7 +56,7 @@ func (s *PhraseSuggest) UnmarshalJSON(data []byte) error {
case "length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *PhraseSuggest) UnmarshalJSON(data []byte) error {
case "offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggestcollate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggestcollate.go
index cd181b21df..629d4f7726 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggestcollate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggestcollate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PhraseSuggestCollate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L330-L343
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L330-L343
type PhraseSuggestCollate struct {
// Params Parameters to use if the query is templated.
Params map[string]json.RawMessage `json:"params,omitempty"`
@@ -66,7 +66,7 @@ func (s *PhraseSuggestCollate) UnmarshalJSON(data []byte) error {
}
case "prune":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggestcollatequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggestcollatequery.go
index 76e3c79596..0396a97e18 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggestcollatequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggestcollatequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PhraseSuggestCollateQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L345-L354
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L345-L354
type PhraseSuggestCollateQuery struct {
// Id The search template ID.
Id *string `json:"id,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggester.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggester.go
index 6eeb3bd451..80dc5a5bfa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggester.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggester.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PhraseSuggester type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L356-L414
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L356-L414
type PhraseSuggester struct {
// Analyzer The analyzer to analyze the suggest text with.
// Defaults to the search analyzer of the suggest field.
@@ -119,7 +119,7 @@ func (s *PhraseSuggester) UnmarshalJSON(data []byte) error {
}
case "confidence":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -145,7 +145,7 @@ func (s *PhraseSuggester) UnmarshalJSON(data []byte) error {
}
case "force_unigrams":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -160,7 +160,7 @@ func (s *PhraseSuggester) UnmarshalJSON(data []byte) error {
case "gram_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -180,7 +180,7 @@ func (s *PhraseSuggester) UnmarshalJSON(data []byte) error {
}
case "max_errors":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -196,7 +196,7 @@ func (s *PhraseSuggester) UnmarshalJSON(data []byte) error {
}
case "real_word_error_likelihood":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -225,7 +225,7 @@ func (s *PhraseSuggester) UnmarshalJSON(data []byte) error {
case "shard_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -241,7 +241,7 @@ func (s *PhraseSuggester) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -274,7 +274,7 @@ func (s *PhraseSuggester) UnmarshalJSON(data []byte) error {
case "token_limit":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggesthighlight.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggesthighlight.go
index c50c257112..352063115d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggesthighlight.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggesthighlight.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PhraseSuggestHighlight type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L416-L425
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L416-L425
type PhraseSuggestHighlight struct {
// PostTag Use in conjunction with `pre_tag` to define the HTML tags to use for the
// highlighted text.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggestoption.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggestoption.go
index dc48c592c5..b863f2a727 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggestoption.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/phrasesuggestoption.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PhraseSuggestOption type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L86-L91
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L86-L91
type PhraseSuggestOption struct {
CollateMatch *bool `json:"collate_match,omitempty"`
Highlighted *string `json:"highlighted,omitempty"`
@@ -55,7 +55,7 @@ func (s *PhraseSuggestOption) UnmarshalJSON(data []byte) error {
switch t {
case "collate_match":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -81,7 +81,7 @@ func (s *PhraseSuggestOption) UnmarshalJSON(data []byte) error {
s.Highlighted = &o
case "score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pinneddoc.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pinneddoc.go
index cb04adc81d..52c1f70570 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pinneddoc.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pinneddoc.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// PinnedDoc type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L253-L262
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L253-L262
type PinnedDoc struct {
// Id_ The unique document ID.
Id_ string `json:"_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pinnedquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pinnedquery.go
index aedd33fc01..fbccf67f0a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pinnedquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pinnedquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PinnedQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L232-L251
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L232-L251
type PinnedQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -67,7 +67,7 @@ func (s *PinnedQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelineconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelineconfig.go
index 66862babb1..b94fe04869 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelineconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelineconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PipelineConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Pipeline.ts#L61-L75
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Pipeline.ts#L61-L75
type PipelineConfig struct {
// Description Description of the ingest pipeline.
Description *string `json:"description,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelinemetadata.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelinemetadata.go
index ad57e7b024..e77273c3df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelinemetadata.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelinemetadata.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PipelineMetadata type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/logstash/_types/Pipeline.ts#L23-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/logstash/_types/Pipeline.ts#L23-L26
type PipelineMetadata struct {
Type string `json:"type"`
Version string `json:"version"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelineprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelineprocessor.go
index 793aebb45b..c349544973 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelineprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelineprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PipelineProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L928-L939
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L928-L939
type PipelineProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -92,7 +92,7 @@ func (s *PipelineProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -106,7 +106,7 @@ func (s *PipelineProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing_pipeline":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelinesettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelinesettings.go
index dae2a2413b..bba1a7bab5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelinesettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelinesettings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PipelineSettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/logstash/_types/Pipeline.ts#L28-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/logstash/_types/Pipeline.ts#L28-L59
type PipelineSettings struct {
// PipelineBatchDelay When creating pipeline event batches, how long in milliseconds to wait for
// each event before dispatching an undersized batch to pipeline workers.
@@ -71,7 +71,7 @@ func (s *PipelineSettings) UnmarshalJSON(data []byte) error {
case "pipeline.batch.delay":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *PipelineSettings) UnmarshalJSON(data []byte) error {
case "pipeline.batch.size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -103,7 +103,7 @@ func (s *PipelineSettings) UnmarshalJSON(data []byte) error {
case "pipeline.workers":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -119,7 +119,7 @@ func (s *PipelineSettings) UnmarshalJSON(data []byte) error {
case "queue.checkpoint.writes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -135,7 +135,7 @@ func (s *PipelineSettings) UnmarshalJSON(data []byte) error {
case "queue.max_bytes.number":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelinesimulation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelinesimulation.go
index da55c2fa1b..95a89d0fe9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelinesimulation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipelinesimulation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// PipelineSimulation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/simulate/types.ts#L33-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/simulate/types.ts#L33-L39
type PipelineSimulation struct {
Doc *DocumentSimulation `json:"doc,omitempty"`
ProcessorResults []PipelineSimulation `json:"processor_results,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipeseparatedflagssimplequerystringflag.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipeseparatedflagssimplequerystringflag.go
index 81f78b8919..1323bf3742 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipeseparatedflagssimplequerystringflag.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pipeseparatedflagssimplequerystringflag.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// simplequerystringflag.SimpleQueryStringFlag
// string
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_spec_utils/PipeSeparatedFlags.ts#L20-L27
-type PipeSeparatedFlagsSimpleQueryStringFlag interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/PipeSeparatedFlags.ts#L20-L27
+type PipeSeparatedFlagsSimpleQueryStringFlag any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pivot.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pivot.go
index bd44499ac7..b4abf1142f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pivot.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pivot.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Pivot type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/_types/Transform.ts#L54-L68
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L54-L68
type Pivot struct {
// Aggregations Defines how to aggregate the grouped data. The following aggregations are
// currently supported: average, bucket
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pivotgroupbycontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pivotgroupbycontainer.go
index 1abbba978d..c35d386863 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pivotgroupbycontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pivotgroupbycontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// PivotGroupByContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/_types/Transform.ts#L70-L78
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L70-L78
type PivotGroupByContainer struct {
DateHistogram *DateHistogramAggregation `json:"date_histogram,omitempty"`
GeotileGrid *GeoTileGridAggregation `json:"geotile_grid,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pluginsrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pluginsrecord.go
index ad57ee02b5..2f617c34f4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pluginsrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pluginsrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PluginsRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/plugins/types.ts#L22-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/plugins/types.ts#L22-L52
type PluginsRecord struct {
// Component The component name.
Component *string `json:"component,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pluginsstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pluginsstatus.go
index 1a4baf9c10..a3497341db 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pluginsstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pluginsstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// PluginsStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L60-L62
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L60-L62
type PluginsStatus struct {
Status shutdownstatus.ShutdownStatus `json:"status"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pluginstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pluginstats.go
index 0db9d10c4f..d61dd948e6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pluginstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pluginstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PluginStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L180-L190
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L180-L190
type PluginStats struct {
Classname string `json:"classname"`
Description string `json:"description"`
@@ -94,7 +94,7 @@ func (s *PluginStats) UnmarshalJSON(data []byte) error {
}
case "has_native_controller":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,7 +113,7 @@ func (s *PluginStats) UnmarshalJSON(data []byte) error {
}
case "licensed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pointintimereference.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pointintimereference.go
index 1ae10140d2..60c8e26baa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pointintimereference.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pointintimereference.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// PointInTimeReference type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/PointInTimeReference.ts#L23-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/PointInTimeReference.ts#L23-L26
type PointInTimeReference struct {
Id string `json:"id"`
KeepAlive Duration `json:"keep_alive,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pointproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pointproperty.go
index 7a1a66e36f..509d36fcaf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pointproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pointproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// PointProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/geo.ts#L66-L71
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/geo.ts#L66-L71
type PointProperty struct {
CopyTo []string `json:"copy_to,omitempty"`
DocValues *bool `json:"doc_values,omitempty"`
@@ -83,7 +83,7 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,7 +108,7 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -399,6 +399,12 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -410,7 +416,7 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -425,7 +431,7 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -439,7 +445,7 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_z_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -479,7 +485,7 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -770,6 +776,12 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -792,7 +804,7 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pool.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pool.go
index fc543ba07b..17d67312d8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pool.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pool.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Pool type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L878-L895
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L878-L895
type Pool struct {
// MaxInBytes Maximum amount of memory, in bytes, available for use by the heap.
MaxInBytes *int64 `json:"max_in_bytes,omitempty"`
@@ -59,7 +59,7 @@ func (s *Pool) UnmarshalJSON(data []byte) error {
switch t {
case "max_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -74,7 +74,7 @@ func (s *Pool) UnmarshalJSON(data []byte) error {
}
case "peak_max_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -89,7 +89,7 @@ func (s *Pool) UnmarshalJSON(data []byte) error {
}
case "peak_used_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +104,7 @@ func (s *Pool) UnmarshalJSON(data []byte) error {
}
case "used_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/porterstemtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/porterstemtokenfilter.go
index 9a2f8fddea..4353708440 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/porterstemtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/porterstemtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// PorterStemTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L292-L294
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L294-L296
type PorterStemTokenFilter struct {
Type string `json:"type,omitempty"`
Version *string `json:"version,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/postmigrationfeature.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/postmigrationfeature.go
index 08d8d3e07e..c02a716566 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/postmigrationfeature.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/postmigrationfeature.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PostMigrationFeature type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L27-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L27-L29
type PostMigrationFeature struct {
FeatureName string `json:"feature_name"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/predicatetokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/predicatetokenfilter.go
index ef93a1f34f..8e37b6264e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/predicatetokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/predicatetokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// PredicateTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L296-L299
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L298-L301
type PredicateTokenFilter struct {
Script Script `json:"script"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/predictedvalue.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/predictedvalue.go
index 480b09aaee..e315061747 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/predictedvalue.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/predictedvalue.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -27,5 +27,5 @@ package types
// bool
// int
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L457-L457
-type PredictedValue interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L457-L457
+type PredictedValue any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/prefixquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/prefixquery.go
index 14cdbe3d05..ef5c1c402d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/prefixquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/prefixquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PrefixQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L87-L106
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L87-L106
type PrefixQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -76,7 +76,7 @@ func (s *PrefixQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *PrefixQuery) UnmarshalJSON(data []byte) error {
}
case "case_insensitive":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/preprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/preprocessor.go
index dae69f5ded..0a516a3f5a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/preprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/preprocessor.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Preprocessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model/types.ts#L31-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L31-L36
type Preprocessor struct {
FrequencyEncoding *FrequencyEncodingPreprocessor `json:"frequency_encoding,omitempty"`
OneHotEncoding *OneHotEncodingPreprocessor `json:"one_hot_encoding,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pressurememory.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pressurememory.go
index d67ac66c58..b1cc61fa6a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pressurememory.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/pressurememory.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PressureMemory type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L144-L199
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L144-L199
type PressureMemory struct {
// All Memory consumed by indexing requests in the coordinating, primary, or replica
// stage.
@@ -89,7 +89,7 @@ func (s *PressureMemory) UnmarshalJSON(data []byte) error {
}
case "all_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -109,7 +109,7 @@ func (s *PressureMemory) UnmarshalJSON(data []byte) error {
}
case "combined_coordinating_and_primary_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -129,7 +129,7 @@ func (s *PressureMemory) UnmarshalJSON(data []byte) error {
}
case "coordinating_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -144,7 +144,7 @@ func (s *PressureMemory) UnmarshalJSON(data []byte) error {
}
case "coordinating_rejections":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -164,7 +164,7 @@ func (s *PressureMemory) UnmarshalJSON(data []byte) error {
}
case "primary_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -179,7 +179,7 @@ func (s *PressureMemory) UnmarshalJSON(data []byte) error {
}
case "primary_rejections":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -199,7 +199,7 @@ func (s *PressureMemory) UnmarshalJSON(data []byte) error {
}
case "replica_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -214,7 +214,7 @@ func (s *PressureMemory) UnmarshalJSON(data []byte) error {
}
case "replica_rejections":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/privileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/privileges.go
index 70571608cf..7c78aa6872 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/privileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/privileges.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Privileges type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/has_privileges/types.ts#L48-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges/types.ts#L48-L48
type Privileges map[string]bool
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/privilegesactions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/privilegesactions.go
index 277ed72096..2d138c6863 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/privilegesactions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/privilegesactions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PrivilegesActions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/put_privileges/types.ts#L22-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/put_privileges/types.ts#L22-L27
type PrivilegesActions struct {
Actions []string `json:"actions"`
Application *string `json:"application,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/privilegescheck.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/privilegescheck.go
index 2b9e31039f..6489a17bb7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/privilegescheck.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/privilegescheck.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// PrivilegesCheck type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/has_privileges_user_profile/types.ts#L30-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges_user_profile/types.ts#L30-L37
type PrivilegesCheck struct {
Application []ApplicationPrivilegesCheck `json:"application,omitempty"`
// Cluster A list of the cluster privileges that you want to check.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/process.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/process.go
index b082658fb9..15bd00ca47 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/process.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/process.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Process type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L953-L975
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L953-L975
type Process struct {
// Cpu Contains CPU statistics for the node.
Cpu *Cpu `json:"cpu,omitempty"`
@@ -70,7 +70,7 @@ func (s *Process) UnmarshalJSON(data []byte) error {
case "max_file_descriptors":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *Process) UnmarshalJSON(data []byte) error {
case "open_file_descriptors":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -106,7 +106,7 @@ func (s *Process) UnmarshalJSON(data []byte) error {
}
case "timestamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/processor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/processor.go
index a7fdf3fad6..862d2ead24 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/processor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/processor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Processor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L384-L401
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L384-L401
type Processor struct {
// Count Number of documents transformed by the processor.
Count *int64 `json:"count,omitempty"`
@@ -59,7 +59,7 @@ func (s *Processor) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -74,7 +74,7 @@ func (s *Processor) UnmarshalJSON(data []byte) error {
}
case "current":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -89,7 +89,7 @@ func (s *Processor) UnmarshalJSON(data []byte) error {
}
case "failed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/processorcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/processorcontainer.go
index 74451ff54f..4c22b0935b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/processorcontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/processorcontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ProcessorContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L27-L239
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L27-L239
type ProcessorContainer struct {
// Append Appends one or more values to an existing array if the field already exists
// and it is an array.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/profile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/profile.go
index 8176ca7aef..b4641e82a9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/profile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/profile.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Profile type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/profile.ts#L93-L95
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L93-L95
type Profile struct {
Shards []ShardProfile `json:"shards"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/property.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/property.go
index 9de3b59435..af226ab880 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/property.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/property.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -69,6 +69,7 @@ package types
// IntegerRangeProperty
// IpRangeProperty
// LongRangeProperty
+// IcuCollationProperty
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/Property.ts#L94-L158
-type Property interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/Property.ts#L95-L162
+type Property any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/publishedclusterstates.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/publishedclusterstates.go
index 249a5c4915..d49cd1a89c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/publishedclusterstates.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/publishedclusterstates.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// PublishedClusterStates type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L263-L276
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L263-L276
type PublishedClusterStates struct {
// CompatibleDiffs Number of compatible differences between published cluster states.
CompatibleDiffs *int64 `json:"compatible_diffs,omitempty"`
@@ -57,7 +57,7 @@ func (s *PublishedClusterStates) UnmarshalJSON(data []byte) error {
switch t {
case "compatible_diffs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *PublishedClusterStates) UnmarshalJSON(data []byte) error {
}
case "full_states":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *PublishedClusterStates) UnmarshalJSON(data []byte) error {
}
case "incompatible_diffs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queries.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queries.go
index b3f6143218..ca65886e04 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queries.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queries.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Queries type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L401-L403
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L401-L403
type Queries struct {
Cache *CacheQueries `json:"cache,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/query.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/query.go
index 108a79d4ae..f41228113a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/query.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/query.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// Query type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/abstractions.ts#L100-L407
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/abstractions.ts#L100-L407
type Query struct {
// Bool matches documents matching boolean combinations of other queries.
Bool *BoolQuery `json:"bool,omitempty"`
@@ -57,9 +57,6 @@ type Query struct {
DistanceFeature DistanceFeatureQuery `json:"distance_feature,omitempty"`
// Exists Returns documents that contain an indexed value for a field.
Exists *ExistsQuery `json:"exists,omitempty"`
- // FieldMaskingSpan Wrapper to allow span queries to participate in composite single-field span
- // queries by _lying_ about their search field.
- FieldMaskingSpan *SpanFieldMaskingQuery `json:"field_masking_span,omitempty"`
// FunctionScore The `function_score` enables you to modify the score of documents that are
// retrieved by a query.
FunctionScore *FunctionScoreQuery `json:"function_score,omitempty"`
@@ -148,6 +145,9 @@ type Query struct {
SimpleQueryString *SimpleQueryStringQuery `json:"simple_query_string,omitempty"`
// SpanContaining Returns matches which enclose another span query.
SpanContaining *SpanContainingQuery `json:"span_containing,omitempty"`
+ // SpanFieldMasking Wrapper to allow span queries to participate in composite single-field span
+ // queries by _lying_ about their search field.
+ SpanFieldMasking *SpanFieldMaskingQuery `json:"span_field_masking,omitempty"`
// SpanFirst Matches spans near the beginning of a field.
SpanFirst *SpanFirstQuery `json:"span_first,omitempty"`
// SpanMulti Allows you to wrap a multi term query (one of `wildcard`, `fuzzy`, `prefix`,
@@ -262,11 +262,6 @@ func (s *Query) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Exists", err)
}
- case "field_masking_span":
- if err := dec.Decode(&s.FieldMaskingSpan); err != nil {
- return fmt.Errorf("%s | %w", "FieldMaskingSpan", err)
- }
-
case "function_score":
if err := dec.Decode(&s.FunctionScore); err != nil {
return fmt.Errorf("%s | %w", "FunctionScore", err)
@@ -464,6 +459,11 @@ func (s *Query) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "SpanContaining", err)
}
+ case "span_field_masking":
+ if err := dec.Decode(&s.SpanFieldMasking); err != nil {
+ return fmt.Errorf("%s | %w", "SpanFieldMasking", err)
+ }
+
case "span_first":
if err := dec.Decode(&s.SpanFirst); err != nil {
return fmt.Errorf("%s | %w", "SpanFirst", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querybreakdown.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querybreakdown.go
index 8f13779761..ed04db7151 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querybreakdown.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querybreakdown.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// QueryBreakdown type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/profile.ts#L97-L116
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L97-L116
type QueryBreakdown struct {
Advance int64 `json:"advance"`
AdvanceCount int64 `json:"advance_count"`
@@ -69,7 +69,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
switch t {
case "advance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -84,7 +84,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "advance_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -99,7 +99,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "build_scorer":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "build_scorer_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -129,7 +129,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "compute_max_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -144,7 +144,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "compute_max_score_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -159,7 +159,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "create_weight":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -174,7 +174,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "create_weight_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -189,7 +189,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "match":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -204,7 +204,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "match_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -219,7 +219,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "next_doc":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -234,7 +234,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "next_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -249,7 +249,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -264,7 +264,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "score_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -279,7 +279,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "set_min_competitive_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -294,7 +294,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "set_min_competitive_score_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -309,7 +309,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "shallow_advance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -324,7 +324,7 @@ func (s *QueryBreakdown) UnmarshalJSON(data []byte) error {
}
case "shallow_advance_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querycachestats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querycachestats.go
index e6b7486be1..e58858b6cc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querycachestats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querycachestats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,20 +31,20 @@ import (
// QueryCacheStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L192-L226
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L192-L226
type QueryCacheStats struct {
// CacheCount Total number of entries added to the query cache across all shards assigned
// to selected nodes.
// This number includes current and evicted entries.
- CacheCount int `json:"cache_count"`
+ CacheCount int64 `json:"cache_count"`
// CacheSize Total number of entries currently in the query cache across all shards
// assigned to selected nodes.
- CacheSize int `json:"cache_size"`
+ CacheSize int64 `json:"cache_size"`
// Evictions Total number of query cache evictions across all shards assigned to selected
// nodes.
- Evictions int `json:"evictions"`
+ Evictions int64 `json:"evictions"`
// HitCount Total count of query cache hits across all shards assigned to selected nodes.
- HitCount int `json:"hit_count"`
+ HitCount int64 `json:"hit_count"`
// MemorySize Total amount of memory used for the query cache across all shards assigned to
// selected nodes.
MemorySize ByteSize `json:"memory_size,omitempty"`
@@ -53,10 +53,10 @@ type QueryCacheStats struct {
MemorySizeInBytes int64 `json:"memory_size_in_bytes"`
// MissCount Total count of query cache misses across all shards assigned to selected
// nodes.
- MissCount int `json:"miss_count"`
+ MissCount int64 `json:"miss_count"`
// TotalCount Total count of hits and misses in the query cache across all shards assigned
// to selected nodes.
- TotalCount int `json:"total_count"`
+ TotalCount int64 `json:"total_count"`
}
func (s *QueryCacheStats) UnmarshalJSON(data []byte) error {
@@ -75,66 +75,62 @@ func (s *QueryCacheStats) UnmarshalJSON(data []byte) error {
switch t {
case "cache_count":
-
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.Atoi(v)
+ value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
return fmt.Errorf("%s | %w", "CacheCount", err)
}
s.CacheCount = value
case float64:
- f := int(v)
+ f := int64(v)
s.CacheCount = f
}
case "cache_size":
-
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.Atoi(v)
+ value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
return fmt.Errorf("%s | %w", "CacheSize", err)
}
s.CacheSize = value
case float64:
- f := int(v)
+ f := int64(v)
s.CacheSize = f
}
case "evictions":
-
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.Atoi(v)
+ value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
return fmt.Errorf("%s | %w", "Evictions", err)
}
s.Evictions = value
case float64:
- f := int(v)
+ f := int64(v)
s.Evictions = f
}
case "hit_count":
-
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.Atoi(v)
+ value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
return fmt.Errorf("%s | %w", "HitCount", err)
}
s.HitCount = value
case float64:
- f := int(v)
+ f := int64(v)
s.HitCount = f
}
@@ -144,7 +140,7 @@ func (s *QueryCacheStats) UnmarshalJSON(data []byte) error {
}
case "memory_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -159,34 +155,32 @@ func (s *QueryCacheStats) UnmarshalJSON(data []byte) error {
}
case "miss_count":
-
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.Atoi(v)
+ value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
return fmt.Errorf("%s | %w", "MissCount", err)
}
s.MissCount = value
case float64:
- f := int(v)
+ f := int64(v)
s.MissCount = f
}
case "total_count":
-
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
- value, err := strconv.Atoi(v)
+ value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
return fmt.Errorf("%s | %w", "TotalCount", err)
}
s.TotalCount = value
case float64:
- f := int(v)
+ f := int64(v)
s.TotalCount = f
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryprofile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryprofile.go
index 413d8c848a..ff57adb337 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryprofile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryprofile.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// QueryProfile type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/profile.ts#L118-L124
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L118-L124
type QueryProfile struct {
Breakdown QueryBreakdown `json:"breakdown"`
Children []QueryProfile `json:"children,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrule.go
index e69b94a1d2..12ed8f4463 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrule.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrule.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// QueryRule type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/query_ruleset/_types/QueryRuleset.ts#L37-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/_types/QueryRuleset.ts#L37-L42
type QueryRule struct {
Actions QueryRuleActions `json:"actions"`
Criteria []QueryRuleCriteria `json:"criteria"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryruleactions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryruleactions.go
index 1f30a21d55..aef9bc6a6f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryruleactions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryruleactions.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// QueryRuleActions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/query_ruleset/_types/QueryRuleset.ts#L67-L70
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/_types/QueryRuleset.ts#L67-L70
type QueryRuleActions struct {
Docs []PinnedDoc `json:"docs,omitempty"`
Ids []string `json:"ids,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrulecriteria.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrulecriteria.go
index cf6a6bec41..5defbfb3ff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrulecriteria.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrulecriteria.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// QueryRuleCriteria type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/query_ruleset/_types/QueryRuleset.ts#L48-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/_types/QueryRuleset.ts#L48-L52
type QueryRuleCriteria struct {
Metadata string `json:"metadata"`
Type queryrulecriteriatype.QueryRuleCriteriaType `json:"type"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryruleset.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryruleset.go
index c5d957e749..c54964bd94 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryruleset.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryruleset.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// QueryRuleset type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/query_ruleset/_types/QueryRuleset.ts#L26-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/_types/QueryRuleset.ts#L26-L35
type QueryRuleset struct {
// Rules Rules associated with the query ruleset
Rules []QueryRule `json:"rules"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrulesetlistitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrulesetlistitem.go
index f44318f6b2..3b0ca64662 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrulesetlistitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryrulesetlistitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// QueryRulesetListItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/query_ruleset/list/types.ts#L22-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/query_ruleset/list/types.ts#L22-L31
type QueryRulesetListItem struct {
// RulesCount The number of rules associated with this ruleset
RulesCount int `json:"rules_count"`
@@ -56,7 +56,7 @@ func (s *QueryRulesetListItem) UnmarshalJSON(data []byte) error {
case "rules_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querystringquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querystringquery.go
index 88e6cdf4e1..d8f969b704 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querystringquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querystringquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// QueryStringQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L580-L700
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L580-L700
type QueryStringQuery struct {
// AllowLeadingWildcard If `true`, the wildcard characters `*` and `?` are allowed as the first
// character of the query string.
@@ -124,7 +124,7 @@ func (s *QueryStringQuery) UnmarshalJSON(data []byte) error {
switch t {
case "allow_leading_wildcard":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +138,7 @@ func (s *QueryStringQuery) UnmarshalJSON(data []byte) error {
}
case "analyze_wildcard":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -164,7 +164,7 @@ func (s *QueryStringQuery) UnmarshalJSON(data []byte) error {
s.Analyzer = &o
case "auto_generate_synonyms_phrase_query":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -178,7 +178,7 @@ func (s *QueryStringQuery) UnmarshalJSON(data []byte) error {
}
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -204,7 +204,7 @@ func (s *QueryStringQuery) UnmarshalJSON(data []byte) error {
}
case "enable_position_increments":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -218,7 +218,7 @@ func (s *QueryStringQuery) UnmarshalJSON(data []byte) error {
}
case "escape":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -243,7 +243,7 @@ func (s *QueryStringQuery) UnmarshalJSON(data []byte) error {
case "fuzzy_max_expansions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -259,7 +259,7 @@ func (s *QueryStringQuery) UnmarshalJSON(data []byte) error {
case "fuzzy_prefix_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -279,7 +279,7 @@ func (s *QueryStringQuery) UnmarshalJSON(data []byte) error {
}
case "fuzzy_transpositions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -293,7 +293,7 @@ func (s *QueryStringQuery) UnmarshalJSON(data []byte) error {
}
case "lenient":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -308,7 +308,7 @@ func (s *QueryStringQuery) UnmarshalJSON(data []byte) error {
case "max_determinized_states":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -328,7 +328,7 @@ func (s *QueryStringQuery) UnmarshalJSON(data []byte) error {
}
case "phrase_slop":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -397,7 +397,7 @@ func (s *QueryStringQuery) UnmarshalJSON(data []byte) error {
}
case "tie_breaker":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryvectorbuilder.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryvectorbuilder.go
index ca04cb9c36..f4becf1a21 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryvectorbuilder.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/queryvectorbuilder.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// QueryVectorBuilder type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Knn.ts#L51-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Knn.ts#L69-L72
type QueryVectorBuilder struct {
TextEmbedding *TextEmbedding `json:"text_embedding,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querywatch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querywatch.go
index ebefa07261..5511ee9c7d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querywatch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/querywatch.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// QueryWatch type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Watch.ts#L58-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Watch.ts#L58-L64
type QueryWatch struct {
Id_ string `json:"_id"`
PrimaryTerm_ *int `json:"_primary_term,omitempty"`
@@ -62,7 +62,7 @@ func (s *QueryWatch) UnmarshalJSON(data []byte) error {
case "_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/questionansweringinferenceoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/questionansweringinferenceoptions.go
index a28b50d08a..5f13fe3161 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/questionansweringinferenceoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/questionansweringinferenceoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// QuestionAnsweringInferenceOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L282-L292
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L282-L292
type QuestionAnsweringInferenceOptions struct {
// MaxAnswerLength The maximum answer length to consider
MaxAnswerLength *int `json:"max_answer_length,omitempty"`
@@ -61,7 +61,7 @@ func (s *QuestionAnsweringInferenceOptions) UnmarshalJSON(data []byte) error {
case "max_answer_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -77,7 +77,7 @@ func (s *QuestionAnsweringInferenceOptions) UnmarshalJSON(data []byte) error {
case "num_top_classes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/questionansweringinferenceupdateoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/questionansweringinferenceupdateoptions.go
index a41bfbd826..35703c2397 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/questionansweringinferenceupdateoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/questionansweringinferenceupdateoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// QuestionAnsweringInferenceUpdateOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L420-L431
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L420-L431
type QuestionAnsweringInferenceUpdateOptions struct {
// MaxAnswerLength The maximum answer length to consider for extraction
MaxAnswerLength *int `json:"max_answer_length,omitempty"`
@@ -63,7 +63,7 @@ func (s *QuestionAnsweringInferenceUpdateOptions) UnmarshalJSON(data []byte) err
case "max_answer_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -79,7 +79,7 @@ func (s *QuestionAnsweringInferenceUpdateOptions) UnmarshalJSON(data []byte) err
case "num_top_classes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/randomscorefunction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/randomscorefunction.go
index d68175bc71..0cc5870387 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/randomscorefunction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/randomscorefunction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RandomScoreFunction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L127-L130
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L127-L130
type RandomScoreFunction struct {
Field *string `json:"field,omitempty"`
Seed string `json:"seed,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangeaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangeaggregate.go
index 59a4fc4425..dc871d10fc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangeaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangeaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// RangeAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L531-L532
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L531-L532
type RangeAggregate struct {
Buckets BucketsRangeBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangeaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangeaggregation.go
index cdc268d923..e34fb9bc49 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangeaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangeaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,19 +31,17 @@ import (
// RangeAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L648-L668
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L652-L672
type RangeAggregation struct {
// Field The date field whose values are use to build ranges.
Field *string `json:"field,omitempty"`
Format *string `json:"format,omitempty"`
// Keyed Set to `true` to associate a unique string key with each bucket and return
// the ranges as a hash rather than an array.
- Keyed *bool `json:"keyed,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
+ Keyed *bool `json:"keyed,omitempty"`
// Missing The value to apply to documents that do not have a value.
// By default, documents without a value are ignored.
- Missing *int `json:"missing,omitempty"`
- Name *string `json:"name,omitempty"`
+ Missing *int `json:"missing,omitempty"`
// Ranges An array of ranges used to bucket documents.
Ranges []AggregationRange `json:"ranges,omitempty"`
Script Script `json:"script,omitempty"`
@@ -82,7 +80,7 @@ func (s *RangeAggregation) UnmarshalJSON(data []byte) error {
s.Format = &o
case "keyed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,14 +93,9 @@ func (s *RangeAggregation) UnmarshalJSON(data []byte) error {
s.Keyed = &v
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -116,18 +109,6 @@ func (s *RangeAggregation) UnmarshalJSON(data []byte) error {
s.Missing = &f
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "ranges":
if err := dec.Decode(&s.Ranges); err != nil {
return fmt.Errorf("%s | %w", "Ranges", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangebucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangebucket.go
index 1d184bdb11..650e1070c9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangebucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangebucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// RangeBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L534-L541
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L534-L541
type RangeBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -60,7 +60,7 @@ func (s *RangeBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -75,7 +75,7 @@ func (s *RangeBucket) UnmarshalJSON(data []byte) error {
}
case "from":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -115,7 +115,7 @@ func (s *RangeBucket) UnmarshalJSON(data []byte) error {
s.Key = &o
case "to":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -587,7 +587,7 @@ func (s *RangeBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -637,7 +637,7 @@ func (s *RangeBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -647,7 +647,7 @@ func (s *RangeBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -664,7 +664,7 @@ func (s *RangeBucket) UnmarshalJSON(data []byte) error {
func (s RangeBucket) MarshalJSON() ([]byte, error) {
type opt RangeBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequery.go
index f7783366f8..8b9eb00b33 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rangequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// DateRangeQuery
// NumberRangeQuery
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L166-L168
-type RangeQuery interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L166-L168
+type RangeQuery any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankcontainer.go
index cb889ed5f9..e7a436cfd1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankcontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankcontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// RankContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Rank.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Rank.ts#L22-L28
type RankContainer struct {
// Rrf The reciprocal rank fusion parameters
Rrf *RrfRank `json:"rrf,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankeddocument.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankeddocument.go
new file mode 100644
index 0000000000..107b224c06
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankeddocument.go
@@ -0,0 +1,110 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Code generated from the elasticsearch-specification DO NOT EDIT.
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
+
+package types
+
+import (
+ "bytes"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "strconv"
+)
+
+// RankedDocument type.
+//
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Results.ts#L66-L76
+type RankedDocument struct {
+ Index int `json:"index"`
+ Score float32 `json:"score"`
+ Text *string `json:"text,omitempty"`
+}
+
+func (s *RankedDocument) UnmarshalJSON(data []byte) error {
+
+ dec := json.NewDecoder(bytes.NewReader(data))
+
+ for {
+ t, err := dec.Token()
+ if err != nil {
+ if errors.Is(err, io.EOF) {
+ break
+ }
+ return err
+ }
+
+ switch t {
+
+ case "index":
+
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.Atoi(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Index", err)
+ }
+ s.Index = value
+ case float64:
+ f := int(v)
+ s.Index = f
+ }
+
+ case "score":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseFloat(v, 32)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "Score", err)
+ }
+ f := float32(value)
+ s.Score = f
+ case float64:
+ f := float32(v)
+ s.Score = f
+ }
+
+ case "text":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "Text", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.Text = &o
+
+ }
+ }
+ return nil
+}
+
+// NewRankedDocument returns a RankedDocument.
+func NewRankedDocument() *RankedDocument {
+ r := &RankedDocument{}
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalhit.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalhit.go
index 84c8dbd8fc..a8bfd68ebc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalhit.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalhit.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RankEvalHit type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/types.ts#L141-L145
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L141-L145
type RankEvalHit struct {
Id_ string `json:"_id"`
Index_ string `json:"_index"`
@@ -64,7 +64,7 @@ func (s *RankEvalHit) UnmarshalJSON(data []byte) error {
}
case "_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalhititem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalhititem.go
index 0082fef07d..c1f6b142a2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalhititem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalhititem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// RankEvalHitItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/types.ts#L136-L139
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L136-L139
type RankEvalHitItem struct {
Hit RankEvalHit `json:"hit"`
Rating Float64 `json:"rating,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetric.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetric.go
index d503dc5a9d..3c4e1fd713 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetric.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetric.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// RankEvalMetric type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/types.ts#L90-L96
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L90-L96
type RankEvalMetric struct {
Dcg *RankEvalMetricDiscountedCumulativeGain `json:"dcg,omitempty"`
ExpectedReciprocalRank *RankEvalMetricExpectedReciprocalRank `json:"expected_reciprocal_rank,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricdetail.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricdetail.go
index f3ac176ec6..0f46e67a2f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricdetail.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricdetail.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RankEvalMetricDetail type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/types.ts#L125-L134
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L125-L134
type RankEvalMetricDetail struct {
// Hits The hits section shows a grouping of the search results with their supplied
// ratings
@@ -78,7 +78,7 @@ func (s *RankEvalMetricDetail) UnmarshalJSON(data []byte) error {
}
case "metric_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricdiscountedcumulativegain.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricdiscountedcumulativegain.go
index da3eb452f6..3ea0cce8ec 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricdiscountedcumulativegain.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricdiscountedcumulativegain.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RankEvalMetricDiscountedCumulativeGain type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/types.ts#L66-L77
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L66-L77
type RankEvalMetricDiscountedCumulativeGain struct {
// K Sets the maximum number of documents retrieved per query. This value will act
// in place of the usual size parameter in the query.
@@ -57,7 +57,7 @@ func (s *RankEvalMetricDiscountedCumulativeGain) UnmarshalJSON(data []byte) erro
case "k":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *RankEvalMetricDiscountedCumulativeGain) UnmarshalJSON(data []byte) erro
}
case "normalize":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricexpectedreciprocalrank.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricexpectedreciprocalrank.go
index aa548b6ce8..4f47b1cebc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricexpectedreciprocalrank.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricexpectedreciprocalrank.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RankEvalMetricExpectedReciprocalRank type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/types.ts#L79-L88
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L79-L88
type RankEvalMetricExpectedReciprocalRank struct {
// K Sets the maximum number of documents retrieved per query. This value will act
// in place of the usual size parameter in the query.
@@ -57,7 +57,7 @@ func (s *RankEvalMetricExpectedReciprocalRank) UnmarshalJSON(data []byte) error
case "k":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -73,7 +73,7 @@ func (s *RankEvalMetricExpectedReciprocalRank) UnmarshalJSON(data []byte) error
case "maximum_relevance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricmeanreciprocalrank.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricmeanreciprocalrank.go
index f3fd491dda..28593ecacf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricmeanreciprocalrank.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricmeanreciprocalrank.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RankEvalMetricMeanReciprocalRank type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/types.ts#L60-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L60-L64
type RankEvalMetricMeanReciprocalRank struct {
// K Sets the maximum number of documents retrieved per query. This value will act
// in place of the usual size parameter in the query.
@@ -58,7 +58,7 @@ func (s *RankEvalMetricMeanReciprocalRank) UnmarshalJSON(data []byte) error {
case "k":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -74,7 +74,7 @@ func (s *RankEvalMetricMeanReciprocalRank) UnmarshalJSON(data []byte) error {
case "relevant_rating_threshold":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricprecision.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricprecision.go
index e0e2fff667..7341424506 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricprecision.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricprecision.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RankEvalMetricPrecision type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/types.ts#L42-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L42-L52
type RankEvalMetricPrecision struct {
// IgnoreUnlabeled Controls how unlabeled documents in the search results are counted. If set to
// true, unlabeled documents are ignored and neither count as relevant or
@@ -61,7 +61,7 @@ func (s *RankEvalMetricPrecision) UnmarshalJSON(data []byte) error {
switch t {
case "ignore_unlabeled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -76,7 +76,7 @@ func (s *RankEvalMetricPrecision) UnmarshalJSON(data []byte) error {
case "k":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *RankEvalMetricPrecision) UnmarshalJSON(data []byte) error {
case "relevant_rating_threshold":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricratingtreshold.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricratingtreshold.go
index 6f90873e7e..14eef26722 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricratingtreshold.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricratingtreshold.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RankEvalMetricRatingTreshold type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/types.ts#L34-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L34-L40
type RankEvalMetricRatingTreshold struct {
// K Sets the maximum number of documents retrieved per query. This value will act
// in place of the usual size parameter in the query.
@@ -58,7 +58,7 @@ func (s *RankEvalMetricRatingTreshold) UnmarshalJSON(data []byte) error {
case "k":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -74,7 +74,7 @@ func (s *RankEvalMetricRatingTreshold) UnmarshalJSON(data []byte) error {
case "relevant_rating_threshold":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricrecall.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricrecall.go
index f774ed65a8..ad36c0ef5c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricrecall.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalmetricrecall.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RankEvalMetricRecall type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/types.ts#L54-L58
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L54-L58
type RankEvalMetricRecall struct {
// K Sets the maximum number of documents retrieved per query. This value will act
// in place of the usual size parameter in the query.
@@ -58,7 +58,7 @@ func (s *RankEvalMetricRecall) UnmarshalJSON(data []byte) error {
case "k":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -74,7 +74,7 @@ func (s *RankEvalMetricRecall) UnmarshalJSON(data []byte) error {
case "relevant_rating_threshold":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalquery.go
index 6dc3501686..31b6975672 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RankEvalQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/types.ts#L111-L114
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L111-L114
type RankEvalQuery struct {
Query Query `json:"query"`
Size *int `json:"size,omitempty"`
@@ -59,7 +59,7 @@ func (s *RankEvalQuery) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalrequestitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalrequestitem.go
index edf904a1a7..0714ced7dd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalrequestitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankevalrequestitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// RankEvalRequestItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/types.ts#L98-L109
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L98-L109
type RankEvalRequestItem struct {
// Id The search request’s ID, used to group result details later.
Id string `json:"id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunction.go
index 44f35deda5..67b50dbaaa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunction.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// RankFeatureFunction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L264-L264
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L264-L264
type RankFeatureFunction struct {
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionlinear.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionlinear.go
index 2b532283ee..81b862d375 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionlinear.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionlinear.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// RankFeatureFunctionLinear type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L266-L266
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L266-L266
type RankFeatureFunctionLinear struct {
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionlogarithm.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionlogarithm.go
index 6f0ca0f921..fe957d054c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionlogarithm.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionlogarithm.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RankFeatureFunctionLogarithm type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L268-L273
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L268-L273
type RankFeatureFunctionLogarithm struct {
// ScalingFactor Configurable scaling factor.
ScalingFactor float32 `json:"scaling_factor"`
@@ -53,7 +53,7 @@ func (s *RankFeatureFunctionLogarithm) UnmarshalJSON(data []byte) error {
switch t {
case "scaling_factor":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionsaturation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionsaturation.go
index b0fee5718b..ee01d14505 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionsaturation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionsaturation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RankFeatureFunctionSaturation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L275-L280
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L275-L280
type RankFeatureFunctionSaturation struct {
// Pivot Configurable pivot value so that the result will be less than 0.5.
Pivot *float32 `json:"pivot,omitempty"`
@@ -53,7 +53,7 @@ func (s *RankFeatureFunctionSaturation) UnmarshalJSON(data []byte) error {
switch t {
case "pivot":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionsigmoid.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionsigmoid.go
index 83a76bf2b1..36a905b634 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionsigmoid.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturefunctionsigmoid.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RankFeatureFunctionSigmoid type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L282-L291
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L282-L291
type RankFeatureFunctionSigmoid struct {
// Exponent Configurable Exponent.
Exponent float32 `json:"exponent"`
@@ -55,7 +55,7 @@ func (s *RankFeatureFunctionSigmoid) UnmarshalJSON(data []byte) error {
switch t {
case "exponent":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *RankFeatureFunctionSigmoid) UnmarshalJSON(data []byte) error {
}
case "pivot":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeatureproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeatureproperty.go
index ffc680b3a4..0765517f2f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeatureproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeatureproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// RankFeatureProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L184-L187
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L186-L189
type RankFeatureProperty struct {
Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
Fields map[string]Property `json:"fields,omitempty"`
@@ -72,7 +72,7 @@ func (s *RankFeatureProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -363,6 +363,12 @@ func (s *RankFeatureProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -374,7 +380,7 @@ func (s *RankFeatureProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -397,7 +403,7 @@ func (s *RankFeatureProperty) UnmarshalJSON(data []byte) error {
}
case "positive_score_impact":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -417,7 +423,7 @@ func (s *RankFeatureProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -708,6 +714,12 @@ func (s *RankFeatureProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturequery.go
index a20b31ec4e..3360ce622a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RankFeatureQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L293-L316
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L293-L316
type RankFeatureQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -72,7 +72,7 @@ func (s *RankFeatureQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturesproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturesproperty.go
index 27b906ca14..aa7f355b80 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturesproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rankfeaturesproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// RankFeaturesProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L189-L192
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L191-L194
type RankFeaturesProperty struct {
Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
Fields map[string]Property `json:"fields,omitempty"`
@@ -72,7 +72,7 @@ func (s *RankFeaturesProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -363,6 +363,12 @@ func (s *RankFeaturesProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -374,7 +380,7 @@ func (s *RankFeaturesProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -397,7 +403,7 @@ func (s *RankFeaturesProperty) UnmarshalJSON(data []byte) error {
}
case "positive_score_impact":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -417,7 +423,7 @@ func (s *RankFeaturesProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -708,6 +714,12 @@ func (s *RankFeaturesProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/raretermsaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/raretermsaggregation.go
index 0a5d7dcc8a..88af3235d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/raretermsaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/raretermsaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RareTermsAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L685-L715
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L689-L719
type RareTermsAggregation struct {
// Exclude Terms that should be excluded from the aggregation.
Exclude []string `json:"exclude,omitempty"`
@@ -40,12 +40,10 @@ type RareTermsAggregation struct {
// Include Terms that should be included in the aggregation.
Include TermsInclude `json:"include,omitempty"`
// MaxDocCount The maximum number of documents a term should appear in.
- MaxDocCount *int64 `json:"max_doc_count,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
+ MaxDocCount *int64 `json:"max_doc_count,omitempty"`
// Missing The value to apply to documents that do not have a value.
// By default, documents without a value are ignored.
Missing Missing `json:"missing,omitempty"`
- Name *string `json:"name,omitempty"`
// Precision The precision of the internal CuckooFilters.
// Smaller precision leads to better approximation, but higher memory usage.
Precision *Float64 `json:"precision,omitempty"`
@@ -94,7 +92,7 @@ func (s *RareTermsAggregation) UnmarshalJSON(data []byte) error {
}
case "max_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,30 +106,13 @@ func (s *RareTermsAggregation) UnmarshalJSON(data []byte) error {
s.MaxDocCount = &f
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "missing":
if err := dec.Decode(&s.Missing); err != nil {
return fmt.Errorf("%s | %w", "Missing", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "precision":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rateaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rateaggregate.go
index b63d7e71ad..0650b697e1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rateaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rateaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RateAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L741-L745
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L741-L745
type RateAggregate struct {
Meta Metadata `json:"meta,omitempty"`
Value Float64 `json:"value"`
@@ -59,7 +59,7 @@ func (s *RateAggregate) UnmarshalJSON(data []byte) error {
}
case "value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rateaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rateaggregation.go
index 9692ec0bf2..7038ce8eed 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rateaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rateaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// RateAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L230-L241
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L230-L241
type RateAggregation struct {
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/readexception.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/readexception.go
index a8911764f0..a6f08e5514 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/readexception.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/readexception.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ReadException type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ccr/_types/FollowIndexStats.ts#L71-L75
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ccr/_types/FollowIndexStats.ts#L71-L75
type ReadException struct {
Exception ErrorCause `json:"exception"`
FromSeqNo int64 `json:"from_seq_no"`
@@ -65,7 +65,7 @@ func (s *ReadException) UnmarshalJSON(data []byte) error {
case "retries":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/readonlyurlrepository.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/readonlyurlrepository.go
index 5cce5509fc..afeb429fd8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/readonlyurlrepository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/readonlyurlrepository.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ReadOnlyUrlRepository type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotRepository.ts#L60-L63
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L60-L63
type ReadOnlyUrlRepository struct {
Settings ReadOnlyUrlRepositorySettings `json:"settings"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/readonlyurlrepositorysettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/readonlyurlrepositorysettings.go
index 057745b80c..dc8658c1b7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/readonlyurlrepositorysettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/readonlyurlrepositorysettings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ReadOnlyUrlRepositorySettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotRepository.ts#L110-L115
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L110-L115
type ReadOnlyUrlRepositorySettings struct {
ChunkSize ByteSize `json:"chunk_size,omitempty"`
Compress *bool `json:"compress,omitempty"`
@@ -64,7 +64,7 @@ func (s *ReadOnlyUrlRepositorySettings) UnmarshalJSON(data []byte) error {
}
case "compress":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -79,7 +79,7 @@ func (s *ReadOnlyUrlRepositorySettings) UnmarshalJSON(data []byte) error {
case "http_max_retries":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *ReadOnlyUrlRepositorySettings) UnmarshalJSON(data []byte) error {
case "max_number_of_snapshots":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/realmcache.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/realmcache.go
index e37bca1b4c..3523dbd8de 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/realmcache.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/realmcache.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RealmCache type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L266-L268
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L266-L268
type RealmCache struct {
Size int64 `json:"size"`
}
@@ -52,7 +52,7 @@ func (s *RealmCache) UnmarshalJSON(data []byte) error {
switch t {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/realminfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/realminfo.go
index 30d9e83d82..c20a9d18ce 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/realminfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/realminfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RealmInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/RealmInfo.ts#L22-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RealmInfo.ts#L22-L25
type RealmInfo struct {
Name string `json:"name"`
Type string `json:"type"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recording.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recording.go
index a464bfa6e7..630bac8e4b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recording.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recording.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Recording type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L225-L230
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L225-L230
type Recording struct {
CumulativeExecutionCount *int64 `json:"cumulative_execution_count,omitempty"`
CumulativeExecutionTime Duration `json:"cumulative_execution_time,omitempty"`
@@ -55,7 +55,7 @@ func (s *Recording) UnmarshalJSON(data []byte) error {
switch t {
case "cumulative_execution_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverybytes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverybytes.go
index 613c1e69e2..d22e27e5d6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverybytes.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverybytes.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// RecoveryBytes type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/recovery/types.ts#L38-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L38-L48
type RecoveryBytes struct {
Percent Percentage `json:"percent"`
Recovered ByteSize `json:"recovered,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryfiles.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryfiles.go
index cc16d90bf1..fcd44140e3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryfiles.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryfiles.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RecoveryFiles type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/recovery/types.ts#L56-L62
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L56-L62
type RecoveryFiles struct {
Details []FileDetails `json:"details,omitempty"`
Percent Percentage `json:"percent"`
@@ -66,7 +66,7 @@ func (s *RecoveryFiles) UnmarshalJSON(data []byte) error {
}
case "recovered":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -81,7 +81,7 @@ func (s *RecoveryFiles) UnmarshalJSON(data []byte) error {
}
case "reused":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *RecoveryFiles) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryindexstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryindexstatus.go
index 3b14a182eb..540688bce9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryindexstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryindexstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// RecoveryIndexStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/recovery/types.ts#L64-L74
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L64-L74
type RecoveryIndexStatus struct {
Bytes *RecoveryBytes `json:"bytes,omitempty"`
Files RecoveryFiles `json:"files"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryorigin.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryorigin.go
index ab8ddf2c55..dfa86db6ae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryorigin.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryorigin.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RecoveryOrigin type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/recovery/types.ts#L76-L89
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L76-L89
type RecoveryOrigin struct {
BootstrapNewHistoryUuid *bool `json:"bootstrap_new_history_uuid,omitempty"`
Host *string `json:"host,omitempty"`
@@ -63,7 +63,7 @@ func (s *RecoveryOrigin) UnmarshalJSON(data []byte) error {
switch t {
case "bootstrap_new_history_uuid":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryrecord.go
index 8b98bdc6c7..dec807602b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoveryrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RecoveryRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/recovery/types.ts#L24-L155
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/recovery/types.ts#L24-L155
type RecoveryRecord struct {
// Bytes The number of bytes to recover.
Bytes *string `json:"bytes,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverystartstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverystartstatus.go
index 7b07c54b00..448e156b57 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverystartstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverystartstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// RecoveryStartStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/recovery/types.ts#L91-L96
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L91-L96
type RecoveryStartStatus struct {
CheckIndexTime Duration `json:"check_index_time,omitempty"`
CheckIndexTimeInMillis int64 `json:"check_index_time_in_millis"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverystats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverystats.go
index a5bf320dc2..668c39331a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverystats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverystats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RecoveryStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L228-L233
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L228-L233
type RecoveryStats struct {
CurrentAsSource int64 `json:"current_as_source"`
CurrentAsTarget int64 `json:"current_as_target"`
@@ -55,7 +55,7 @@ func (s *RecoveryStats) UnmarshalJSON(data []byte) error {
switch t {
case "current_as_source":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *RecoveryStats) UnmarshalJSON(data []byte) error {
}
case "current_as_target":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverystatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverystatus.go
index 27c69b085c..5f2a7b097f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverystatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/recoverystatus.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// RecoveryStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/recovery/types.ts#L98-L100
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L98-L100
type RecoveryStatus struct {
Shards []ShardRecovery `json:"shards"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/refreshstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/refreshstats.go
index 4be54cd148..7bf7795493 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/refreshstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/refreshstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RefreshStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L235-L242
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L235-L242
type RefreshStats struct {
ExternalTotal int64 `json:"external_total"`
ExternalTotalTimeInMillis int64 `json:"external_total_time_in_millis"`
@@ -57,7 +57,7 @@ func (s *RefreshStats) UnmarshalJSON(data []byte) error {
switch t {
case "external_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -77,7 +77,7 @@ func (s *RefreshStats) UnmarshalJSON(data []byte) error {
}
case "listeners":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *RefreshStats) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regexoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regexoptions.go
index c0d526e48c..d24f7370f2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regexoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regexoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RegexOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L180-L191
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L180-L191
type RegexOptions struct {
// Flags Optional operators for the regular expression.
Flags string `json:"flags,omitempty"`
@@ -68,7 +68,7 @@ func (s *RegexOptions) UnmarshalJSON(data []byte) error {
case "max_determinized_states":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regexpquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regexpquery.go
index 5e878fe271..a3f135a0d6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regexpquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regexpquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RegexpQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L185-L215
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L185-L215
type RegexpQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -80,7 +80,7 @@ func (s *RegexpQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *RegexpQuery) UnmarshalJSON(data []byte) error {
}
case "case_insensitive":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -123,7 +123,7 @@ func (s *RegexpQuery) UnmarshalJSON(data []byte) error {
case "max_determinized_states":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regressioninferenceoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regressioninferenceoptions.go
index 0f6090178e..78e66031c7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regressioninferenceoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/regressioninferenceoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RegressionInferenceOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L82-L91
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L82-L91
type RegressionInferenceOptions struct {
// NumTopFeatureImportanceValues Specifies the maximum number of feature importance values per document.
NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"`
@@ -57,7 +57,7 @@ func (s *RegressionInferenceOptions) UnmarshalJSON(data []byte) error {
case "num_top_feature_importance_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexdestination.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexdestination.go
index 1e1dd99486..5883a33cc0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexdestination.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexdestination.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// ReindexDestination type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/reindex/types.ts#L39-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex/types.ts#L39-L64
type ReindexDestination struct {
// Index The name of the data stream, index, or index alias you are copying to.
Index string `json:"index"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexnode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexnode.go
index 5bc0007b55..ca6a7419ec 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexnode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexnode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// ReindexNode type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/reindex_rethrottle/types.ts#L33-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex_rethrottle/types.ts#L33-L35
type ReindexNode struct {
Attributes map[string]string `json:"attributes"`
Host string `json:"host"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexsource.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexsource.go
index bd07983d29..d39abb1a04 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexsource.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexsource.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ReindexSource type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/reindex/types.ts#L66-L97
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex/types.ts#L66-L97
type ReindexSource struct {
// Index The name of the data stream, index, or alias you are copying from.
// Accepts a comma-separated list to reindex from multiple sources.
@@ -102,7 +102,7 @@ func (s *ReindexSource) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexstatus.go
index f2b6a34a5b..de6c8c3f40 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindexstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ReindexStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/reindex_rethrottle/types.ts#L37-L85
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex_rethrottle/types.ts#L37-L85
type ReindexStatus struct {
// Batches The number of scroll responses pulled back by the reindex.
Batches int64 `json:"batches"`
@@ -81,7 +81,7 @@ func (s *ReindexStatus) UnmarshalJSON(data []byte) error {
switch t {
case "batches":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *ReindexStatus) UnmarshalJSON(data []byte) error {
}
case "created":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -111,7 +111,7 @@ func (s *ReindexStatus) UnmarshalJSON(data []byte) error {
}
case "deleted":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -126,7 +126,7 @@ func (s *ReindexStatus) UnmarshalJSON(data []byte) error {
}
case "noops":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -141,7 +141,7 @@ func (s *ReindexStatus) UnmarshalJSON(data []byte) error {
}
case "requests_per_second":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -182,7 +182,7 @@ func (s *ReindexStatus) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -197,7 +197,7 @@ func (s *ReindexStatus) UnmarshalJSON(data []byte) error {
}
case "updated":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -212,7 +212,7 @@ func (s *ReindexStatus) UnmarshalJSON(data []byte) error {
}
case "version_conflicts":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindextask.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindextask.go
index 090c35391f..beeec30c3a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindextask.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reindextask.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ReindexTask type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/reindex_rethrottle/types.ts#L87-L98
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex_rethrottle/types.ts#L87-L98
type ReindexTask struct {
Action string `json:"action"`
Cancellable bool `json:"cancellable"`
@@ -73,7 +73,7 @@ func (s *ReindexTask) UnmarshalJSON(data []byte) error {
s.Action = o
case "cancellable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +104,7 @@ func (s *ReindexTask) UnmarshalJSON(data []byte) error {
}
case "id":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reloaddetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reloaddetails.go
index 653022c9fd..3f32bb2772 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reloaddetails.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reloaddetails.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ReloadDetails type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/reload_search_analyzers/types.ts#L27-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/reload_search_analyzers/types.ts#L27-L31
type ReloadDetails struct {
Index string `json:"index"`
ReloadedAnalyzers []string `json:"reloaded_analyzers"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reloadresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reloadresult.go
index 301fda05dd..5d432a385d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reloadresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reloadresult.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ReloadResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/reload_search_analyzers/types.ts#L22-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/reload_search_analyzers/types.ts#L22-L25
type ReloadResult struct {
ReloadDetails []ReloadDetails `json:"reload_details"`
Shards_ ShardStatistics `json:"_shards"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/relocationfailureinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/relocationfailureinfo.go
index 598a9561e5..0cd2826f21 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/relocationfailureinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/relocationfailureinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RelocationFailureInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Node.ts#L73-L75
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Node.ts#L73-L75
type RelocationFailureInfo struct {
FailedAttempts int `json:"failed_attempts"`
}
@@ -53,7 +53,7 @@ func (s *RelocationFailureInfo) UnmarshalJSON(data []byte) error {
case "failed_attempts":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/remotesource.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/remotesource.go
index f0581c4b3e..8530633775 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/remotesource.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/remotesource.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// RemoteSource type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/reindex/types.ts#L99-L125
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/reindex/types.ts#L99-L125
type RemoteSource struct {
// ConnectTimeout The remote connection timeout.
// Defaults to 30 seconds.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeaction.go
index af1b4b0aaf..3e29d21cde 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RemoveAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/update_aliases/types.ts#L97-L122
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/update_aliases/types.ts#L97-L122
type RemoveAction struct {
// Alias Alias for the action.
// Index alias names support date math.
@@ -107,7 +107,7 @@ func (s *RemoveAction) UnmarshalJSON(data []byte) error {
}
case "must_exist":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeduplicatestokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeduplicatestokenfilter.go
index 7a9a8ab761..8c58509905 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeduplicatestokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeduplicatestokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// RemoveDuplicatesTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L301-L303
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L303-L305
type RemoveDuplicatesTokenFilter struct {
Type string `json:"type,omitempty"`
Version *string `json:"version,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeindexaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeindexaction.go
index d43e2986e4..19582b8737 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeindexaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeindexaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RemoveIndexAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/update_aliases/types.ts#L124-L139
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/update_aliases/types.ts#L124-L139
type RemoveIndexAction struct {
// Index Data stream or index for the action.
// Supports wildcards (`*`).
@@ -80,7 +80,7 @@ func (s *RemoveIndexAction) UnmarshalJSON(data []byte) error {
}
case "must_exist":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeprocessor.go
index 9dac5f3ecd..fce6e015e2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/removeprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RemoveProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L941-L951
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L941-L955
type RemoveProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -45,6 +45,9 @@ type RemoveProcessor struct {
// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly
// exits without modifying the document.
IgnoreMissing *bool `json:"ignore_missing,omitempty"`
+ // Keep Fields to be kept. When set, all fields other than those specified are
+ // removed.
+ Keep []string `json:"keep,omitempty"`
// OnFailure Handle failures for the processor.
OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
// Tag Identifier for the processor.
@@ -108,7 +111,7 @@ func (s *RemoveProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -122,7 +125,7 @@ func (s *RemoveProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -135,6 +138,22 @@ func (s *RemoveProcessor) UnmarshalJSON(data []byte) error {
s.IgnoreMissing = &v
}
+ case "keep":
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := new(string)
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "Keep", err)
+ }
+
+ s.Keep = append(s.Keep, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Keep); err != nil {
+ return fmt.Errorf("%s | %w", "Keep", err)
+ }
+ }
+
case "on_failure":
if err := dec.Decode(&s.OnFailure); err != nil {
return fmt.Errorf("%s | %w", "OnFailure", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/renameprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/renameprocessor.go
index de664553b9..01facddc2f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/renameprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/renameprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RenameProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L953-L969
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L957-L973
type RenameProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -101,7 +101,7 @@ func (s *RenameProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -115,7 +115,7 @@ func (s *RenameProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reportingemailattachment.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reportingemailattachment.go
index 083599c8e8..ce418c26ba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reportingemailattachment.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reportingemailattachment.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ReportingEmailAttachment type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L224-L232
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L224-L232
type ReportingEmailAttachment struct {
Inline *bool `json:"inline,omitempty"`
Interval Duration `json:"interval,omitempty"`
@@ -56,7 +56,7 @@ func (s *ReportingEmailAttachment) UnmarshalJSON(data []byte) error {
switch t {
case "inline":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -81,7 +81,7 @@ func (s *ReportingEmailAttachment) UnmarshalJSON(data []byte) error {
case "retries":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositoriesrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositoriesrecord.go
index 0dddce1277..e003ac494f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositoriesrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositoriesrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RepositoriesRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/repositories/types.ts#L20-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/repositories/types.ts#L20-L31
type RepositoriesRecord struct {
// Id The unique repository identifier.
Id *string `json:"id,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repository.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repository.go
index f10e958e7e..dc5bc3f86f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repository.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -29,5 +29,5 @@ package types
// ReadOnlyUrlRepository
// SourceOnlyRepository
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotRepository.ts#L24-L34
-type Repository interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L24-L34
+type Repository any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositoryintegrityindicator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositoryintegrityindicator.go
index 0a95b04149..f72994c72e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositoryintegrityindicator.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositoryintegrityindicator.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// RepositoryIntegrityIndicator type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L134-L138
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L134-L138
type RepositoryIntegrityIndicator struct {
Details *RepositoryIntegrityIndicatorDetails `json:"details,omitempty"`
Diagnosis []Diagnosis `json:"diagnosis,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositoryintegrityindicatordetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositoryintegrityindicatordetails.go
index 98dcf6d07a..eeaf0a1815 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositoryintegrityindicatordetails.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositoryintegrityindicatordetails.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RepositoryIntegrityIndicatorDetails type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L139-L143
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L139-L143
type RepositoryIntegrityIndicatorDetails struct {
Corrupted []string `json:"corrupted,omitempty"`
CorruptedRepositories *int64 `json:"corrupted_repositories,omitempty"`
@@ -59,7 +59,7 @@ func (s *RepositoryIntegrityIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "corrupted_repositories":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -74,7 +74,7 @@ func (s *RepositoryIntegrityIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "total_repositories":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositorylocation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositorylocation.go
index d24f622bca..d957cf9395 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositorylocation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositorylocation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RepositoryLocation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/RepositoryMeteringInformation.ts#L68-L74
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/RepositoryMeteringInformation.ts#L68-L74
type RepositoryLocation struct {
BasePath string `json:"base_path"`
// Bucket Bucket name (GCP, S3)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositorymeteringinformation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositorymeteringinformation.go
index 8062543c6c..9083b5e794 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositorymeteringinformation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/repositorymeteringinformation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RepositoryMeteringInformation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/RepositoryMeteringInformation.ts#L24-L66
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/RepositoryMeteringInformation.ts#L24-L66
type RepositoryMeteringInformation struct {
// Archived A flag that tells whether or not this object has been archived. When a
// repository is closed or updated the
@@ -83,7 +83,7 @@ func (s *RepositoryMeteringInformation) UnmarshalJSON(data []byte) error {
switch t {
case "archived":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/requestcachestats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/requestcachestats.go
index 100604266d..7b6d2b436b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/requestcachestats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/requestcachestats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RequestCacheStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L244-L250
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L244-L250
type RequestCacheStats struct {
Evictions int64 `json:"evictions"`
HitCount int64 `json:"hit_count"`
@@ -56,7 +56,7 @@ func (s *RequestCacheStats) UnmarshalJSON(data []byte) error {
switch t {
case "evictions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *RequestCacheStats) UnmarshalJSON(data []byte) error {
}
case "hit_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -98,7 +98,7 @@ func (s *RequestCacheStats) UnmarshalJSON(data []byte) error {
s.MemorySize = &o
case "memory_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,7 +113,7 @@ func (s *RequestCacheStats) UnmarshalJSON(data []byte) error {
}
case "miss_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/requestcounts.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/requestcounts.go
index fcb1de4f6c..45836513dd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/requestcounts.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/requestcounts.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RequestCounts type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/RepositoryMeteringInformation.ts#L76-L103
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/RepositoryMeteringInformation.ts#L76-L103
type RequestCounts struct {
// GetBlob Number of Get Blob requests (Azure)
GetBlob *int64 `json:"GetBlob,omitempty"`
@@ -78,7 +78,7 @@ func (s *RequestCounts) UnmarshalJSON(data []byte) error {
switch t {
case "GetBlob":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -93,7 +93,7 @@ func (s *RequestCounts) UnmarshalJSON(data []byte) error {
}
case "GetBlobProperties":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,7 +108,7 @@ func (s *RequestCounts) UnmarshalJSON(data []byte) error {
}
case "GetObject":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -123,7 +123,7 @@ func (s *RequestCounts) UnmarshalJSON(data []byte) error {
}
case "InsertObject":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +138,7 @@ func (s *RequestCounts) UnmarshalJSON(data []byte) error {
}
case "ListBlobs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -153,7 +153,7 @@ func (s *RequestCounts) UnmarshalJSON(data []byte) error {
}
case "ListObjects":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -168,7 +168,7 @@ func (s *RequestCounts) UnmarshalJSON(data []byte) error {
}
case "PutBlob":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -183,7 +183,7 @@ func (s *RequestCounts) UnmarshalJSON(data []byte) error {
}
case "PutBlock":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -198,7 +198,7 @@ func (s *RequestCounts) UnmarshalJSON(data []byte) error {
}
case "PutBlockList":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -213,7 +213,7 @@ func (s *RequestCounts) UnmarshalJSON(data []byte) error {
}
case "PutMultipartObject":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -228,7 +228,7 @@ func (s *RequestCounts) UnmarshalJSON(data []byte) error {
}
case "PutObject":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/requestitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/requestitem.go
index 8c86ddab99..a1a5c7cdb7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/requestitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/requestitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// MultisearchHeader
// TemplateConfig
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/msearch_template/types.ts#L25-L26
-type RequestItem interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch_template/types.ts#L25-L26
+type RequestItem any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reroutedecision.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reroutedecision.go
index 0e5ba32b99..e461ccac63 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reroutedecision.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reroutedecision.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RerouteDecision type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/reroute/types.ts#L86-L90
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L86-L90
type RerouteDecision struct {
Decider string `json:"decider"`
Decision string `json:"decision"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rerouteexplanation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rerouteexplanation.go
index 13c527e5c6..9a56b1238c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rerouteexplanation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rerouteexplanation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RerouteExplanation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/reroute/types.ts#L92-L96
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L92-L96
type RerouteExplanation struct {
Command string `json:"command"`
Decisions []RerouteDecision `json:"decisions"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rerouteparameters.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rerouteparameters.go
index 2cfea7805f..8fd471d109 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rerouteparameters.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rerouteparameters.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RerouteParameters type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/reroute/types.ts#L98-L105
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/reroute/types.ts#L98-L105
type RerouteParameters struct {
AllowPrimary bool `json:"allow_primary"`
FromNode *string `json:"from_node,omitempty"`
@@ -57,7 +57,7 @@ func (s *RerouteParameters) UnmarshalJSON(data []byte) error {
switch t {
case "allow_primary":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *RerouteParameters) UnmarshalJSON(data []byte) error {
case "shard":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rerouteprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rerouteprocessor.go
index 161ee9c94e..4ddb6a97b8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rerouteprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rerouteprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RerouteProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L971-L999
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L975-L1003
type RerouteProcessor struct {
// Dataset Field references or a static value for the dataset part of the data stream
// name.
@@ -146,7 +146,7 @@ func (s *RerouteProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rescore.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rescore.go
index d7a6135499..1a74360b0d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rescore.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rescore.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,10 +31,11 @@ import (
// Rescore type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/rescoring.ts#L23-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/rescoring.ts#L25-L38
type Rescore struct {
- Query RescoreQuery `json:"query"`
- WindowSize *int `json:"window_size,omitempty"`
+ LearningToRank *LearningToRank `json:"learning_to_rank,omitempty"`
+ Query *RescoreQuery `json:"query,omitempty"`
+ WindowSize *int `json:"window_size,omitempty"`
}
func (s *Rescore) UnmarshalJSON(data []byte) error {
@@ -52,6 +53,11 @@ func (s *Rescore) UnmarshalJSON(data []byte) error {
switch t {
+ case "learning_to_rank":
+ if err := dec.Decode(&s.LearningToRank); err != nil {
+ return fmt.Errorf("%s | %w", "LearningToRank", err)
+ }
+
case "query":
if err := dec.Decode(&s.Query); err != nil {
return fmt.Errorf("%s | %w", "Query", err)
@@ -59,7 +65,7 @@ func (s *Rescore) UnmarshalJSON(data []byte) error {
case "window_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rescorequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rescorequery.go
index e2b4ef1ed3..d088c3a3a6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rescorequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rescorequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// RescoreQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/rescoring.ts#L28-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/rescoring.ts#L40-L62
type RescoreQuery struct {
// Query The query to use for rescoring.
// This query is only run on the Top-K results returned by the `query` and
@@ -68,7 +68,7 @@ func (s *RescoreQuery) UnmarshalJSON(data []byte) error {
}
case "query_weight":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -84,7 +84,7 @@ func (s *RescoreQuery) UnmarshalJSON(data []byte) error {
}
case "rescore_query_weight":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reservedsize.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reservedsize.go
index b0fb733edf..3bbf381f69 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reservedsize.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reservedsize.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ReservedSize type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/allocation_explain/types.ts#L71-L76
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L71-L76
type ReservedSize struct {
NodeId string `json:"node_id"`
Path string `json:"path"`
@@ -77,7 +77,7 @@ func (s *ReservedSize) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveclusterinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveclusterinfo.go
index cda8063444..1df2325b4c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveclusterinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveclusterinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ResolveClusterInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L28-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L29-L55
type ResolveClusterInfo struct {
// Connected Whether the remote cluster is connected to the local (querying) cluster.
Connected bool `json:"connected"`
@@ -66,7 +66,7 @@ func (s *ResolveClusterInfo) UnmarshalJSON(data []byte) error {
switch t {
case "connected":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *ResolveClusterInfo) UnmarshalJSON(data []byte) error {
s.Error = &o
case "matching_indices":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -106,7 +106,7 @@ func (s *ResolveClusterInfo) UnmarshalJSON(data []byte) error {
}
case "skip_unavailable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveindexaliasitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveindexaliasitem.go
index 71dcd98f82..9947c98df6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveindexaliasitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveindexaliasitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ResolveIndexAliasItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/resolve_index/ResolveIndexResponse.ts#L37-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/resolve_index/ResolveIndexResponse.ts#L37-L40
type ResolveIndexAliasItem struct {
Indices []string `json:"indices"`
Name string `json:"name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveindexdatastreamsitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveindexdatastreamsitem.go
index 9d45a17c1b..04b96a036d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveindexdatastreamsitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveindexdatastreamsitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ResolveIndexDataStreamsItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/resolve_index/ResolveIndexResponse.ts#L42-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/resolve_index/ResolveIndexResponse.ts#L42-L46
type ResolveIndexDataStreamsItem struct {
BackingIndices []string `json:"backing_indices"`
Name string `json:"name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveindexitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveindexitem.go
index 967b624fff..e432945702 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveindexitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resolveindexitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ResolveIndexItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/resolve_index/ResolveIndexResponse.ts#L30-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/resolve_index/ResolveIndexResponse.ts#L30-L35
type ResolveIndexItem struct {
Aliases []string `json:"aliases,omitempty"`
Attributes []string `json:"attributes"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resourceprivileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resourceprivileges.go
index e6cda89cde..63b20606c3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resourceprivileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/resourceprivileges.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ResourcePrivileges type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/has_privileges/types.ts#L47-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/has_privileges/types.ts#L47-L47
type ResourcePrivileges map[string]Privileges
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/responsebody.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/responsebody.go
index 916bd94901..77e2f934a5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/responsebody.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/responsebody.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// ResponseBody type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/SearchResponse.ts#L38-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/SearchResponse.ts#L38-L54
type ResponseBody struct {
Aggregations map[string]Aggregate `json:"aggregations,omitempty"`
Clusters_ *ClusterStatistics `json:"_clusters,omitempty"`
@@ -521,7 +521,7 @@ func (s *ResponseBody) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -571,7 +571,7 @@ func (s *ResponseBody) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -581,7 +581,7 @@ func (s *ResponseBody) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -609,7 +609,7 @@ func (s *ResponseBody) UnmarshalJSON(data []byte) error {
}
case "max_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -625,7 +625,7 @@ func (s *ResponseBody) UnmarshalJSON(data []byte) error {
}
case "num_reduce_phases":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -703,7 +703,7 @@ func (s *ResponseBody) UnmarshalJSON(data []byte) error {
s.Suggest[elems[1]] = append(s.Suggest[elems[1]], o)
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -713,7 +713,7 @@ func (s *ResponseBody) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Suggest")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Suggest", err)
}
@@ -723,7 +723,7 @@ func (s *ResponseBody) UnmarshalJSON(data []byte) error {
}
case "terminated_early":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -737,7 +737,7 @@ func (s *ResponseBody) UnmarshalJSON(data []byte) error {
}
case "timed_out":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -751,7 +751,7 @@ func (s *ResponseBody) UnmarshalJSON(data []byte) error {
}
case "took":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/responseitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/responseitem.go
index 4f47839a35..74514f2d34 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/responseitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/responseitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ResponseItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/bulk/types.ts#L37-L81
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L37-L81
type ResponseItem struct {
// Error Contains additional information about the failed operation.
// The parameter is only returned for failed operations.
@@ -83,7 +83,7 @@ func (s *ResponseItem) UnmarshalJSON(data []byte) error {
}
case "forced_refresh":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -126,7 +126,7 @@ func (s *ResponseItem) UnmarshalJSON(data []byte) error {
s.Index_ = o
case "_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -164,7 +164,7 @@ func (s *ResponseItem) UnmarshalJSON(data []byte) error {
case "status":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retention.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retention.go
index 42a6b4a87a..99274c6e80 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retention.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retention.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Retention type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/_types/SnapshotLifecycle.ts#L84-L97
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/_types/SnapshotLifecycle.ts#L84-L97
type Retention struct {
// ExpireAfter Time period after which a snapshot is considered expired and eligible for
// deletion. SLM deletes expired snapshots based on the slm.retention_schedule.
@@ -66,7 +66,7 @@ func (s *Retention) UnmarshalJSON(data []byte) error {
case "max_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -82,7 +82,7 @@ func (s *Retention) UnmarshalJSON(data []byte) error {
case "min_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retentionlease.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retentionlease.go
index 6f2e085112..6366e990da 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retentionlease.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retentionlease.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// RetentionLease type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L65-L67
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L65-L67
type RetentionLease struct {
Period Duration `json:"period"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retentionpolicy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retentionpolicy.go
index 98635d179e..d2f3470821 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retentionpolicy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retentionpolicy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// RetentionPolicy type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/_types/Transform.ts#L88-L96
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L88-L96
type RetentionPolicy struct {
// Field The date field that is used to calculate the age of the document.
Field string `json:"field"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retentionpolicycontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retentionpolicycontainer.go
index 5fc846ff81..971cb50ecf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retentionpolicycontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retentionpolicycontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// RetentionPolicyContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/_types/Transform.ts#L80-L86
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L80-L86
type RetentionPolicyContainer struct {
// Time Specifies that the transform uses a time field to set the retention policy.
Time *RetentionPolicy `json:"time,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retries.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retries.go
index 5c3f0555c7..715aea1020 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retries.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retries.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Retries type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Retries.ts#L22-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Retries.ts#L22-L25
type Retries struct {
Bulk int64 `json:"bulk"`
Search int64 `json:"search"`
@@ -53,7 +53,7 @@ func (s *Retries) UnmarshalJSON(data []byte) error {
switch t {
case "bulk":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -68,7 +68,7 @@ func (s *Retries) UnmarshalJSON(data []byte) error {
}
case "search":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retrievercontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retrievercontainer.go
new file mode 100644
index 0000000000..d7ddef4277
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/retrievercontainer.go
@@ -0,0 +1,40 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Code generated from the elasticsearch-specification DO NOT EDIT.
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
+
+package types
+
+// RetrieverContainer type.
+//
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Retriever.ts#L26-L36
+type RetrieverContainer struct {
+ // Knn A retriever that replaces the functionality of a knn search.
+ Knn *KnnRetriever `json:"knn,omitempty"`
+ // Rrf A retriever that produces top documents from reciprocal rank fusion (RRF).
+ Rrf *RRFRetriever `json:"rrf,omitempty"`
+ // Standard A retriever that replaces the functionality of a traditional query.
+ Standard *StandardRetriever `json:"standard,omitempty"`
+}
+
+// NewRetrieverContainer returns a RetrieverContainer.
+func NewRetrieverContainer() *RetrieverContainer {
+ r := &RetrieverContainer{}
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reversenestedaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reversenestedaggregate.go
index 406cf46d37..5630ea1968 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reversenestedaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reversenestedaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// ReverseNestedAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L489-L490
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L489-L490
type ReverseNestedAggregate struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *ReverseNestedAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +519,7 @@ func (s *ReverseNestedAggregate) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -569,7 +569,7 @@ func (s *ReverseNestedAggregate) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -579,7 +579,7 @@ func (s *ReverseNestedAggregate) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -596,7 +596,7 @@ func (s *ReverseNestedAggregate) UnmarshalJSON(data []byte) error {
func (s ReverseNestedAggregate) MarshalJSON() ([]byte, error) {
type opt ReverseNestedAggregate
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reversenestedaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reversenestedaggregation.go
index ccef062924..fade9b406d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reversenestedaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reversenestedaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,15 +26,12 @@ import (
"errors"
"fmt"
"io"
- "strconv"
)
// ReverseNestedAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L717-L723
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L721-L727
type ReverseNestedAggregation struct {
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
// Path Defines the nested object field that should be joined back to.
// The default is empty, which means that it joins back to the root/main
// document level.
@@ -56,23 +53,6 @@ func (s *ReverseNestedAggregation) UnmarshalJSON(data []byte) error {
switch t {
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "path":
if err := dec.Decode(&s.Path); err != nil {
return fmt.Errorf("%s | %w", "Path", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reversetokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reversetokenfilter.go
index 093847a06a..31616ec935 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reversetokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/reversetokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ReverseTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L305-L307
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L307-L309
type ReverseTokenFilter struct {
Type string `json:"type,omitempty"`
Version *string `json:"version,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/role.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/role.go
index 532c740865..b68d8d5942 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/role.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/role.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// Role type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_role/types.ts#L29-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_role/types.ts#L29-L42
type Role struct {
Applications []ApplicationPrivileges `json:"applications"`
Cluster []string `json:"cluster"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roledescriptor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roledescriptor.go
index a3cde302b1..1055d2c4b1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roledescriptor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roledescriptor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// RoleDescriptor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/RoleDescriptor.ts#L28-L56
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RoleDescriptor.ts#L28-L56
type RoleDescriptor struct {
// Applications A list of application privilege entries
Applications []ApplicationPrivileges `json:"applications,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roledescriptorread.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roledescriptorread.go
index a783c2e861..0ddf5daf45 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roledescriptorread.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roledescriptorread.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// RoleDescriptorRead type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/RoleDescriptor.ts#L58-L86
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RoleDescriptor.ts#L58-L86
type RoleDescriptorRead struct {
// Applications A list of application privilege entries
Applications []ApplicationPrivileges `json:"applications,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roledescriptorwrapper.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roledescriptorwrapper.go
index fd63722336..05514fa0d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roledescriptorwrapper.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roledescriptorwrapper.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// RoleDescriptorWrapper type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_service_accounts/types.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_service_accounts/types.ts#L22-L24
type RoleDescriptorWrapper struct {
RoleDescriptor RoleDescriptorRead `json:"role_descriptor"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolemappingrule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolemappingrule.go
index 89df103f60..3f4ff1e62b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolemappingrule.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolemappingrule.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// RoleMappingRule type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/RoleMappingRule.ts#L23-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RoleMappingRule.ts#L23-L34
type RoleMappingRule struct {
All []RoleMappingRule `json:"all,omitempty"`
Any []RoleMappingRule `json:"any,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplate.go
index f0d4e40e46..c289c6b41b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// RoleTemplate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/RoleTemplate.ts#L28-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RoleTemplate.ts#L28-L31
type RoleTemplate struct {
Format *templateformat.TemplateFormat `json:"format,omitempty"`
Template Script `json:"template"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplateinlinequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplateinlinequery.go
index 1ee5e81854..fb9b9cbdbb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplateinlinequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplateinlinequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// Query
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/Privileges.ts#L160-L161
-type RoleTemplateInlineQuery interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L182-L183
+type RoleTemplateInlineQuery any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplateinlinescript.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplateinlinescript.go
index e9a9e273dd..61c2f3e9d9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplateinlinescript.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplateinlinescript.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// RoleTemplateInlineScript type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/Privileges.ts#L153-L158
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L175-L180
type RoleTemplateInlineScript struct {
Lang *scriptlanguage.ScriptLanguage `json:"lang,omitempty"`
Options map[string]string `json:"options,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplatequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplatequery.go
index 57f4ce8d16..b0bc5c523d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplatequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplatequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// RoleTemplateQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/Privileges.ts#L141-L151
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L163-L173
type RoleTemplateQuery struct {
// Template When you create a role, you can specify a query that defines the document
// level security permissions. You can optionally
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplatescript.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplatescript.go
index 136116504f..8d046cbd16 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplatescript.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/roletemplatescript.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// RoleTemplateInlineScript
// StoredScriptId
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/Privileges.ts#L163-L164
-type RoleTemplateScript interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L185-L186
+type RoleTemplateScript any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolloverconditions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolloverconditions.go
index ba737442c3..f9345e1cc9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolloverconditions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rolloverconditions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RolloverConditions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/rollover/types.ts#L24-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/rollover/types.ts#L24-L40
type RolloverConditions struct {
MaxAge Duration `json:"max_age,omitempty"`
MaxAgeMillis *int64 `json:"max_age_millis,omitempty"`
@@ -76,7 +76,7 @@ func (s *RolloverConditions) UnmarshalJSON(data []byte) error {
}
case "max_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *RolloverConditions) UnmarshalJSON(data []byte) error {
}
case "max_primary_shard_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -111,7 +111,7 @@ func (s *RolloverConditions) UnmarshalJSON(data []byte) error {
}
case "max_primary_shard_size_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -131,7 +131,7 @@ func (s *RolloverConditions) UnmarshalJSON(data []byte) error {
}
case "max_size_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -151,7 +151,7 @@ func (s *RolloverConditions) UnmarshalJSON(data []byte) error {
}
case "min_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -166,7 +166,7 @@ func (s *RolloverConditions) UnmarshalJSON(data []byte) error {
}
case "min_primary_shard_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -186,7 +186,7 @@ func (s *RolloverConditions) UnmarshalJSON(data []byte) error {
}
case "min_primary_shard_size_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -206,7 +206,7 @@ func (s *RolloverConditions) UnmarshalJSON(data []byte) error {
}
case "min_size_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupcapabilities.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupcapabilities.go
index b6cefc2780..c08ef785c3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupcapabilities.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupcapabilities.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// RollupCapabilities type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/get_rollup_caps/types.ts#L25-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_caps/types.ts#L25-L27
type RollupCapabilities struct {
RollupJobs []RollupCapabilitySummary `json:"rollup_jobs"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupcapabilitysummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupcapabilitysummary.go
index 96a0059ec3..d4e83a2efb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupcapabilitysummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupcapabilitysummary.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RollupCapabilitySummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/get_rollup_caps/types.ts#L29-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_caps/types.ts#L29-L34
type RollupCapabilitySummary struct {
Fields map[string][]RollupFieldSummary `json:"fields"`
IndexPattern string `json:"index_pattern"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupfieldsummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupfieldsummary.go
index c4d2ffff4a..7ea2865e3d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupfieldsummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupfieldsummary.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RollupFieldSummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/get_rollup_caps/types.ts#L36-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_caps/types.ts#L36-L40
type RollupFieldSummary struct {
Agg string `json:"agg"`
CalendarInterval Duration `json:"calendar_interval,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjob.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjob.go
index b6e92a3df8..5bf2689991 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjob.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjob.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// RollupJob type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/get_jobs/types.ts#L28-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_jobs/types.ts#L28-L32
type RollupJob struct {
Config RollupJobConfiguration `json:"config"`
Stats RollupJobStats `json:"stats"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobconfiguration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobconfiguration.go
index 714403881e..ce35d5db50 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobconfiguration.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobconfiguration.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RollupJobConfiguration type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/get_jobs/types.ts#L34-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_jobs/types.ts#L34-L43
type RollupJobConfiguration struct {
Cron string `json:"cron"`
Groups Groupings `json:"groups"`
@@ -98,7 +98,7 @@ func (s *RollupJobConfiguration) UnmarshalJSON(data []byte) error {
}
case "page_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobstats.go
index 9523078535..e5cd51d900 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RollupJobStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/get_jobs/types.ts#L45-L58
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_jobs/types.ts#L45-L58
type RollupJobStats struct {
DocumentsProcessed int64 `json:"documents_processed"`
IndexFailures int64 `json:"index_failures"`
@@ -63,7 +63,7 @@ func (s *RollupJobStats) UnmarshalJSON(data []byte) error {
switch t {
case "documents_processed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -78,7 +78,7 @@ func (s *RollupJobStats) UnmarshalJSON(data []byte) error {
}
case "index_failures":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -98,7 +98,7 @@ func (s *RollupJobStats) UnmarshalJSON(data []byte) error {
}
case "index_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,7 +113,7 @@ func (s *RollupJobStats) UnmarshalJSON(data []byte) error {
}
case "pages_processed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -133,7 +133,7 @@ func (s *RollupJobStats) UnmarshalJSON(data []byte) error {
}
case "processing_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -148,7 +148,7 @@ func (s *RollupJobStats) UnmarshalJSON(data []byte) error {
}
case "rollups_indexed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -163,7 +163,7 @@ func (s *RollupJobStats) UnmarshalJSON(data []byte) error {
}
case "search_failures":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -183,7 +183,7 @@ func (s *RollupJobStats) UnmarshalJSON(data []byte) error {
}
case "search_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -198,7 +198,7 @@ func (s *RollupJobStats) UnmarshalJSON(data []byte) error {
}
case "trigger_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobstatus.go
index 398868e928..b3bbd4d208 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// RollupJobStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/get_jobs/types.ts#L60-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_jobs/types.ts#L60-L64
type RollupJobStatus struct {
CurrentPosition map[string]json.RawMessage `json:"current_position,omitempty"`
JobState indexingjobstate.IndexingJobState `json:"job_state"`
@@ -69,7 +69,7 @@ func (s *RollupJobStatus) UnmarshalJSON(data []byte) error {
}
case "upgraded_doc_id":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobsummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobsummary.go
index 7e7f108987..5cc9b84dae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobsummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobsummary.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RollupJobSummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/get_rollup_index_caps/types.ts#L28-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_index_caps/types.ts#L28-L33
type RollupJobSummary struct {
Fields map[string][]RollupJobSummaryField `json:"fields"`
IndexPattern string `json:"index_pattern"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobsummaryfield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobsummaryfield.go
index 57bb47feac..86d12145cc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobsummaryfield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rollupjobsummaryfield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RollupJobSummaryField type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/get_rollup_index_caps/types.ts#L35-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/get_rollup_index_caps/types.ts#L35-L39
type RollupJobSummaryField struct {
Agg string `json:"agg"`
CalendarInterval Duration `json:"calendar_interval,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/routingfield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/routingfield.go
index 0b8000bc42..4a153ac097 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/routingfield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/routingfield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RoutingField type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/meta-fields.ts#L50-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L50-L52
type RoutingField struct {
Required bool `json:"required"`
}
@@ -52,7 +52,7 @@ func (s *RoutingField) UnmarshalJSON(data []byte) error {
switch t {
case "required":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rrfrank.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rrfrank.go
index 12d7cf5692..58dd56f2e4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rrfrank.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rrfrank.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RrfRank type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Rank.ts#L32-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Rank.ts#L32-L37
type RrfRank struct {
// RankConstant How much influence documents in individual result sets per query have over
// the final ranked result set
@@ -56,7 +56,7 @@ func (s *RrfRank) UnmarshalJSON(data []byte) error {
switch t {
case "rank_constant":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *RrfRank) UnmarshalJSON(data []byte) error {
}
case "window_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rrfretriever.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rrfretriever.go
new file mode 100644
index 0000000000..63d1302959
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rrfretriever.go
@@ -0,0 +1,126 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Code generated from the elasticsearch-specification DO NOT EDIT.
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
+
+package types
+
+import (
+ "bytes"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "strconv"
+)
+
+// RRFRetriever type.
+//
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Retriever.ts#L73-L80
+type RRFRetriever struct {
+ // Filter Query to filter the documents that can match.
+ Filter []Query `json:"filter,omitempty"`
+ // RankConstant This value determines how much influence documents in individual result sets
+ // per query have over the final ranked result set.
+ RankConstant *int `json:"rank_constant,omitempty"`
+ // Retrievers A list of child retrievers to specify which sets of returned top documents
+ // will have the RRF formula applied to them.
+ Retrievers []RetrieverContainer `json:"retrievers"`
+ // WindowSize This value determines the size of the individual result sets per query.
+ WindowSize *int `json:"window_size,omitempty"`
+}
+
+func (s *RRFRetriever) UnmarshalJSON(data []byte) error {
+
+ dec := json.NewDecoder(bytes.NewReader(data))
+
+ for {
+ t, err := dec.Token()
+ if err != nil {
+ if errors.Is(err, io.EOF) {
+ break
+ }
+ return err
+ }
+
+ switch t {
+
+ case "filter":
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := NewQuery()
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "Filter", err)
+ }
+
+ s.Filter = append(s.Filter, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Filter); err != nil {
+ return fmt.Errorf("%s | %w", "Filter", err)
+ }
+ }
+
+ case "rank_constant":
+
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.Atoi(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "RankConstant", err)
+ }
+ s.RankConstant = &value
+ case float64:
+ f := int(v)
+ s.RankConstant = &f
+ }
+
+ case "retrievers":
+ if err := dec.Decode(&s.Retrievers); err != nil {
+ return fmt.Errorf("%s | %w", "Retrievers", err)
+ }
+
+ case "window_size":
+
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.Atoi(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "WindowSize", err)
+ }
+ s.WindowSize = &value
+ case float64:
+ f := int(v)
+ s.WindowSize = &f
+ }
+
+ }
+ }
+ return nil
+}
+
+// NewRRFRetriever returns a RRFRetriever.
+func NewRRFRetriever() *RRFRetriever {
+ r := &RRFRetriever{}
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rulecondition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rulecondition.go
index a4d7191685..4a94c90826 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rulecondition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rulecondition.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// RuleCondition type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Rule.ts#L52-L65
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Rule.ts#L52-L65
type RuleCondition struct {
// AppliesTo Specifies the result property to which the condition applies. If your
// detector uses `lat_long`, `metric`, `rare`, or `freq_rare` functions, you can
@@ -73,7 +73,7 @@ func (s *RuleCondition) UnmarshalJSON(data []byte) error {
}
case "value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rulequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rulequery.go
index ba3d41798e..1d9becbafe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rulequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/rulequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RuleQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L369-L373
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L369-L373
type RuleQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -61,7 +61,7 @@ func (s *RuleQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runningstatesearchinterval.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runningstatesearchinterval.go
index ac8b2e8777..6610e488c4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runningstatesearchinterval.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runningstatesearchinterval.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// RunningStateSearchInterval type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Datafeed.ts#L214-L231
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Datafeed.ts#L213-L230
type RunningStateSearchInterval struct {
// End The end time.
End Duration `json:"end,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefield.go
index 2081c996ee..4bff0e07f9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// RuntimeField type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/RuntimeFields.ts#L26-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/RuntimeFields.ts#L26-L48
type RuntimeField struct {
// FetchFields For type `lookup`
FetchFields []RuntimeFieldFetchFields `json:"fetch_fields,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefieldfetchfields.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefieldfetchfields.go
index dd56a35d30..25753f8591 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefieldfetchfields.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefieldfetchfields.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RuntimeFieldFetchFields type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/RuntimeFields.ts#L50-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/RuntimeFields.ts#L50-L54
type RuntimeFieldFetchFields struct {
Field string `json:"field"`
Format *string `json:"format,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefields.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefields.go
index 31a187b58a..528c8f428a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefields.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefields.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// RuntimeFields type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/RuntimeFields.ts#L24-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/RuntimeFields.ts#L24-L24
type RuntimeFields map[string]RuntimeField
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefieldstype.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefieldstype.go
index 5505cddb69..c574ffa85e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefieldstype.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/runtimefieldstype.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// RuntimeFieldsType type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L279-L294
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L279-L294
type RuntimeFieldsType struct {
CharsMax int64 `json:"chars_max"`
CharsTotal int64 `json:"chars_total"`
@@ -65,7 +65,7 @@ func (s *RuntimeFieldsType) UnmarshalJSON(data []byte) error {
switch t {
case "chars_max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -80,7 +80,7 @@ func (s *RuntimeFieldsType) UnmarshalJSON(data []byte) error {
}
case "chars_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *RuntimeFieldsType) UnmarshalJSON(data []byte) error {
}
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -110,7 +110,7 @@ func (s *RuntimeFieldsType) UnmarshalJSON(data []byte) error {
}
case "doc_max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *RuntimeFieldsType) UnmarshalJSON(data []byte) error {
}
case "doc_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -140,7 +140,7 @@ func (s *RuntimeFieldsType) UnmarshalJSON(data []byte) error {
}
case "index_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -160,7 +160,7 @@ func (s *RuntimeFieldsType) UnmarshalJSON(data []byte) error {
}
case "lines_max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -175,7 +175,7 @@ func (s *RuntimeFieldsType) UnmarshalJSON(data []byte) error {
}
case "lines_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -195,7 +195,7 @@ func (s *RuntimeFieldsType) UnmarshalJSON(data []byte) error {
}
case "scriptless_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -210,7 +210,7 @@ func (s *RuntimeFieldsType) UnmarshalJSON(data []byte) error {
}
case "shadowed_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -225,7 +225,7 @@ func (s *RuntimeFieldsType) UnmarshalJSON(data []byte) error {
}
case "source_max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -240,7 +240,7 @@ func (s *RuntimeFieldsType) UnmarshalJSON(data []byte) error {
}
case "source_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/s3repository.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/s3repository.go
index 128a641ef4..a8ca0f6987 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/s3repository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/s3repository.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// S3Repository type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotRepository.ts#L50-L53
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L50-L53
type S3Repository struct {
Settings S3RepositorySettings `json:"settings"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/s3repositorysettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/s3repositorysettings.go
index c44d0837be..b23a8995d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/s3repositorysettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/s3repositorysettings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// S3RepositorySettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotRepository.ts#L93-L102
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L93-L102
type S3RepositorySettings struct {
BasePath *string `json:"base_path,omitempty"`
Bucket string `json:"bucket"`
@@ -121,7 +121,7 @@ func (s *S3RepositorySettings) UnmarshalJSON(data []byte) error {
s.Client = &o
case "compress":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -145,7 +145,7 @@ func (s *S3RepositorySettings) UnmarshalJSON(data []byte) error {
}
case "readonly":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -159,7 +159,7 @@ func (s *S3RepositorySettings) UnmarshalJSON(data []byte) error {
}
case "server_side_encryption":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/samplediversity.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/samplediversity.go
index b4f8fc16cf..0580669996 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/samplediversity.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/samplediversity.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SampleDiversity type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/graph/_types/ExploreControls.ts#L51-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/_types/ExploreControls.ts#L51-L54
type SampleDiversity struct {
Field string `json:"field"`
MaxDocsPerValue int `json:"max_docs_per_value"`
@@ -59,7 +59,7 @@ func (s *SampleDiversity) UnmarshalJSON(data []byte) error {
case "max_docs_per_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sampleraggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sampleraggregate.go
index e05e4c72f2..de08965e5a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sampleraggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sampleraggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// SamplerAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L498-L499
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L498-L499
type SamplerAggregate struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *SamplerAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +519,7 @@ func (s *SamplerAggregate) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -569,7 +569,7 @@ func (s *SamplerAggregate) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -579,7 +579,7 @@ func (s *SamplerAggregate) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -596,7 +596,7 @@ func (s *SamplerAggregate) UnmarshalJSON(data []byte) error {
func (s SamplerAggregate) MarshalJSON() ([]byte, error) {
type opt SamplerAggregate
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sampleraggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sampleraggregation.go
index 706ae0d387..cffe51f9e7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sampleraggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sampleraggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,10 +31,8 @@ import (
// SamplerAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L725-L731
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L729-L735
type SamplerAggregation struct {
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
// ShardSize Limits how many top-scoring documents are collected in the sample processed
// on each shard.
ShardSize *int `json:"shard_size,omitempty"`
@@ -55,26 +53,9 @@ func (s *SamplerAggregation) UnmarshalJSON(data []byte) error {
switch t {
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "shard_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scalarvalue.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scalarvalue.go
index 3b90b2a3ce..38f8be41e3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scalarvalue.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scalarvalue.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -28,5 +28,5 @@ package types
// bool
// nil
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L39-L43
-type ScalarValue interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L39-L43
+type ScalarValue any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scaledfloatnumberproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scaledfloatnumberproperty.go
index 2c1ef57b5e..530cbe84d5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scaledfloatnumberproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scaledfloatnumberproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// ScaledFloatNumberProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L174-L178
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L176-L180
type ScaledFloatNumberProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -80,7 +80,7 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -126,7 +126,7 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -151,7 +151,7 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -442,6 +442,12 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -453,7 +459,7 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -468,7 +474,7 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -482,7 +488,7 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -504,7 +510,7 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "null_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -531,7 +537,7 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -822,6 +828,12 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -832,7 +844,7 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "scaling_factor":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -896,7 +908,7 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -910,7 +922,7 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error {
}
case "time_series_dimension":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/schedulecontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/schedulecontainer.go
index 3747305d9e..2418b5f52f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/schedulecontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/schedulecontainer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ScheduleContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Schedule.ts#L80-L91
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L80-L91
type ScheduleContainer struct {
Cron *string `json:"cron,omitempty"`
Daily *DailySchedule `json:"daily,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scheduletimeofday.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scheduletimeofday.go
index c98f609aae..3d26bcc49b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scheduletimeofday.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scheduletimeofday.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// HourAndMinute
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Schedule.ts#L98-L103
-type ScheduleTimeOfDay interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L98-L103
+type ScheduleTimeOfDay any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scheduletriggerevent.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scheduletriggerevent.go
index e342053301..ba4113ac82 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scheduletriggerevent.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scheduletriggerevent.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ScheduleTriggerEvent type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Schedule.ts#L93-L96
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L93-L96
type ScheduleTriggerEvent struct {
ScheduledTime DateTime `json:"scheduled_time"`
TriggeredTime DateTime `json:"triggered_time,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scoresort.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scoresort.go
index dec6af14ae..9a2704e537 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scoresort.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scoresort.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// ScoreSort type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/sort.ts#L55-L57
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L55-L57
type ScoreSort struct {
Order *sortorder.SortOrder `json:"order,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/script.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/script.go
index 23fba66531..d31d924a9e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/script.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/script.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// InlineScript
// StoredScriptId
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Scripting.ts#L88-L89
-type Script interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Scripting.ts#L88-L89
+type Script any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptcache.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptcache.go
index 10748a6b4c..77a65ca742 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptcache.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptcache.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ScriptCache type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L1031-L1045
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L1031-L1045
type ScriptCache struct {
// CacheEvictions Total number of times the script cache has evicted old data.
CacheEvictions *int64 `json:"cache_evictions,omitempty"`
@@ -59,7 +59,7 @@ func (s *ScriptCache) UnmarshalJSON(data []byte) error {
switch t {
case "cache_evictions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -74,7 +74,7 @@ func (s *ScriptCache) UnmarshalJSON(data []byte) error {
}
case "compilation_limit_triggered":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -89,7 +89,7 @@ func (s *ScriptCache) UnmarshalJSON(data []byte) error {
}
case "compilations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptcondition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptcondition.go
index 8f63ed150f..ac5aad273d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptcondition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptcondition.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ScriptCondition type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Conditions.ts#L76-L84
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L76-L84
type ScriptCondition struct {
Id *string `json:"id,omitempty"`
Lang *string `json:"lang,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptedheuristic.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptedheuristic.go
index 57f4cdbaff..de6005bf3c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptedheuristic.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptedheuristic.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ScriptedHeuristic type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L764-L766
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L768-L770
type ScriptedHeuristic struct {
Script Script `json:"script"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptedmetricaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptedmetricaggregate.go
index adaf9d54b5..0af05977e3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptedmetricaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptedmetricaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ScriptedMetricAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L649-L652
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L649-L652
type ScriptedMetricAggregate struct {
Meta Metadata `json:"meta,omitempty"`
Value json.RawMessage `json:"value,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptedmetricaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptedmetricaggregation.go
index 636a4944f2..c4a69aa6de 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptedmetricaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptedmetricaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ScriptedMetricAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L254-L280
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L254-L280
type ScriptedMetricAggregation struct {
// CombineScript Runs once on each shard after document collection is complete.
// Allows the aggregation to consolidate the state returned from each shard.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptfield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptfield.go
index 4d489f5b31..2396f26819 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptfield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptfield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ScriptField type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Scripting.ts#L91-L94
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Scripting.ts#L91-L94
type ScriptField struct {
IgnoreFailure *bool `json:"ignore_failure,omitempty"`
Script Script `json:"script"`
@@ -53,7 +53,7 @@ func (s *ScriptField) UnmarshalJSON(data []byte) error {
switch t {
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scripting.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scripting.go
index 4754146c44..8900cae55d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scripting.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scripting.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Scripting type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L977-L995
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L977-L995
type Scripting struct {
// CacheEvictions Total number of times the script cache has evicted old data.
CacheEvictions *int64 `json:"cache_evictions,omitempty"`
@@ -61,7 +61,7 @@ func (s *Scripting) UnmarshalJSON(data []byte) error {
switch t {
case "cache_evictions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -76,7 +76,7 @@ func (s *Scripting) UnmarshalJSON(data []byte) error {
}
case "compilation_limit_triggered":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *Scripting) UnmarshalJSON(data []byte) error {
}
case "compilations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptprocessor.go
index aba70e182b..a2958cc977 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ScriptProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L1001-L1021
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1005-L1025
type ScriptProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -102,7 +102,7 @@ func (s *ScriptProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptquery.go
index 09a8be44f3..4e38bc5273 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ScriptQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L318-L324
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L318-L324
type ScriptQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -61,7 +61,7 @@ func (s *ScriptQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptscorefunction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptscorefunction.go
index e7bcd636b3..d95a54902c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptscorefunction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptscorefunction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ScriptScoreFunction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/compound.ts#L120-L125
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/compound.ts#L120-L125
type ScriptScoreFunction struct {
// Script A script that computes a score.
Script Script `json:"script"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptscorequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptscorequery.go
index bbd355dd4e..67aa4ea2ed 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptscorequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptscorequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ScriptScoreQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L326-L340
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L326-L340
type ScriptScoreQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -67,7 +67,7 @@ func (s *ScriptScoreQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *ScriptScoreQuery) UnmarshalJSON(data []byte) error {
}
case "min_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptsort.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptsort.go
index 8adc41e036..b8583765a3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptsort.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scriptsort.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// ScriptSort type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/sort.ts#L68-L74
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L68-L74
type ScriptSort struct {
Mode *sortmode.SortMode `json:"mode,omitempty"`
Nested *NestedSortValue `json:"nested,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scripttransform.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scripttransform.go
index fb3a8ec3c6..6120b3e9e2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scripttransform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scripttransform.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ScriptTransform type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Transform.ts#L36-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Transform.ts#L36-L44
type ScriptTransform struct {
Id *string `json:"id,omitempty"`
Lang *string `json:"lang,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scrollids.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scrollids.go
index 31aa1311ff..dcc7a27353 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scrollids.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/scrollids.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ScrollIds type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L56-L56
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L56-L56
type ScrollIds []string
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchablesnapshots.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchablesnapshots.go
index bf8b806633..9092ab0bfb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchablesnapshots.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchablesnapshots.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SearchableSnapshots type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L428-L432
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L428-L432
type SearchableSnapshots struct {
Available bool `json:"available"`
Enabled bool `json:"enabled"`
@@ -56,7 +56,7 @@ func (s *SearchableSnapshots) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *SearchableSnapshots) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *SearchableSnapshots) UnmarshalJSON(data []byte) error {
case "full_copy_indices_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -101,7 +101,7 @@ func (s *SearchableSnapshots) UnmarshalJSON(data []byte) error {
case "indices_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +117,7 @@ func (s *SearchableSnapshots) UnmarshalJSON(data []byte) error {
case "shared_cache_indices_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchapplication.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchapplication.go
index 18d7ea8e39..2f22547373 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchapplication.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchapplication.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SearchApplication type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/_types/SearchApplication.ts#L24-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/_types/SearchApplication.ts#L24-L45
type SearchApplication struct {
// AnalyticsCollectionName Analytics collection associated to the Search Application.
AnalyticsCollectionName *string `json:"analytics_collection_name,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchapplicationlistitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchapplicationlistitem.go
index b6820b5488..444046913c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchapplicationlistitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchapplicationlistitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SearchApplicationListItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/list/SearchApplicationsListResponse.ts#L31-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/list/SearchApplicationsListResponse.ts#L31-L48
type SearchApplicationListItem struct {
// AnalyticsCollectionName Analytics collection associated to the Search Application
AnalyticsCollectionName *string `json:"analytics_collection_name,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchapplicationtemplate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchapplicationtemplate.go
index aefdecd0c1..49d6cd962a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchapplicationtemplate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchapplicationtemplate.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// SearchApplicationTemplate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/search_application/_types/SearchApplication.ts#L47-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/search_application/_types/SearchApplication.ts#L47-L52
type SearchApplicationTemplate struct {
// Script The associated mustache template.
Script InlineScript `json:"script"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchasyoutypeproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchasyoutypeproperty.go
index e738947111..79c8c266b9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchasyoutypeproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchasyoutypeproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// SearchAsYouTypeProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L198-L208
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L200-L210
type SearchAsYouTypeProperty struct {
Analyzer *string `json:"analyzer,omitempty"`
CopyTo []string `json:"copy_to,omitempty"`
@@ -112,7 +112,7 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -403,6 +403,12 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -414,7 +420,7 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -429,7 +435,7 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -449,7 +455,7 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error {
case "max_shingle_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -472,7 +478,7 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error {
}
case "norms":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -492,7 +498,7 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -783,6 +789,12 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -829,7 +841,7 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchidle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchidle.go
index fef486292d..433975d1c1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchidle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchidle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SearchIdle type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L243-L246
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L243-L246
type SearchIdle struct {
After Duration `json:"after,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchinput.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchinput.go
index a4f6fc21f2..a5932f3f48 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchinput.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchinput.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SearchInput type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L112-L116
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L112-L116
type SearchInput struct {
Extract []string `json:"extract,omitempty"`
Request SearchInputRequestDefinition `json:"request"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchinputrequestbody.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchinputrequestbody.go
index 59e5e468be..7a0252d5b6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchinputrequestbody.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchinputrequestbody.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// SearchInputRequestBody type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L147-L149
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L147-L149
type SearchInputRequestBody struct {
Query Query `json:"query"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchinputrequestdefinition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchinputrequestdefinition.go
index 44146c3b54..e535cb08b5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchinputrequestdefinition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchinputrequestdefinition.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// SearchInputRequestDefinition type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L118-L125
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L118-L125
type SearchInputRequestDefinition struct {
Body *SearchInputRequestBody `json:"body,omitempty"`
Indices []string `json:"indices,omitempty"`
@@ -74,7 +74,7 @@ func (s *SearchInputRequestDefinition) UnmarshalJSON(data []byte) error {
}
case "rest_total_hits_as_int":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchprofile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchprofile.go
index 07d2136acf..295ca73ec9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchprofile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchprofile.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SearchProfile type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/profile.ts#L126-L130
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L126-L130
type SearchProfile struct {
Collector []Collector `json:"collector"`
Query []QueryProfile `json:"query"`
@@ -64,7 +64,7 @@ func (s *SearchProfile) UnmarshalJSON(data []byte) error {
}
case "rewrite_time":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchstats.go
index 917ef71c78..cffe73ccc7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SearchStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L252-L271
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L252-L271
type SearchStats struct {
FetchCurrent int64 `json:"fetch_current"`
FetchTime Duration `json:"fetch_time,omitempty"`
@@ -69,7 +69,7 @@ func (s *SearchStats) UnmarshalJSON(data []byte) error {
switch t {
case "fetch_current":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -94,7 +94,7 @@ func (s *SearchStats) UnmarshalJSON(data []byte) error {
}
case "fetch_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +117,7 @@ func (s *SearchStats) UnmarshalJSON(data []byte) error {
}
case "open_contexts":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -132,7 +132,7 @@ func (s *SearchStats) UnmarshalJSON(data []byte) error {
}
case "query_current":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -157,7 +157,7 @@ func (s *SearchStats) UnmarshalJSON(data []byte) error {
}
case "query_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -172,7 +172,7 @@ func (s *SearchStats) UnmarshalJSON(data []byte) error {
}
case "scroll_current":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -197,7 +197,7 @@ func (s *SearchStats) UnmarshalJSON(data []byte) error {
}
case "scroll_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -212,7 +212,7 @@ func (s *SearchStats) UnmarshalJSON(data []byte) error {
}
case "suggest_current":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -237,7 +237,7 @@ func (s *SearchStats) UnmarshalJSON(data []byte) error {
}
case "suggest_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchtemplaterequestbody.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchtemplaterequestbody.go
index dcd43a2257..01f81b7b20 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchtemplaterequestbody.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchtemplaterequestbody.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SearchTemplateRequestBody type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L128-L145
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L128-L145
type SearchTemplateRequestBody struct {
Explain *bool `json:"explain,omitempty"`
// Id ID of the search template to use. If no source is specified,
@@ -61,7 +61,7 @@ func (s *SearchTemplateRequestBody) UnmarshalJSON(data []byte) error {
switch t {
case "explain":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *SearchTemplateRequestBody) UnmarshalJSON(data []byte) error {
}
case "profile":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchtransform.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchtransform.go
index 0cac243b10..5677f90a18 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchtransform.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/searchtransform.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SearchTransform type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Transform.ts#L46-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Transform.ts#L46-L49
type SearchTransform struct {
Request SearchInputRequestDefinition `json:"request"`
Timeout Duration `json:"timeout"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/security.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/security.go
index 7e8d3c3ad7..3dcf990a76 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/security.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/security.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Security type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L434-L447
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L434-L447
type Security struct {
Anonymous FeatureToggle `json:"anonymous"`
ApiKeyService FeatureToggle `json:"api_key_service"`
@@ -80,7 +80,7 @@ func (s *Security) UnmarshalJSON(data []byte) error {
}
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -94,7 +94,7 @@ func (s *Security) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolemapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolemapping.go
index dea398adf4..dd560d5cd7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolemapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolemapping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,12 +31,12 @@ import (
// SecurityRoleMapping type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/RoleMapping.ts#L25-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/RoleMapping.ts#L25-L33
type SecurityRoleMapping struct {
Enabled bool `json:"enabled"`
Metadata Metadata `json:"metadata"`
RoleTemplates []RoleTemplate `json:"role_templates,omitempty"`
- Roles []string `json:"roles"`
+ Roles []string `json:"roles,omitempty"`
Rules RoleMappingRule `json:"rules"`
}
@@ -56,7 +56,7 @@ func (s *SecurityRoleMapping) UnmarshalJSON(data []byte) error {
switch t {
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityroles.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityroles.go
index 98d539f3ff..8d3e9d774f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityroles.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityroles.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// SecurityRoles type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L296-L300
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L296-L300
type SecurityRoles struct {
Dls SecurityRolesDls `json:"dls"`
File SecurityRolesFile `json:"file"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesdls.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesdls.go
index 78cc5fe179..43d65cb29b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesdls.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesdls.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// SecurityRolesDls type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L308-L310
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L308-L310
type SecurityRolesDls struct {
BitSetCache SecurityRolesDlsBitSetCache `json:"bit_set_cache"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesdlsbitsetcache.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesdlsbitsetcache.go
index 41105200e9..98a437e37f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesdlsbitsetcache.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesdlsbitsetcache.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SecurityRolesDlsBitSetCache type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L312-L316
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L312-L316
type SecurityRolesDlsBitSetCache struct {
Count int `json:"count"`
Memory ByteSize `json:"memory,omitempty"`
@@ -55,7 +55,7 @@ func (s *SecurityRolesDlsBitSetCache) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesfile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesfile.go
index 146a076ceb..684b846c51 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesfile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesfile.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SecurityRolesFile type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L318-L322
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L318-L322
type SecurityRolesFile struct {
Dls bool `json:"dls"`
Fls bool `json:"fls"`
@@ -54,7 +54,7 @@ func (s *SecurityRolesFile) UnmarshalJSON(data []byte) error {
switch t {
case "dls":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -68,7 +68,7 @@ func (s *SecurityRolesFile) UnmarshalJSON(data []byte) error {
}
case "fls":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -82,7 +82,7 @@ func (s *SecurityRolesFile) UnmarshalJSON(data []byte) error {
}
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesnative.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesnative.go
index 046844ab7c..af4111ef36 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesnative.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/securityrolesnative.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SecurityRolesNative type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L302-L306
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L302-L306
type SecurityRolesNative struct {
Dls bool `json:"dls"`
Fls bool `json:"fls"`
@@ -54,7 +54,7 @@ func (s *SecurityRolesNative) UnmarshalJSON(data []byte) error {
switch t {
case "dls":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -68,7 +68,7 @@ func (s *SecurityRolesNative) UnmarshalJSON(data []byte) error {
}
case "fls":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -82,7 +82,7 @@ func (s *SecurityRolesNative) UnmarshalJSON(data []byte) error {
}
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/segment.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/segment.go
index 8c50de7a64..39bfe2441e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/segment.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/segment.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Segment type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/segments/types.ts#L28-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/segments/types.ts#L28-L38
type Segment struct {
Attributes map[string]string `json:"attributes"`
Committed bool `json:"committed"`
@@ -68,7 +68,7 @@ func (s *Segment) UnmarshalJSON(data []byte) error {
}
case "committed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -82,7 +82,7 @@ func (s *Segment) UnmarshalJSON(data []byte) error {
}
case "compound":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *Segment) UnmarshalJSON(data []byte) error {
}
case "deleted_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -112,7 +112,7 @@ func (s *Segment) UnmarshalJSON(data []byte) error {
case "generation":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -127,7 +127,7 @@ func (s *Segment) UnmarshalJSON(data []byte) error {
}
case "num_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -142,7 +142,7 @@ func (s *Segment) UnmarshalJSON(data []byte) error {
}
case "search":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -156,7 +156,7 @@ func (s *Segment) UnmarshalJSON(data []byte) error {
}
case "size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/segmentsrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/segmentsrecord.go
index 8dfbf7ac67..bf327a0a30 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/segmentsrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/segmentsrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SegmentsRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/segments/types.ts#L22-L107
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/segments/types.ts#L22-L107
type SegmentsRecord struct {
// Committed If `true`, the segment is synced to disk.
// Segments that are synced can survive a hard reboot.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/segmentsstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/segmentsstats.go
index 6c905de0cd..5993b88a71 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/segmentsstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/segmentsstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SegmentsStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L273-L366
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L273-L366
type SegmentsStats struct {
// Count Total number of segments across all shards assigned to selected nodes.
Count int `json:"count"`
@@ -121,7 +121,7 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -141,7 +141,7 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error {
}
case "doc_values_memory_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -169,7 +169,7 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error {
}
case "fixed_bit_set_memory_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -184,7 +184,7 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error {
}
case "index_writer_max_memory_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -204,7 +204,7 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error {
}
case "index_writer_memory_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -219,7 +219,7 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error {
}
case "max_unsafe_auto_id_timestamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -239,7 +239,7 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error {
}
case "memory_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -259,7 +259,7 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error {
}
case "norms_memory_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -279,7 +279,7 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error {
}
case "points_memory_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -294,7 +294,7 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error {
}
case "stored_fields_memory_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -314,7 +314,7 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error {
}
case "term_vectors_memory_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -339,7 +339,7 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error {
}
case "terms_memory_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -359,7 +359,7 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error {
}
case "version_map_memory_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serialdifferencingaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serialdifferencingaggregation.go
index 404b4905de..56c81267c2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serialdifferencingaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serialdifferencingaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// SerialDifferencingAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L361-L367
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L361-L367
type SerialDifferencingAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -45,9 +45,7 @@ type SerialDifferencingAggregation struct {
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
// Lag The historical bucket to subtract from the current value.
// Must be a positive, non-zero integer.
- Lag *int `json:"lag,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
+ Lag *int `json:"lag,omitempty"`
}
func (s *SerialDifferencingAggregation) UnmarshalJSON(data []byte) error {
@@ -89,7 +87,7 @@ func (s *SerialDifferencingAggregation) UnmarshalJSON(data []byte) error {
case "lag":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -103,23 +101,6 @@ func (s *SerialDifferencingAggregation) UnmarshalJSON(data []byte) error {
s.Lag = &f
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serializedclusterstate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serializedclusterstate.go
index 50812fd10f..28f28b2a90 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serializedclusterstate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serializedclusterstate.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// SerializedClusterState type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L232-L238
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L232-L238
type SerializedClusterState struct {
Diffs *SerializedClusterStateDetail `json:"diffs,omitempty"`
// FullStates Number of published cluster states.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serializedclusterstatedetail.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serializedclusterstatedetail.go
index acc5f6eb4a..d0889071f5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serializedclusterstatedetail.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/serializedclusterstatedetail.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SerializedClusterStateDetail type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L240-L246
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L240-L246
type SerializedClusterStateDetail struct {
CompressedSize *string `json:"compressed_size,omitempty"`
CompressedSizeInBytes *int64 `json:"compressed_size_in_bytes,omitempty"`
@@ -68,7 +68,7 @@ func (s *SerializedClusterStateDetail) UnmarshalJSON(data []byte) error {
s.CompressedSize = &o
case "compressed_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -83,7 +83,7 @@ func (s *SerializedClusterStateDetail) UnmarshalJSON(data []byte) error {
}
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -110,7 +110,7 @@ func (s *SerializedClusterStateDetail) UnmarshalJSON(data []byte) error {
s.UncompressedSize = &o
case "uncompressed_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/servicetoken.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/servicetoken.go
index b8d50d875d..cc59cc78ec 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/servicetoken.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/servicetoken.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ServiceToken type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/create_service_token/types.ts#L22-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/create_service_token/types.ts#L22-L25
type ServiceToken struct {
Name string `json:"name"`
Value string `json:"value"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/setprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/setprocessor.go
index c04026a67a..d64b482afa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/setprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/setprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SetProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L1023-L1057
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1027-L1061
type SetProcessor struct {
// CopyFrom The origin field which will be copied to `field`, cannot set `value`
// simultaneously.
@@ -121,7 +121,7 @@ func (s *SetProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_empty_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -135,7 +135,7 @@ func (s *SetProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -166,7 +166,7 @@ func (s *SetProcessor) UnmarshalJSON(data []byte) error {
}
case "override":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/setsecurityuserprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/setsecurityuserprocessor.go
index 326d1476d5..fcb4b08fa3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/setsecurityuserprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/setsecurityuserprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SetSecurityUserProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L1059-L1068
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1063-L1072
type SetSecurityUserProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -96,7 +96,7 @@ func (s *SetSecurityUserProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settings.go
index 6eb6113733..f73a7085e0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Settings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/_types/Transform.ts#L98-L144
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L98-L144
type Settings struct {
// AlignCheckpoints Specifies whether the transform checkpoint ranges should be optimized for
// performance. Such optimization can align
@@ -84,7 +84,7 @@ func (s *Settings) UnmarshalJSON(data []byte) error {
switch t {
case "align_checkpoints":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -98,7 +98,7 @@ func (s *Settings) UnmarshalJSON(data []byte) error {
}
case "dates_as_epoch_millis":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -112,7 +112,7 @@ func (s *Settings) UnmarshalJSON(data []byte) error {
}
case "deduce_mappings":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -126,7 +126,7 @@ func (s *Settings) UnmarshalJSON(data []byte) error {
}
case "docs_per_second":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -143,7 +143,7 @@ func (s *Settings) UnmarshalJSON(data []byte) error {
case "max_page_search_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -158,7 +158,7 @@ func (s *Settings) UnmarshalJSON(data []byte) error {
}
case "unattended":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingsanalyze.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingsanalyze.go
index 979585a28f..a9a8597956 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingsanalyze.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingsanalyze.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SettingsAnalyze type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L233-L236
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L233-L236
type SettingsAnalyze struct {
MaxTokenCount Stringifiedinteger `json:"max_token_count,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingshighlight.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingshighlight.go
index bb29130362..4cf4a4eb49 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingshighlight.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingshighlight.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SettingsHighlight type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L228-L231
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L228-L231
type SettingsHighlight struct {
MaxAnalyzedOffset *int `json:"max_analyzed_offset,omitempty"`
}
@@ -53,7 +53,7 @@ func (s *SettingsHighlight) UnmarshalJSON(data []byte) error {
case "max_analyzed_offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingsquerystring.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingsquerystring.go
index c45c5a329c..cdcda61ff6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingsquerystring.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingsquerystring.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SettingsQueryString type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L248-L250
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L248-L250
type SettingsQueryString struct {
Lenient Stringifiedboolean `json:"lenient"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssearch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssearch.go
index db170522e7..2bbff134f3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssearch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssearch.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// SettingsSearch type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L238-L241
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L238-L241
type SettingsSearch struct {
Idle *SearchIdle `json:"idle,omitempty"`
Slowlog *SlowlogSettings `json:"slowlog,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarity.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarity.go
index a9dc12d105..17dca951b4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarity.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarity.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,5 +31,5 @@ package types
// SettingsSimilarityLmj
// SettingsSimilarityScripted
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L169-L180
-type SettingsSimilarity interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L169-L180
+type SettingsSimilarity any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritybm25.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritybm25.go
index 422689079a..1c816ea0d7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritybm25.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritybm25.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SettingsSimilarityBm25 type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L186-L191
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L186-L191
type SettingsSimilarityBm25 struct {
B *Float64 `json:"b,omitempty"`
DiscountOverlaps *bool `json:"discount_overlaps,omitempty"`
@@ -55,7 +55,7 @@ func (s *SettingsSimilarityBm25) UnmarshalJSON(data []byte) error {
switch t {
case "b":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *SettingsSimilarityBm25) UnmarshalJSON(data []byte) error {
}
case "discount_overlaps":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *SettingsSimilarityBm25) UnmarshalJSON(data []byte) error {
}
case "k1":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarityboolean.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarityboolean.go
index 12c88752e8..bc30b2b768 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarityboolean.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarityboolean.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// SettingsSimilarityBoolean type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L182-L184
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L182-L184
type SettingsSimilarityBoolean struct {
Type string `json:"type,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritydfi.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritydfi.go
index 76ec8b280b..cfc262fb02 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritydfi.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritydfi.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -28,7 +28,7 @@ import (
// SettingsSimilarityDfi type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L193-L196
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L193-L196
type SettingsSimilarityDfi struct {
IndependenceMeasure dfiindependencemeasure.DFIIndependenceMeasure `json:"independence_measure"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritydfr.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritydfr.go
index 142ca6a15e..17fb3246ee 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritydfr.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritydfr.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SettingsSimilarityDfr type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L198-L203
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L198-L203
type SettingsSimilarityDfr struct {
AfterEffect dfraftereffect.DFRAfterEffect `json:"after_effect"`
BasicModel dfrbasicmodel.DFRBasicModel `json:"basic_model"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarityib.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarityib.go
index 84db86aa88..ce262e3820 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarityib.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarityib.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SettingsSimilarityIb type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L205-L210
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L205-L210
type SettingsSimilarityIb struct {
Distribution ibdistribution.IBDistribution `json:"distribution"`
Lambda iblambda.IBLambda `json:"lambda"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritylmd.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritylmd.go
index c090f75368..d50f5f45e8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritylmd.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritylmd.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SettingsSimilarityLmd type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L212-L215
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L212-L215
type SettingsSimilarityLmd struct {
Mu *Float64 `json:"mu,omitempty"`
Type string `json:"type,omitempty"`
@@ -53,7 +53,7 @@ func (s *SettingsSimilarityLmd) UnmarshalJSON(data []byte) error {
switch t {
case "mu":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritylmj.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritylmj.go
index d4feaff95f..e7ac31a678 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritylmj.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilaritylmj.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SettingsSimilarityLmj type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L217-L220
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L217-L220
type SettingsSimilarityLmj struct {
Lambda *Float64 `json:"lambda,omitempty"`
Type string `json:"type,omitempty"`
@@ -53,7 +53,7 @@ func (s *SettingsSimilarityLmj) UnmarshalJSON(data []byte) error {
switch t {
case "lambda":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarityscripted.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarityscripted.go
index c91e81e75a..6c53a1fe05 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarityscripted.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/settingssimilarityscripted.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SettingsSimilarityScripted type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L222-L226
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L222-L226
type SettingsSimilarityScripted struct {
Script Script `json:"script"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shapefieldquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shapefieldquery.go
index 7ca1aa62eb..1babf97637 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shapefieldquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shapefieldquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// ShapeFieldQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L354-L367
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L354-L367
type ShapeFieldQuery struct {
// IndexedShape Queries using a pre-indexed shape.
IndexedShape *FieldLookup `json:"indexed_shape,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shapeproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shapeproperty.go
index 595c0151dc..9ff5b1de24 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shapeproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shapeproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// ShapeProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/geo.ts#L73-L85
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/geo.ts#L73-L85
type ShapeProperty struct {
Coerce *bool `json:"coerce,omitempty"`
CopyTo []string `json:"copy_to,omitempty"`
@@ -69,7 +69,7 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error {
switch t {
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -99,7 +99,7 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -124,7 +124,7 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -415,6 +415,12 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -426,7 +432,7 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -441,7 +447,7 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -455,7 +461,7 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_z_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -488,7 +494,7 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -779,6 +785,12 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -801,7 +813,7 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shapequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shapequery.go
index e7f3702414..f5e048ec0b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shapequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shapequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShapeQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/specialized.ts#L344-L352
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/specialized.ts#L344-L352
type ShapeQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -62,7 +62,7 @@ func (s *ShapeQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -78,7 +78,7 @@ func (s *ShapeQuery) UnmarshalJSON(data []byte) error {
}
case "ignore_unmapped":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *ShapeQuery) UnmarshalJSON(data []byte) error {
func (s ShapeQuery) MarshalJSON() ([]byte, error) {
type opt ShapeQuery
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardcommit.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardcommit.go
index 8d8afc2255..25e459c6f8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardcommit.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardcommit.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardCommit type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L112-L117
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L112-L117
type ShardCommit struct {
Generation int `json:"generation"`
Id string `json:"id"`
@@ -56,7 +56,7 @@ func (s *ShardCommit) UnmarshalJSON(data []byte) error {
case "generation":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -76,7 +76,7 @@ func (s *ShardCommit) UnmarshalJSON(data []byte) error {
}
case "num_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardfailure.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardfailure.go
index ae3fb8137d..bf9223fd45 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardfailure.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardfailure.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardFailure type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Errors.ts#L50-L56
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Errors.ts#L50-L56
type ShardFailure struct {
Index *string `json:"index,omitempty"`
Node *string `json:"node,omitempty"`
@@ -79,7 +79,7 @@ func (s *ShardFailure) UnmarshalJSON(data []byte) error {
case "shard":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardfilesizeinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardfilesizeinfo.go
index a8fa0f5723..f72c40b728 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardfilesizeinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardfilesizeinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardFileSizeInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L124-L131
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L124-L131
type ShardFileSizeInfo struct {
AverageSizeInBytes *int64 `json:"average_size_in_bytes,omitempty"`
Count *int64 `json:"count,omitempty"`
@@ -57,7 +57,7 @@ func (s *ShardFileSizeInfo) UnmarshalJSON(data []byte) error {
switch t {
case "average_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *ShardFileSizeInfo) UnmarshalJSON(data []byte) error {
}
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -99,7 +99,7 @@ func (s *ShardFileSizeInfo) UnmarshalJSON(data []byte) error {
s.Description = o
case "max_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *ShardFileSizeInfo) UnmarshalJSON(data []byte) error {
}
case "min_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -129,7 +129,7 @@ func (s *ShardFileSizeInfo) UnmarshalJSON(data []byte) error {
}
case "size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardhealthstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardhealthstats.go
index a35376f81a..0c03947d82 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardhealthstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardhealthstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// ShardHealthStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/health/types.ts#L36-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/health/types.ts#L36-L43
type ShardHealthStats struct {
ActiveShards int `json:"active_shards"`
InitializingShards int `json:"initializing_shards"`
@@ -60,7 +60,7 @@ func (s *ShardHealthStats) UnmarshalJSON(data []byte) error {
case "active_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -76,7 +76,7 @@ func (s *ShardHealthStats) UnmarshalJSON(data []byte) error {
case "initializing_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *ShardHealthStats) UnmarshalJSON(data []byte) error {
}
case "primary_active":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -106,7 +106,7 @@ func (s *ShardHealthStats) UnmarshalJSON(data []byte) error {
case "relocating_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -127,7 +127,7 @@ func (s *ShardHealthStats) UnmarshalJSON(data []byte) error {
case "unassigned_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardlease.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardlease.go
index 9c17cf048b..8c9c160906 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardlease.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardlease.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardLease type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L133-L138
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L133-L138
type ShardLease struct {
Id string `json:"id"`
RetainingSeqNo int64 `json:"retaining_seq_no"`
@@ -77,7 +77,7 @@ func (s *ShardLease) UnmarshalJSON(data []byte) error {
s.Source = o
case "timestamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardmigrationstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardmigrationstatus.go
index 50932714b5..906833d3e2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardmigrationstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardmigrationstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// ShardMigrationStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L52-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L52-L54
type ShardMigrationStatus struct {
Status shutdownstatus.ShutdownStatus `json:"status"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardpath.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardpath.go
index dfc855f53c..3adf04ca2b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardpath.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardpath.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardPath type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L140-L144
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L140-L144
type ShardPath struct {
DataPath string `json:"data_path"`
IsCustomDataPath bool `json:"is_custom_data_path"`
@@ -66,7 +66,7 @@ func (s *ShardPath) UnmarshalJSON(data []byte) error {
s.DataPath = o
case "is_custom_data_path":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardprofile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardprofile.go
index 24eb8a43ff..55c117aa93 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardprofile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardprofile.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardProfile type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/profile.ts#L132-L137
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/profile.ts#L132-L137
type ShardProfile struct {
Aggregations []AggregationProfile `json:"aggregations"`
Fetch *FetchProfile `json:"fetch,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardquerycache.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardquerycache.go
index 756ab61e96..cf3f8fa9ff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardquerycache.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardquerycache.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardQueryCache type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L146-L154
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L146-L154
type ShardQueryCache struct {
CacheCount int64 `json:"cache_count"`
CacheSize int64 `json:"cache_size"`
@@ -58,7 +58,7 @@ func (s *ShardQueryCache) UnmarshalJSON(data []byte) error {
switch t {
case "cache_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -73,7 +73,7 @@ func (s *ShardQueryCache) UnmarshalJSON(data []byte) error {
}
case "cache_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *ShardQueryCache) UnmarshalJSON(data []byte) error {
}
case "evictions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -103,7 +103,7 @@ func (s *ShardQueryCache) UnmarshalJSON(data []byte) error {
}
case "hit_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -118,7 +118,7 @@ func (s *ShardQueryCache) UnmarshalJSON(data []byte) error {
}
case "memory_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -133,7 +133,7 @@ func (s *ShardQueryCache) UnmarshalJSON(data []byte) error {
}
case "miss_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -148,7 +148,7 @@ func (s *ShardQueryCache) UnmarshalJSON(data []byte) error {
}
case "total_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardrecovery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardrecovery.go
index 7d59d77bd7..c53de6cd47 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardrecovery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardrecovery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardRecovery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/recovery/types.ts#L118-L135
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L118-L135
type ShardRecovery struct {
Id int64 `json:"id"`
Index RecoveryIndexStatus `json:"index"`
@@ -67,7 +67,7 @@ func (s *ShardRecovery) UnmarshalJSON(data []byte) error {
switch t {
case "id":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *ShardRecovery) UnmarshalJSON(data []byte) error {
}
case "primary":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardretentionleases.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardretentionleases.go
index 0de66b1901..8750ac2e03 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardretentionleases.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardretentionleases.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardRetentionLeases type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L156-L160
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L156-L160
type ShardRetentionLeases struct {
Leases []ShardLease `json:"leases"`
PrimaryTerm int64 `json:"primary_term"`
@@ -59,7 +59,7 @@ func (s *ShardRetentionLeases) UnmarshalJSON(data []byte) error {
}
case "primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardrouting.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardrouting.go
index eed680c229..b389487693 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardrouting.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardrouting.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// ShardRouting type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L162-L167
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L162-L167
type ShardRouting struct {
Node string `json:"node"`
Primary bool `json:"primary"`
@@ -69,7 +69,7 @@ func (s *ShardRouting) UnmarshalJSON(data []byte) error {
s.Node = o
case "primary":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsavailabilityindicator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsavailabilityindicator.go
index a80c535855..a4bced2499 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsavailabilityindicator.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsavailabilityindicator.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// ShardsAvailabilityIndicator type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L104-L108
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L104-L108
type ShardsAvailabilityIndicator struct {
Details *ShardsAvailabilityIndicatorDetails `json:"details,omitempty"`
Diagnosis []Diagnosis `json:"diagnosis,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsavailabilityindicatordetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsavailabilityindicatordetails.go
index 88bb5f8e30..e0ad49267d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsavailabilityindicatordetails.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsavailabilityindicatordetails.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardsAvailabilityIndicatorDetails type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L109-L119
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L109-L119
type ShardsAvailabilityIndicatorDetails struct {
CreatingPrimaries int64 `json:"creating_primaries"`
InitializingPrimaries int64 `json:"initializing_primaries"`
@@ -60,7 +60,7 @@ func (s *ShardsAvailabilityIndicatorDetails) UnmarshalJSON(data []byte) error {
switch t {
case "creating_primaries":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -75,7 +75,7 @@ func (s *ShardsAvailabilityIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "initializing_primaries":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -90,7 +90,7 @@ func (s *ShardsAvailabilityIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "initializing_replicas":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -105,7 +105,7 @@ func (s *ShardsAvailabilityIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "restarting_primaries":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -120,7 +120,7 @@ func (s *ShardsAvailabilityIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "restarting_replicas":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -135,7 +135,7 @@ func (s *ShardsAvailabilityIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "started_primaries":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +150,7 @@ func (s *ShardsAvailabilityIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "started_replicas":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -165,7 +165,7 @@ func (s *ShardsAvailabilityIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "unassigned_primaries":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -180,7 +180,7 @@ func (s *ShardsAvailabilityIndicatorDetails) UnmarshalJSON(data []byte) error {
}
case "unassigned_replicas":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardscapacityindicator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardscapacityindicator.go
index a444278747..61c972b83f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardscapacityindicator.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardscapacityindicator.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// ShardsCapacityIndicator type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L171-L175
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L171-L175
type ShardsCapacityIndicator struct {
Details *ShardsCapacityIndicatorDetails `json:"details,omitempty"`
Diagnosis []Diagnosis `json:"diagnosis,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardscapacityindicatordetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardscapacityindicatordetails.go
index a5a07cf945..73ff365def 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardscapacityindicatordetails.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardscapacityindicatordetails.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ShardsCapacityIndicatorDetails type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L177-L180
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L177-L180
type ShardsCapacityIndicatorDetails struct {
Data ShardsCapacityIndicatorTierDetail `json:"data"`
Frozen ShardsCapacityIndicatorTierDetail `json:"frozen"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardscapacityindicatortierdetail.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardscapacityindicatortierdetail.go
index 466f8b92a8..7a0075d99f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardscapacityindicatortierdetail.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardscapacityindicatortierdetail.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardsCapacityIndicatorTierDetail type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L182-L185
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L182-L185
type ShardsCapacityIndicatorTierDetail struct {
CurrentUsedShards *int `json:"current_used_shards,omitempty"`
MaxShardsInCluster int `json:"max_shards_in_cluster"`
@@ -54,7 +54,7 @@ func (s *ShardsCapacityIndicatorTierDetail) UnmarshalJSON(data []byte) error {
case "current_used_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *ShardsCapacityIndicatorTierDetail) UnmarshalJSON(data []byte) error {
case "max_shards_in_cluster":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsegmentrouting.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsegmentrouting.go
index b1ddc291f1..57e568be83 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsegmentrouting.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsegmentrouting.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardSegmentRouting type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/segments/types.ts#L40-L44
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/segments/types.ts#L40-L44
type ShardSegmentRouting struct {
Node string `json:"node"`
Primary bool `json:"primary"`
@@ -66,7 +66,7 @@ func (s *ShardSegmentRouting) UnmarshalJSON(data []byte) error {
s.Node = o
case "primary":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsequencenumber.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsequencenumber.go
index 85dbbab42e..3451bd4651 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsequencenumber.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsequencenumber.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardSequenceNumber type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L176-L180
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L176-L180
type ShardSequenceNumber struct {
GlobalCheckpoint int64 `json:"global_checkpoint"`
LocalCheckpoint int64 `json:"local_checkpoint"`
@@ -54,7 +54,7 @@ func (s *ShardSequenceNumber) UnmarshalJSON(data []byte) error {
switch t {
case "global_checkpoint":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -69,7 +69,7 @@ func (s *ShardSequenceNumber) UnmarshalJSON(data []byte) error {
}
case "local_checkpoint":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsrecord.go
index 5169be9ad9..72c966be68 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardsRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/shards/types.ts#L20-L421
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/shards/types.ts#L20-L421
type ShardsRecord struct {
// BulkAvgSizeInBytes The average size in bytes of shard bulk operations.
BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardssegment.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardssegment.go
index 815e1f115a..c05997fd8e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardssegment.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardssegment.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardsSegment type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/segments/types.ts#L46-L51
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/segments/types.ts#L46-L51
type ShardsSegment struct {
NumCommittedSegments int `json:"num_committed_segments"`
NumSearchSegments int `json:"num_search_segments"`
@@ -56,7 +56,7 @@ func (s *ShardsSegment) UnmarshalJSON(data []byte) error {
case "num_committed_segments":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *ShardsSegment) UnmarshalJSON(data []byte) error {
case "num_search_segments":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsstatssummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsstatssummary.go
index 76a9f506db..5cc6e97173 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsstatssummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsstatssummary.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// ShardsStatsSummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotShardsStatus.ts#L29-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotShardsStatus.ts#L29-L35
type ShardsStatsSummary struct {
Incremental ShardsStatsSummaryItem `json:"incremental"`
StartTimeInMillis int64 `json:"start_time_in_millis"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsstatssummaryitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsstatssummaryitem.go
index 8f23c23c99..7dba12302e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsstatssummaryitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardsstatssummaryitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardsStatsSummaryItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotShardsStatus.ts#L37-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotShardsStatus.ts#L37-L40
type ShardsStatsSummaryItem struct {
FileCount int64 `json:"file_count"`
SizeInBytes int64 `json:"size_in_bytes"`
@@ -53,7 +53,7 @@ func (s *ShardsStatsSummaryItem) UnmarshalJSON(data []byte) error {
switch t {
case "file_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -68,7 +68,7 @@ func (s *ShardsStatsSummaryItem) UnmarshalJSON(data []byte) error {
}
case "size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstatistics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstatistics.go
index 3407969db4..438e32c814 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstatistics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstatistics.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ShardStatistics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L54-L66
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L54-L66
type ShardStatistics struct {
Failed uint `json:"failed"`
Failures []ShardFailure `json:"failures,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstore.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstore.go
index 26faea5982..4c070dd574 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstore.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstore.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// ShardStore type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/shard_stores/types.ts#L30-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/types.ts#L30-L34
type ShardStore struct {
Allocation shardstoreallocation.ShardStoreAllocation `json:"allocation"`
AllocationId *string `json:"allocation_id,omitempty"`
@@ -92,7 +92,7 @@ func (s *ShardStore) UnmarshalJSON(data []byte) error {
func (s ShardStore) MarshalJSON() ([]byte, error) {
type opt ShardStore
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstoreexception.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstoreexception.go
index 35558ac5c4..b6f7b2094b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstoreexception.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstoreexception.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardStoreException type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/shard_stores/types.ts#L51-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/types.ts#L51-L54
type ShardStoreException struct {
Reason string `json:"reason"`
Type string `json:"type"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstoreindex.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstoreindex.go
index 130eae0035..a449b0ed2c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstoreindex.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstoreindex.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ShardStoreIndex type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search_shards/SearchShardsResponse.ts#L33-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search_shards/SearchShardsResponse.ts#L33-L36
type ShardStoreIndex struct {
Aliases []string `json:"aliases,omitempty"`
Filter *Query `json:"filter,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstorenode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstorenode.go
index e6aefeecc9..5d96c068f8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstorenode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstorenode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardStoreNode type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/shard_stores/types.ts#L36-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/types.ts#L36-L43
type ShardStoreNode struct {
Attributes map[string]string `json:"attributes"`
EphemeralId *string `json:"ephemeral_id,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstorewrapper.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstorewrapper.go
index d2570c39ff..1b328ea54c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstorewrapper.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstorewrapper.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// ShardStoreWrapper type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/shard_stores/types.ts#L56-L58
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/shard_stores/types.ts#L56-L58
type ShardStoreWrapper struct {
Stores []ShardStore `json:"stores"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstotalstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstotalstats.go
index 7a31723871..92df520ecd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstotalstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shardstotalstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShardsTotalStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/stats/types.ts#L182-L184
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/stats/types.ts#L182-L184
type ShardsTotalStats struct {
TotalCount int64 `json:"total_count"`
}
@@ -52,7 +52,7 @@ func (s *ShardsTotalStats) UnmarshalJSON(data []byte) error {
switch t {
case "total_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shared.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shared.go
index 8d7134c518..49ef690e04 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shared.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shared.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Shared type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/searchable_snapshots/cache_stats/Response.ts#L34-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/searchable_snapshots/cache_stats/Response.ts#L34-L43
type Shared struct {
BytesReadInBytes ByteSize `json:"bytes_read_in_bytes"`
BytesWrittenInBytes ByteSize `json:"bytes_written_in_bytes"`
@@ -69,7 +69,7 @@ func (s *Shared) UnmarshalJSON(data []byte) error {
}
case "evictions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *Shared) UnmarshalJSON(data []byte) error {
case "num_regions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *Shared) UnmarshalJSON(data []byte) error {
}
case "reads":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *Shared) UnmarshalJSON(data []byte) error {
}
case "writes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sharedfilesystemrepository.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sharedfilesystemrepository.go
index c441c34361..0445624e9d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sharedfilesystemrepository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sharedfilesystemrepository.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SharedFileSystemRepository type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotRepository.ts#L55-L58
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L55-L58
type SharedFileSystemRepository struct {
Settings SharedFileSystemRepositorySettings `json:"settings"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sharedfilesystemrepositorysettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sharedfilesystemrepositorysettings.go
index eba9e8477b..4d28ec5671 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sharedfilesystemrepositorysettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sharedfilesystemrepositorysettings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SharedFileSystemRepositorySettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotRepository.ts#L104-L108
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L104-L108
type SharedFileSystemRepositorySettings struct {
ChunkSize ByteSize `json:"chunk_size,omitempty"`
Compress *bool `json:"compress,omitempty"`
@@ -63,7 +63,7 @@ func (s *SharedFileSystemRepositorySettings) UnmarshalJSON(data []byte) error {
}
case "compress":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -90,7 +90,7 @@ func (s *SharedFileSystemRepositorySettings) UnmarshalJSON(data []byte) error {
case "max_number_of_snapshots":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -115,7 +115,7 @@ func (s *SharedFileSystemRepositorySettings) UnmarshalJSON(data []byte) error {
}
case "readonly":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shingletokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shingletokenfilter.go
index 920a710302..cc926b7e9c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shingletokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shingletokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShingleTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L87-L95
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L87-L95
type ShingleTokenFilter struct {
FillerToken *string `json:"filler_token,omitempty"`
MaxShingleSize string `json:"max_shingle_size,omitempty"`
@@ -95,7 +95,7 @@ func (s *ShingleTokenFilter) UnmarshalJSON(data []byte) error {
s.MinShingleSize = o
case "output_unigrams":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -109,7 +109,7 @@ func (s *ShingleTokenFilter) UnmarshalJSON(data []byte) error {
}
case "output_unigrams_if_no_shingles":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shortnumberproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shortnumberproperty.go
index c1c08ddca4..384ab4ae62 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shortnumberproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shortnumberproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// ShortNumberProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L159-L162
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L161-L164
type ShortNumberProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -79,7 +79,7 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +150,7 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -441,6 +441,12 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -452,7 +458,7 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -467,7 +473,7 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -481,7 +487,7 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +525,7 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -810,6 +816,12 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -868,7 +880,7 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -882,7 +894,7 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error {
}
case "time_series_dimension":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shrinkconfiguration.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shrinkconfiguration.go
index d10369cca5..573ca14c61 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shrinkconfiguration.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/shrinkconfiguration.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ShrinkConfiguration type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/_types/Phase.ts#L60-L62
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/_types/Phase.ts#L60-L62
type ShrinkConfiguration struct {
NumberOfShards int `json:"number_of_shards"`
}
@@ -53,7 +53,7 @@ func (s *ShrinkConfiguration) UnmarshalJSON(data []byte) error {
case "number_of_shards":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantlongtermsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantlongtermsaggregate.go
index bd066cda09..c1540ccdff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantlongtermsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantlongtermsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SignificantLongTermsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L588-L590
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L588-L590
type SignificantLongTermsAggregate struct {
BgCount *int64 `json:"bg_count,omitempty"`
Buckets BucketsSignificantLongTermsBucket `json:"buckets"`
@@ -55,7 +55,7 @@ func (s *SignificantLongTermsAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "bg_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *SignificantLongTermsAggregate) UnmarshalJSON(data []byte) error {
}
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantlongtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantlongtermsbucket.go
index 8a0ae062c6..53ca288567 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantlongtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantlongtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// SignificantLongTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L597-L600
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L597-L600
type SignificantLongTermsBucket struct {
Aggregations map[string]Aggregate `json:"-"`
BgCount int64 `json:"bg_count"`
@@ -58,7 +58,7 @@ func (s *SignificantLongTermsBucket) UnmarshalJSON(data []byte) error {
switch t {
case "bg_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -73,7 +73,7 @@ func (s *SignificantLongTermsBucket) UnmarshalJSON(data []byte) error {
}
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *SignificantLongTermsBucket) UnmarshalJSON(data []byte) error {
}
case "key":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -115,7 +115,7 @@ func (s *SignificantLongTermsBucket) UnmarshalJSON(data []byte) error {
s.KeyAsString = &o
case "score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -575,7 +575,7 @@ func (s *SignificantLongTermsBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -625,7 +625,7 @@ func (s *SignificantLongTermsBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -635,7 +635,7 @@ func (s *SignificantLongTermsBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -652,7 +652,7 @@ func (s *SignificantLongTermsBucket) UnmarshalJSON(data []byte) error {
func (s SignificantLongTermsBucket) MarshalJSON() ([]byte, error) {
type opt SignificantLongTermsBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantstringtermsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantstringtermsaggregate.go
index d61775ac0c..cb6fbda414 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantstringtermsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantstringtermsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SignificantStringTermsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L602-L604
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L602-L604
type SignificantStringTermsAggregate struct {
BgCount *int64 `json:"bg_count,omitempty"`
Buckets BucketsSignificantStringTermsBucket `json:"buckets"`
@@ -55,7 +55,7 @@ func (s *SignificantStringTermsAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "bg_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *SignificantStringTermsAggregate) UnmarshalJSON(data []byte) error {
}
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantstringtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantstringtermsbucket.go
index 41d977adfe..329926b136 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantstringtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significantstringtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// SignificantStringTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L606-L608
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L606-L608
type SignificantStringTermsBucket struct {
Aggregations map[string]Aggregate `json:"-"`
BgCount int64 `json:"bg_count"`
@@ -57,7 +57,7 @@ func (s *SignificantStringTermsBucket) UnmarshalJSON(data []byte) error {
switch t {
case "bg_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *SignificantStringTermsBucket) UnmarshalJSON(data []byte) error {
}
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -99,7 +99,7 @@ func (s *SignificantStringTermsBucket) UnmarshalJSON(data []byte) error {
s.Key = o
case "score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -559,7 +559,7 @@ func (s *SignificantStringTermsBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -609,7 +609,7 @@ func (s *SignificantStringTermsBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -619,7 +619,7 @@ func (s *SignificantStringTermsBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -636,7 +636,7 @@ func (s *SignificantStringTermsBucket) UnmarshalJSON(data []byte) error {
func (s SignificantStringTermsBucket) MarshalJSON() ([]byte, error) {
type opt SignificantStringTermsBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregatebasesignificantlongtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregatebasesignificantlongtermsbucket.go
index d3b6352942..e48926f408 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregatebasesignificantlongtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregatebasesignificantlongtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SignificantTermsAggregateBaseSignificantLongTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L581-L586
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L581-L586
type SignificantTermsAggregateBaseSignificantLongTermsBucket struct {
BgCount *int64 `json:"bg_count,omitempty"`
Buckets BucketsSignificantLongTermsBucket `json:"buckets"`
@@ -55,7 +55,7 @@ func (s *SignificantTermsAggregateBaseSignificantLongTermsBucket) UnmarshalJSON(
switch t {
case "bg_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *SignificantTermsAggregateBaseSignificantLongTermsBucket) UnmarshalJSON(
}
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregatebasesignificantstringtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregatebasesignificantstringtermsbucket.go
index de26ae3b0a..5686ef08fd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregatebasesignificantstringtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregatebasesignificantstringtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SignificantTermsAggregateBaseSignificantStringTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L581-L586
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L581-L586
type SignificantTermsAggregateBaseSignificantStringTermsBucket struct {
BgCount *int64 `json:"bg_count,omitempty"`
Buckets BucketsSignificantStringTermsBucket `json:"buckets"`
@@ -55,7 +55,7 @@ func (s *SignificantTermsAggregateBaseSignificantStringTermsBucket) UnmarshalJSO
switch t {
case "bg_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *SignificantTermsAggregateBaseSignificantStringTermsBucket) UnmarshalJSO
}
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregatebasevoid.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregatebasevoid.go
index af12ce12c7..2990a19bb6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregatebasevoid.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregatebasevoid.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SignificantTermsAggregateBaseVoid type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L581-L586
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L581-L586
type SignificantTermsAggregateBaseVoid struct {
BgCount *int64 `json:"bg_count,omitempty"`
Buckets BucketsVoid `json:"buckets"`
@@ -55,7 +55,7 @@ func (s *SignificantTermsAggregateBaseVoid) UnmarshalJSON(data []byte) error {
switch t {
case "bg_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -77,13 +77,13 @@ func (s *SignificantTermsAggregateBaseVoid) UnmarshalJSON(data []byte) error {
localDec := json.NewDecoder(source)
switch rawMsg[0] {
case '{':
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := localDec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Buckets", err)
}
s.Buckets = o
case '[':
- o := []interface{}{}
+ o := []any{}
if err := localDec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Buckets", err)
}
@@ -91,7 +91,7 @@ func (s *SignificantTermsAggregateBaseVoid) UnmarshalJSON(data []byte) error {
}
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregation.go
index 560ecf5786..afe0ebae3c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttermsaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// SignificantTermsAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L768-L832
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L772-L836
type SignificantTermsAggregation struct {
// BackgroundFilter A background filter that can be used to focus in on significant terms within
// a narrower context, instead of the entire index.
@@ -54,14 +54,12 @@ type SignificantTermsAggregation struct {
// Include Terms to include.
Include TermsInclude `json:"include,omitempty"`
// Jlh Use JLH score as the significance score.
- Jlh *EmptyObject `json:"jlh,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
+ Jlh *EmptyObject `json:"jlh,omitempty"`
// MinDocCount Only return terms that are found in more than `min_doc_count` hits.
MinDocCount *int64 `json:"min_doc_count,omitempty"`
// MutualInformation Use mutual information as described in "Information Retrieval", Manning et
// al., Chapter 13.5.1, as the significance score.
MutualInformation *MutualInformationHeuristic `json:"mutual_information,omitempty"`
- Name *string `json:"name,omitempty"`
// Percentage A simple calculation of the number of documents in the foreground sample with
// a term divided by the number of documents in the background with the term.
Percentage *PercentageScoreHeuristic `json:"percentage,omitempty"`
@@ -146,13 +144,8 @@ func (s *SignificantTermsAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Jlh", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "min_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -171,18 +164,6 @@ func (s *SignificantTermsAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "MutualInformation", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "percentage":
if err := dec.Decode(&s.Percentage); err != nil {
return fmt.Errorf("%s | %w", "Percentage", err)
@@ -194,7 +175,7 @@ func (s *SignificantTermsAggregation) UnmarshalJSON(data []byte) error {
}
case "shard_min_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -210,7 +191,7 @@ func (s *SignificantTermsAggregation) UnmarshalJSON(data []byte) error {
case "shard_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -226,7 +207,7 @@ func (s *SignificantTermsAggregation) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttextaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttextaggregation.go
index acc90fe71e..fbe5c0792b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttextaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/significanttextaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// SignificantTextAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L834-L906
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L838-L910
type SignificantTextAggregation struct {
// BackgroundFilter A background filter that can be used to focus in on significant terms within
// a narrower context, instead of the entire index.
@@ -56,14 +56,12 @@ type SignificantTextAggregation struct {
// Include Values to include.
Include TermsInclude `json:"include,omitempty"`
// Jlh Use JLH score as the significance score.
- Jlh *EmptyObject `json:"jlh,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
+ Jlh *EmptyObject `json:"jlh,omitempty"`
// MinDocCount Only return values that are found in more than `min_doc_count` hits.
MinDocCount *int64 `json:"min_doc_count,omitempty"`
// MutualInformation Use mutual information as described in "Information Retrieval", Manning et
// al., Chapter 13.5.1, as the significance score.
MutualInformation *MutualInformationHeuristic `json:"mutual_information,omitempty"`
- Name *string `json:"name,omitempty"`
// Percentage A simple calculation of the number of documents in the foreground sample with
// a term divided by the number of documents in the background with the term.
Percentage *PercentageScoreHeuristic `json:"percentage,omitempty"`
@@ -136,7 +134,7 @@ func (s *SignificantTextAggregation) UnmarshalJSON(data []byte) error {
}
case "filter_duplicate_text":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -164,13 +162,8 @@ func (s *SignificantTextAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Jlh", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "min_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -189,18 +182,6 @@ func (s *SignificantTextAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "MutualInformation", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "percentage":
if err := dec.Decode(&s.Percentage); err != nil {
return fmt.Errorf("%s | %w", "Percentage", err)
@@ -212,7 +193,7 @@ func (s *SignificantTextAggregation) UnmarshalJSON(data []byte) error {
}
case "shard_min_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -228,7 +209,7 @@ func (s *SignificantTextAggregation) UnmarshalJSON(data []byte) error {
case "shard_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -244,7 +225,7 @@ func (s *SignificantTextAggregation) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simpleanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simpleanalyzer.go
index d77b42d42e..b3dccd968e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simpleanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simpleanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SimpleAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/analyzers.ts#L83-L86
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L83-L86
type SimpleAnalyzer struct {
Type string `json:"type,omitempty"`
Version *string `json:"version,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplemovingaverageaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplemovingaverageaggregation.go
index 2f40ddb7c5..c163b3ed84 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplemovingaverageaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplemovingaverageaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// SimpleMovingAverageAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L247-L250
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L247-L250
type SimpleMovingAverageAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,10 +43,8 @@ type SimpleMovingAverageAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
Minimize *bool `json:"minimize,omitempty"`
Model string `json:"model,omitempty"`
- Name *string `json:"name,omitempty"`
Predict *int `json:"predict,omitempty"`
Settings EmptyObject `json:"settings"`
Window *int `json:"window,omitempty"`
@@ -89,13 +87,8 @@ func (s *SimpleMovingAverageAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "minimize":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,21 +106,9 @@ func (s *SimpleMovingAverageAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Model", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "predict":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -148,7 +129,7 @@ func (s *SimpleMovingAverageAggregation) UnmarshalJSON(data []byte) error {
case "window":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -174,10 +155,8 @@ func (s SimpleMovingAverageAggregation) MarshalJSON() ([]byte, error) {
BucketsPath: s.BucketsPath,
Format: s.Format,
GapPolicy: s.GapPolicy,
- Meta: s.Meta,
Minimize: s.Minimize,
Model: s.Model,
- Name: s.Name,
Predict: s.Predict,
Settings: s.Settings,
Window: s.Window,
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplequerystringflags.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplequerystringflags.go
index c98c28317e..dd7adb195f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplequerystringflags.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplequerystringflags.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// SimpleQueryStringFlags type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L702-L706
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L702-L706
type SimpleQueryStringFlags PipeSeparatedFlagsSimpleQueryStringFlag
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplequerystringquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplequerystringquery.go
index 96394d19c2..6380ba89a3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplequerystringquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplequerystringquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// SimpleQueryStringQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/fulltext.ts#L765-L830
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/fulltext.ts#L765-L830
type SimpleQueryStringQuery struct {
// AnalyzeWildcard If `true`, the query attempts to analyze wildcard terms in the query string.
AnalyzeWildcard *bool `json:"analyze_wildcard,omitempty"`
@@ -96,7 +96,7 @@ func (s *SimpleQueryStringQuery) UnmarshalJSON(data []byte) error {
switch t {
case "analyze_wildcard":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -122,7 +122,7 @@ func (s *SimpleQueryStringQuery) UnmarshalJSON(data []byte) error {
s.Analyzer = &o
case "auto_generate_synonyms_phrase_query":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -136,7 +136,7 @@ func (s *SimpleQueryStringQuery) UnmarshalJSON(data []byte) error {
}
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -168,7 +168,7 @@ func (s *SimpleQueryStringQuery) UnmarshalJSON(data []byte) error {
case "fuzzy_max_expansions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -184,7 +184,7 @@ func (s *SimpleQueryStringQuery) UnmarshalJSON(data []byte) error {
case "fuzzy_prefix_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -199,7 +199,7 @@ func (s *SimpleQueryStringQuery) UnmarshalJSON(data []byte) error {
}
case "fuzzy_transpositions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -213,7 +213,7 @@ func (s *SimpleQueryStringQuery) UnmarshalJSON(data []byte) error {
}
case "lenient":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplevalueaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplevalueaggregate.go
index 29bf620a60..8601360e70 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplevalueaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simplevalueaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SimpleValueAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L224-L225
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L224-L225
type SimpleValueAggregate struct {
Meta Metadata `json:"meta,omitempty"`
// Value The metric value. A missing value generally means that there was no data to
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simulatedactions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simulatedactions.go
index 9580d07109..2528664bbb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simulatedactions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simulatedactions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SimulatedActions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Action.ts#L96-L100
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L96-L100
type SimulatedActions struct {
Actions []string `json:"actions"`
All *SimulatedActions `json:"all,omitempty"`
@@ -64,7 +64,7 @@ func (s *SimulatedActions) UnmarshalJSON(data []byte) error {
}
case "use_all":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simulateingest.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simulateingest.go
index 1d86c21b47..6e3fbefa2e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simulateingest.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/simulateingest.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SimulateIngest type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/simulate/types.ts#L28-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/simulate/types.ts#L28-L31
type SimulateIngest struct {
Pipeline *string `json:"pipeline,omitempty"`
Timestamp DateTime `json:"timestamp"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sizefield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sizefield.go
index 3db25c7e22..cf3a6991d3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sizefield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sizefield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SizeField type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/meta-fields.ts#L54-L56
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L54-L56
type SizeField struct {
Enabled bool `json:"enabled"`
}
@@ -52,7 +52,7 @@ func (s *SizeField) UnmarshalJSON(data []byte) error {
switch t {
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackaction.go
index ca28de9859..e1a744b915 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SlackAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L91-L94
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L91-L94
type SlackAction struct {
Account *string `json:"account,omitempty"`
Message SlackMessage `json:"message"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackattachment.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackattachment.go
index 4b4fa4e3f0..c2ffc86487 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackattachment.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackattachment.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SlackAttachment type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L101-L117
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L101-L117
type SlackAttachment struct {
AuthorIcon *string `json:"author_icon,omitempty"`
AuthorLink *string `json:"author_link,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackattachmentfield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackattachmentfield.go
index 0ed7f0f6e1..7ce5cee871 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackattachmentfield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackattachmentfield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SlackAttachmentField type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L119-L123
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L119-L123
type SlackAttachmentField struct {
Int bool `json:"short"`
Title string `json:"title"`
@@ -54,7 +54,7 @@ func (s *SlackAttachmentField) UnmarshalJSON(data []byte) error {
switch t {
case "short":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackdynamicattachment.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackdynamicattachment.go
index be876317f0..be0c3c5373 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackdynamicattachment.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackdynamicattachment.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SlackDynamicAttachment type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L125-L128
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L125-L128
type SlackDynamicAttachment struct {
AttachmentTemplate SlackAttachment `json:"attachment_template"`
ListPath string `json:"list_path"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackmessage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackmessage.go
index 1a39e834ed..106db6c71d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackmessage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackmessage.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SlackMessage type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L130-L137
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L130-L137
type SlackMessage struct {
Attachments []SlackAttachment `json:"attachments"`
DynamicAttachments *SlackDynamicAttachment `json:"dynamic_attachments,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackresult.go
index 2404cb97b5..bb068930cc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slackresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SlackResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L96-L99
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L96-L99
type SlackResult struct {
Account *string `json:"account,omitempty"`
Message SlackMessage `json:"message"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slicedscroll.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slicedscroll.go
index 27868e8048..9d8e2f9ca4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slicedscroll.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slicedscroll.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SlicedScroll type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/SlicedScroll.ts#L23-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/SlicedScroll.ts#L23-L27
type SlicedScroll struct {
Field *string `json:"field,omitempty"`
Id string `json:"id"`
@@ -65,7 +65,7 @@ func (s *SlicedScroll) UnmarshalJSON(data []byte) error {
case "max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slices.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slices.go
index baaf24162a..b194e317bf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slices.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slices.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// int
// slicescalculation.SlicesCalculation
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L361-L366
-type Slices interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L361-L366
+type Slices any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slm.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slm.go
index 9802b0e57b..ee8bdff627 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slm.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slm.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Slm type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L449-L452
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L449-L452
type Slm struct {
Available bool `json:"available"`
Enabled bool `json:"enabled"`
@@ -55,7 +55,7 @@ func (s *Slm) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -69,7 +69,7 @@ func (s *Slm) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -84,7 +84,7 @@ func (s *Slm) UnmarshalJSON(data []byte) error {
case "policy_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmindicator.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmindicator.go
index dbdafab08f..a099e67d9f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmindicator.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmindicator.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// SlmIndicator type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L155-L159
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L155-L159
type SlmIndicator struct {
Details *SlmIndicatorDetails `json:"details,omitempty"`
Diagnosis []Diagnosis `json:"diagnosis,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmindicatordetails.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmindicatordetails.go
index 8f0a259c52..3c44570b7a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmindicatordetails.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmindicatordetails.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// SlmIndicatorDetails type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L160-L164
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L160-L164
type SlmIndicatorDetails struct {
Policies int64 `json:"policies"`
SlmStatus lifecycleoperationmode.LifecycleOperationMode `json:"slm_status"`
@@ -56,7 +56,7 @@ func (s *SlmIndicatorDetails) UnmarshalJSON(data []byte) error {
switch t {
case "policies":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmindicatorunhealthypolicies.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmindicatorunhealthypolicies.go
index b094c2591f..dc921bddc6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmindicatorunhealthypolicies.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmindicatorunhealthypolicies.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SlmIndicatorUnhealthyPolicies type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/health_report/types.ts#L166-L169
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/health_report/types.ts#L166-L169
type SlmIndicatorUnhealthyPolicies struct {
Count int64 `json:"count"`
InvocationsSinceLastSuccess map[string]int64 `json:"invocations_since_last_success,omitempty"`
@@ -53,7 +53,7 @@ func (s *SlmIndicatorUnhealthyPolicies) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmpolicy.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmpolicy.go
index 55a293cd20..8e077c3083 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmpolicy.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slmpolicy.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SLMPolicy type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/_types/SnapshotLifecycle.ts#L76-L82
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/_types/SnapshotLifecycle.ts#L76-L82
type SLMPolicy struct {
Config *Configuration `json:"config,omitempty"`
Name string `json:"name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slowlogsettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slowlogsettings.go
index e17428e829..f8bf62356a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slowlogsettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slowlogsettings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SlowlogSettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L479-L484
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L479-L484
type SlowlogSettings struct {
Level *string `json:"level,omitempty"`
Reformat *bool `json:"reformat,omitempty"`
@@ -67,7 +67,7 @@ func (s *SlowlogSettings) UnmarshalJSON(data []byte) error {
s.Level = &o
case "reformat":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -82,7 +82,7 @@ func (s *SlowlogSettings) UnmarshalJSON(data []byte) error {
case "source":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slowlogtresholdlevels.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slowlogtresholdlevels.go
index b92b2d3bb1..a629fa1c1b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slowlogtresholdlevels.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slowlogtresholdlevels.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SlowlogTresholdLevels type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L491-L496
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L491-L496
type SlowlogTresholdLevels struct {
Debug Duration `json:"debug,omitempty"`
Info Duration `json:"info,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slowlogtresholds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slowlogtresholds.go
index 13f8872a89..727c6615a4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slowlogtresholds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/slowlogtresholds.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// SlowlogTresholds type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L486-L489
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L486-L489
type SlowlogTresholds struct {
Fetch *SlowlogTresholdLevels `json:"fetch,omitempty"`
Query *SlowlogTresholdLevels `json:"query,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/smoothingmodelcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/smoothingmodelcontainer.go
index de2f1ae5ea..97a2f976c0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/smoothingmodelcontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/smoothingmodelcontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// SmoothingModelContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L442-L458
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L442-L458
type SmoothingModelContainer struct {
// Laplace A smoothing model that uses an additive smoothing where a constant (typically
// `1.0` or smaller) is added to all counts to balance weights.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotindexstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotindexstats.go
index a729ee037e..40f6a178ab 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotindexstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotindexstats.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// SnapshotIndexStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotIndexStats.ts#L25-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotIndexStats.ts#L25-L29
type SnapshotIndexStats struct {
Shards map[string]SnapshotShardsStatus `json:"shards"`
ShardsStats SnapshotShardsStats `json:"shards_stats"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotinfo.go
index cf6fc9e339..19e095279c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SnapshotInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotInfo.ts#L41-L71
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotInfo.ts#L41-L71
type SnapshotInfo struct {
DataStreams []string `json:"data_streams"`
Duration Duration `json:"duration,omitempty"`
@@ -107,7 +107,7 @@ func (s *SnapshotInfo) UnmarshalJSON(data []byte) error {
}
case "include_global_state":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotlifecycle.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotlifecycle.go
index adc19a693b..a4999211b4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotlifecycle.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotlifecycle.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SnapshotLifecycle type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/_types/SnapshotLifecycle.ts#L38-L49
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/_types/SnapshotLifecycle.ts#L38-L49
type SnapshotLifecycle struct {
InProgress *InProgress `json:"in_progress,omitempty"`
LastFailure *Invocation `json:"last_failure,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotresponseitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotresponseitem.go
index 00c127b22c..a920ab59b2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotresponseitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotresponseitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SnapshotResponseItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/get/SnapshotGetResponse.ts#L44-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/get/SnapshotGetResponse.ts#L44-L48
type SnapshotResponseItem struct {
Error *ErrorCause `json:"error,omitempty"`
Repository string `json:"repository"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotrestore.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotrestore.go
index 315d8f3ec4..2f82a7a006 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotrestore.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotrestore.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SnapshotRestore type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/restore/SnapshotRestoreResponse.ts#L27-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/restore/SnapshotRestoreResponse.ts#L27-L31
type SnapshotRestore struct {
Indices []string `json:"indices"`
Shards ShardStatistics `json:"shards"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardfailure.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardfailure.go
index 09d1369eab..e25db17e2f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardfailure.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardfailure.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SnapshotShardFailure type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotShardFailure.ts#L22-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotShardFailure.ts#L22-L28
type SnapshotShardFailure struct {
Index string `json:"index"`
NodeId *string `json:"node_id,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardsstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardsstats.go
index e051b62f1d..54bdbbe460 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardsstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardsstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SnapshotShardsStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotShardsStats.ts#L22-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotShardsStats.ts#L22-L29
type SnapshotShardsStats struct {
Done int64 `json:"done"`
Failed int64 `json:"failed"`
@@ -57,7 +57,7 @@ func (s *SnapshotShardsStats) UnmarshalJSON(data []byte) error {
switch t {
case "done":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *SnapshotShardsStats) UnmarshalJSON(data []byte) error {
}
case "failed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *SnapshotShardsStats) UnmarshalJSON(data []byte) error {
}
case "finalizing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -102,7 +102,7 @@ func (s *SnapshotShardsStats) UnmarshalJSON(data []byte) error {
}
case "initializing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +117,7 @@ func (s *SnapshotShardsStats) UnmarshalJSON(data []byte) error {
}
case "started":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -132,7 +132,7 @@ func (s *SnapshotShardsStats) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardsstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardsstatus.go
index 0b93afcf74..9c9e7d17ff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardsstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotshardsstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// SnapshotShardsStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotShardsStatus.ts#L24-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotShardsStatus.ts#L24-L27
type SnapshotShardsStatus struct {
Stage shardsstatsstage.ShardsStatsStage `json:"stage"`
Stats ShardsStatsSummary `json:"stats"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotsrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotsrecord.go
index be5010736a..f79575ffae 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotsrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotsrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SnapshotsRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/snapshots/types.ts#L24-L96
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/snapshots/types.ts#L24-L96
type SnapshotsRecord struct {
// Duration The time it took the snapshot process to complete, in time units.
Duration Duration `json:"duration,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotstats.go
index ea38ac9226..9d37dddab9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snapshotstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SnapshotStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotStats.ts#L23-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotStats.ts#L23-L29
type SnapshotStats struct {
Incremental FileCountSnapshotStats `json:"incremental"`
StartTimeInMillis int64 `json:"start_time_in_millis"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snowballanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snowballanalyzer.go
index c4ce022b36..fc349a3d7d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snowballanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snowballanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// SnowballAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/analyzers.ts#L88-L93
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L88-L93
type SnowballAnalyzer struct {
Language snowballlanguage.SnowballLanguage `json:"language"`
Stopwords []string `json:"stopwords,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snowballtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snowballtokenfilter.go
index bbd56502dc..fae6367b09 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snowballtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/snowballtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// SnowballTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L309-L312
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L311-L314
type SnowballTokenFilter struct {
Language snowballlanguage.SnowballLanguage `json:"language"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/softdeletes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/softdeletes.go
index 37af4ca306..596fb3ecf1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/softdeletes.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/softdeletes.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SoftDeletes type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L50-L63
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L50-L63
type SoftDeletes struct {
// Enabled Indicates whether soft deletes are enabled on the index.
Enabled *bool `json:"enabled,omitempty"`
@@ -61,7 +61,7 @@ func (s *SoftDeletes) UnmarshalJSON(data []byte) error {
switch t {
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sort.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sort.go
index 4f57166d0e..1b8ba9816c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sort.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sort.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Sort type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/sort.ts#L99-L99
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L99-L99
type Sort []SortCombinations
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sortcombinations.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sortcombinations.go
index 69b6c17a6b..b4adcac89b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sortcombinations.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sortcombinations.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// SortOptions
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/sort.ts#L93-L97
-type SortCombinations interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L93-L97
+type SortCombinations any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sortoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sortoptions.go
index 399a3b5707..b5d43e697c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sortoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sortoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -27,7 +27,7 @@ import (
// SortOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/sort.ts#L82-L91
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/sort.ts#L82-L91
type SortOptions struct {
Doc_ *ScoreSort `json:"_doc,omitempty"`
GeoDistance_ *GeoDistanceSort `json:"_geo_distance,omitempty"`
@@ -40,7 +40,7 @@ type SortOptions struct {
func (s SortOptions) MarshalJSON() ([]byte, error) {
type opt SortOptions
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sortprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sortprocessor.go
index a184165b95..a30a5d5197 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sortprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sortprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// SortProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L1075-L1091
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1079-L1095
type SortProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -102,7 +102,7 @@ func (s *SortProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceconfig.go
index e57ff259dc..7c39fcf4af 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// bool
// SourceFilter
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/SourceFilter.ts#L33-L37
-type SourceConfig interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/SourceFilter.ts#L33-L37
+type SourceConfig any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceconfigparam.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceconfigparam.go
index 53626ff29a..6cd1fd776c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceconfigparam.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceconfigparam.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// bool
// []string
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/SourceFilter.ts#L39-L45
-type SourceConfigParam interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/SourceFilter.ts#L39-L45
+type SourceConfigParam any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourcefield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourcefield.go
index d6d30adf87..50e255e74e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourcefield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourcefield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// SourceField type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/meta-fields.ts#L58-L65
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/meta-fields.ts#L58-L65
type SourceField struct {
Compress *bool `json:"compress,omitempty"`
CompressThreshold *string `json:"compress_threshold,omitempty"`
@@ -59,7 +59,7 @@ func (s *SourceField) UnmarshalJSON(data []byte) error {
switch t {
case "compress":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *SourceField) UnmarshalJSON(data []byte) error {
s.CompressThreshold = &o
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourcefilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourcefilter.go
index fd34458d27..8af4cefe97 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourcefilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourcefilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SourceFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/SourceFilter.ts#L23-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/SourceFilter.ts#L23-L31
type SourceFilter struct {
Excludes []string `json:"excludes,omitempty"`
Includes []string `json:"includes,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceonlyrepository.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceonlyrepository.go
index 79c29c8075..9343e75a2a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceonlyrepository.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceonlyrepository.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SourceOnlyRepository type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotRepository.ts#L65-L68
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L65-L68
type SourceOnlyRepository struct {
Settings SourceOnlyRepositorySettings `json:"settings"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceonlyrepositorysettings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceonlyrepositorysettings.go
index 757bb94aaf..3b5eb6a951 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceonlyrepositorysettings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sourceonlyrepositorysettings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SourceOnlyRepositorySettings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotRepository.ts#L117-L124
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotRepository.ts#L117-L124
type SourceOnlyRepositorySettings struct {
ChunkSize ByteSize `json:"chunk_size,omitempty"`
Compress *bool `json:"compress,omitempty"`
@@ -63,7 +63,7 @@ func (s *SourceOnlyRepositorySettings) UnmarshalJSON(data []byte) error {
}
case "compress":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -90,7 +90,7 @@ func (s *SourceOnlyRepositorySettings) UnmarshalJSON(data []byte) error {
case "max_number_of_snapshots":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -115,7 +115,7 @@ func (s *SourceOnlyRepositorySettings) UnmarshalJSON(data []byte) error {
}
case "read_only", "readonly":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spancontainingquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spancontainingquery.go
index 84e48f67a2..4b3d9af002 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spancontainingquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spancontainingquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SpanContainingQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/span.ts#L25-L36
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L25-L36
type SpanContainingQuery struct {
// Big Can be any span query.
// Matching spans from `big` that contain matches from `little` are returned.
@@ -69,7 +69,7 @@ func (s *SpanContainingQuery) UnmarshalJSON(data []byte) error {
}
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanfieldmaskingquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanfieldmaskingquery.go
index 31d9bf9e21..7301b67928 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanfieldmaskingquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanfieldmaskingquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SpanFieldMaskingQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/span.ts#L38-L41
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L38-L41
type SpanFieldMaskingQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -60,7 +60,7 @@ func (s *SpanFieldMaskingQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanfirstquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanfirstquery.go
index 1ed966c935..c8eba6324b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanfirstquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanfirstquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SpanFirstQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/span.ts#L43-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L43-L52
type SpanFirstQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -62,7 +62,7 @@ func (s *SpanFirstQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -79,7 +79,7 @@ func (s *SpanFirstQuery) UnmarshalJSON(data []byte) error {
case "end":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spangapquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spangapquery.go
index 17487dcdd8..3a2a9dbe99 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spangapquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spangapquery.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// SpanGapQuery type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/span.ts#L54-L56
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L54-L56
type SpanGapQuery map[string]int
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanmultitermquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanmultitermquery.go
index a9eab4654f..b41a67deac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanmultitermquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanmultitermquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SpanMultiTermQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/span.ts#L58-L63
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L58-L63
type SpanMultiTermQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -61,7 +61,7 @@ func (s *SpanMultiTermQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spannearquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spannearquery.go
index b0413b615b..b869cf460a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spannearquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spannearquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SpanNearQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/span.ts#L65-L78
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L65-L78
type SpanNearQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -64,7 +64,7 @@ func (s *SpanNearQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *SpanNearQuery) UnmarshalJSON(data []byte) error {
}
case "in_order":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -112,7 +112,7 @@ func (s *SpanNearQuery) UnmarshalJSON(data []byte) error {
case "slop":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spannotquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spannotquery.go
index cdf3a4d3bf..b6ec0cebba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spannotquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spannotquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SpanNotQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/span.ts#L80-L104
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L80-L104
type SpanNotQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -72,7 +72,7 @@ func (s *SpanNotQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -89,7 +89,7 @@ func (s *SpanNotQuery) UnmarshalJSON(data []byte) error {
case "dist":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -115,7 +115,7 @@ func (s *SpanNotQuery) UnmarshalJSON(data []byte) error {
case "post":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -131,7 +131,7 @@ func (s *SpanNotQuery) UnmarshalJSON(data []byte) error {
case "pre":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanorquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanorquery.go
index 68b5dfee5c..203507f523 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanorquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanorquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SpanOrQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/span.ts#L106-L111
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L106-L111
type SpanOrQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -60,7 +60,7 @@ func (s *SpanOrQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanquery.go
index 6902cb1cf8..6bb901d738 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,13 +30,13 @@ import (
// SpanQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/span.ts#L131-L170
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L131-L173
type SpanQuery struct {
- // FieldMaskingSpan Allows queries like `span_near` or `span_or` across different fields.
- FieldMaskingSpan *SpanFieldMaskingQuery `json:"field_masking_span,omitempty"`
// SpanContaining Accepts a list of span queries, but only returns those spans which also match
// a second span query.
SpanContaining *SpanContainingQuery `json:"span_containing,omitempty"`
+ // SpanFieldMasking Allows queries like `span_near` or `span_or` across different fields.
+ SpanFieldMasking *SpanFieldMaskingQuery `json:"span_field_masking,omitempty"`
// SpanFirst Accepts another span query whose matches must appear within the first N
// positions of the field.
SpanFirst *SpanFirstQuery `json:"span_first,omitempty"`
@@ -73,16 +73,16 @@ func (s *SpanQuery) UnmarshalJSON(data []byte) error {
switch t {
- case "field_masking_span":
- if err := dec.Decode(&s.FieldMaskingSpan); err != nil {
- return fmt.Errorf("%s | %w", "FieldMaskingSpan", err)
- }
-
case "span_containing":
if err := dec.Decode(&s.SpanContaining); err != nil {
return fmt.Errorf("%s | %w", "SpanContaining", err)
}
+ case "span_field_masking":
+ if err := dec.Decode(&s.SpanFieldMasking); err != nil {
+ return fmt.Errorf("%s | %w", "SpanFieldMasking", err)
+ }
+
case "span_first":
if err := dec.Decode(&s.SpanFirst); err != nil {
return fmt.Errorf("%s | %w", "SpanFirst", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spantermquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spantermquery.go
index 2f651aa2db..610df5b8f8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spantermquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spantermquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SpanTermQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/span.ts#L113-L116
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L113-L116
type SpanTermQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -68,7 +68,7 @@ func (s *SpanTermQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanwithinquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanwithinquery.go
index e9cd0dcd70..6f937533fe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanwithinquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/spanwithinquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SpanWithinQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/span.ts#L118-L129
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/span.ts#L118-L129
type SpanWithinQuery struct {
// Big Can be any span query.
// Matching spans from `little` that are enclosed within `big` are returned.
@@ -69,7 +69,7 @@ func (s *SpanWithinQuery) UnmarshalJSON(data []byte) error {
}
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparseembeddingresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparseembeddingresult.go
index ad737de949..dca3580f15 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparseembeddingresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparseembeddingresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SparseEmbeddingResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/inference/_types/Results.ts#L35-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Results.ts#L35-L37
type SparseEmbeddingResult struct {
Embedding SparseVector `json:"embedding"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparsevector.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparsevector.go
index e5ec4a8b89..289cd8f76a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparsevector.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparsevector.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// SparseVector type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/inference/_types/Results.ts#L23-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Results.ts#L23-L27
type SparseVector map[string]float32
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparsevectorproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparsevectorproperty.go
index 9ffb3ad166..c67f330f28 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparsevectorproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sparsevectorproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// SparseVectorProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L194-L196
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L196-L198
type SparseVectorProperty struct {
Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
Fields map[string]Property `json:"fields,omitempty"`
@@ -71,7 +71,7 @@ func (s *SparseVectorProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -362,6 +362,12 @@ func (s *SparseVectorProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -373,7 +379,7 @@ func (s *SparseVectorProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -402,7 +408,7 @@ func (s *SparseVectorProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -693,6 +699,12 @@ func (s *SparseVectorProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/splitprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/splitprocessor.go
index f8001913d5..ac07a810e7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/splitprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/splitprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SplitProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L1093-L1118
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1097-L1122
type SplitProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -104,7 +104,7 @@ func (s *SplitProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -118,7 +118,7 @@ func (s *SplitProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -137,7 +137,7 @@ func (s *SplitProcessor) UnmarshalJSON(data []byte) error {
}
case "preserve_trailing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sql.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sql.go
index e8c9c6144a..9588eb2351 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sql.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sql.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Sql type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L386-L389
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L386-L389
type Sql struct {
Available bool `json:"available"`
Enabled bool `json:"enabled"`
@@ -55,7 +55,7 @@ func (s *Sql) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -69,7 +69,7 @@ func (s *Sql) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ssl.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ssl.go
index 6e2a71c584..53eb46f457 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ssl.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ssl.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Ssl type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L391-L394
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L391-L394
type Ssl struct {
Http FeatureToggle `json:"http"`
Transport FeatureToggle `json:"transport"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardanalyzer.go
index e4796fc11c..e0b9bd26a5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StandardAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/analyzers.ts#L95-L99
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L95-L99
type StandardAnalyzer struct {
MaxTokenLength *int `json:"max_token_length,omitempty"`
Stopwords []string `json:"stopwords,omitempty"`
@@ -55,7 +55,7 @@ func (s *StandardAnalyzer) UnmarshalJSON(data []byte) error {
case "max_token_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standarddeviationbounds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standarddeviationbounds.go
index 19d6693ecf..2bb116d693 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standarddeviationbounds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standarddeviationbounds.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// StandardDeviationBounds type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L260-L267
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L260-L267
type StandardDeviationBounds struct {
Lower Float64 `json:"lower,omitempty"`
LowerPopulation Float64 `json:"lower_population,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standarddeviationboundsasstring.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standarddeviationboundsasstring.go
index c0a3d0c56d..770dc2ac42 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standarddeviationboundsasstring.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standarddeviationboundsasstring.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StandardDeviationBoundsAsString type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L269-L276
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L269-L276
type StandardDeviationBoundsAsString struct {
Lower string `json:"lower"`
LowerPopulation string `json:"lower_population"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardretriever.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardretriever.go
new file mode 100644
index 0000000000..bab9543ca0
--- /dev/null
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardretriever.go
@@ -0,0 +1,158 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Code generated from the elasticsearch-specification DO NOT EDIT.
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
+
+package types
+
+import (
+ "bytes"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "strconv"
+)
+
+// StandardRetriever type.
+//
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Retriever.ts#L43-L56
+type StandardRetriever struct {
+ // Collapse Collapses the top documents by a specified key into a single top document per
+ // key.
+ Collapse *FieldCollapse `json:"collapse,omitempty"`
+ // Filter Query to filter the documents that can match.
+ Filter []Query `json:"filter,omitempty"`
+ // MinScore Minimum _score for matching documents. Documents with a lower _score are not
+ // included in the top documents.
+ MinScore *float32 `json:"min_score,omitempty"`
+ // Query Defines a query to retrieve a set of top documents.
+ Query *Query `json:"query,omitempty"`
+ // SearchAfter Defines a search after object parameter used for pagination.
+ SearchAfter []FieldValue `json:"search_after,omitempty"`
+ // Sort A sort object that that specifies the order of matching documents.
+ Sort []SortCombinations `json:"sort,omitempty"`
+ // TerminateAfter Maximum number of documents to collect for each shard.
+ TerminateAfter *int `json:"terminate_after,omitempty"`
+}
+
+func (s *StandardRetriever) UnmarshalJSON(data []byte) error {
+
+ dec := json.NewDecoder(bytes.NewReader(data))
+
+ for {
+ t, err := dec.Token()
+ if err != nil {
+ if errors.Is(err, io.EOF) {
+ break
+ }
+ return err
+ }
+
+ switch t {
+
+ case "collapse":
+ if err := dec.Decode(&s.Collapse); err != nil {
+ return fmt.Errorf("%s | %w", "Collapse", err)
+ }
+
+ case "filter":
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := NewQuery()
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "Filter", err)
+ }
+
+ s.Filter = append(s.Filter, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Filter); err != nil {
+ return fmt.Errorf("%s | %w", "Filter", err)
+ }
+ }
+
+ case "min_score":
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.ParseFloat(v, 32)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "MinScore", err)
+ }
+ f := float32(value)
+ s.MinScore = &f
+ case float64:
+ f := float32(v)
+ s.MinScore = &f
+ }
+
+ case "query":
+ if err := dec.Decode(&s.Query); err != nil {
+ return fmt.Errorf("%s | %w", "Query", err)
+ }
+
+ case "search_after":
+ if err := dec.Decode(&s.SearchAfter); err != nil {
+ return fmt.Errorf("%s | %w", "SearchAfter", err)
+ }
+
+ case "sort":
+ rawMsg := json.RawMessage{}
+ dec.Decode(&rawMsg)
+ if !bytes.HasPrefix(rawMsg, []byte("[")) {
+ o := new(SortCombinations)
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
+ return fmt.Errorf("%s | %w", "Sort", err)
+ }
+
+ s.Sort = append(s.Sort, *o)
+ } else {
+ if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Sort); err != nil {
+ return fmt.Errorf("%s | %w", "Sort", err)
+ }
+ }
+
+ case "terminate_after":
+
+ var tmp any
+ dec.Decode(&tmp)
+ switch v := tmp.(type) {
+ case string:
+ value, err := strconv.Atoi(v)
+ if err != nil {
+ return fmt.Errorf("%s | %w", "TerminateAfter", err)
+ }
+ s.TerminateAfter = &value
+ case float64:
+ f := int(v)
+ s.TerminateAfter = &f
+ }
+
+ }
+ }
+ return nil
+}
+
+// NewStandardRetriever returns a StandardRetriever.
+func NewStandardRetriever() *StandardRetriever {
+ r := &StandardRetriever{}
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardtokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardtokenizer.go
index e90ad6a64c..61bc3f8366 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardtokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/standardtokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StandardTokenizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L105-L108
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L105-L108
type StandardTokenizer struct {
MaxTokenLength *int `json:"max_token_length,omitempty"`
Type string `json:"type,omitempty"`
@@ -55,7 +55,7 @@ func (s *StandardTokenizer) UnmarshalJSON(data []byte) error {
case "max_token_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statistics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statistics.go
index 592175ab28..867f1749f9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statistics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statistics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Statistics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/slm/_types/SnapshotLifecycle.ts#L51-L74
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/slm/_types/SnapshotLifecycle.ts#L51-L74
type Statistics struct {
Policy *string `json:"policy,omitempty"`
RetentionDeletionTime Duration `json:"retention_deletion_time,omitempty"`
@@ -76,7 +76,7 @@ func (s *Statistics) UnmarshalJSON(data []byte) error {
}
case "retention_failed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *Statistics) UnmarshalJSON(data []byte) error {
}
case "retention_runs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -106,7 +106,7 @@ func (s *Statistics) UnmarshalJSON(data []byte) error {
}
case "retention_timed_out":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -121,7 +121,7 @@ func (s *Statistics) UnmarshalJSON(data []byte) error {
}
case "total_snapshot_deletion_failures", "snapshot_deletion_failures":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -136,7 +136,7 @@ func (s *Statistics) UnmarshalJSON(data []byte) error {
}
case "total_snapshots_deleted", "snapshots_deleted":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -151,7 +151,7 @@ func (s *Statistics) UnmarshalJSON(data []byte) error {
}
case "total_snapshots_failed", "snapshots_failed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -166,7 +166,7 @@ func (s *Statistics) UnmarshalJSON(data []byte) error {
}
case "total_snapshots_taken", "snapshots_taken":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stats.go
index 09420809ea..824962d0c9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// Stats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L30-L114
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L30-L114
type Stats struct {
// AdaptiveSelection Statistics about adaptive replica selection.
AdaptiveSelection map[string]AdaptiveSelection `json:"adaptive_selection,omitempty"`
@@ -238,7 +238,7 @@ func (s *Stats) UnmarshalJSON(data []byte) error {
}
case "timestamp":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsaggregate.go
index 62432a4171..6a182f3fd3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StatsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L240-L255
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L240-L255
type StatsAggregate struct {
Avg Float64 `json:"avg,omitempty"`
AvgAsString *string `json:"avg_as_string,omitempty"`
@@ -78,7 +78,7 @@ func (s *StatsAggregate) UnmarshalJSON(data []byte) error {
s.AvgAsString = &o
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -132,7 +132,7 @@ func (s *StatsAggregate) UnmarshalJSON(data []byte) error {
s.MinAsString = &o
case "sum":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsaggregation.go
index bfc5581f0e..51d2aa5190 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StatsAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L282-L282
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L282-L282
type StatsAggregation struct {
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsbucketaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsbucketaggregate.go
index 73737f4768..01174ff13a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsbucketaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsbucketaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StatsBucketAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L257-L258
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L257-L258
type StatsBucketAggregate struct {
Avg Float64 `json:"avg,omitempty"`
AvgAsString *string `json:"avg_as_string,omitempty"`
@@ -78,7 +78,7 @@ func (s *StatsBucketAggregate) UnmarshalJSON(data []byte) error {
s.AvgAsString = &o
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -132,7 +132,7 @@ func (s *StatsBucketAggregate) UnmarshalJSON(data []byte) error {
s.MinAsString = &o
case "sum":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsbucketaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsbucketaggregation.go
index 07d9e2f293..65e04a3813 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsbucketaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/statsbucketaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// StatsBucketAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L369-L369
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L369-L369
type StatsBucketAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,8 +43,6 @@ type StatsBucketAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
}
func (s *StatsBucketAggregation) UnmarshalJSON(data []byte) error {
@@ -84,23 +82,6 @@ func (s *StatsBucketAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/status.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/status.go
index f1bf93722f..f498837865 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/status.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/status.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Status type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/snapshot/_types/SnapshotStatus.ts#L26-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/snapshot/_types/SnapshotStatus.ts#L26-L35
type Status struct {
IncludeGlobalState bool `json:"include_global_state"`
Indices map[string]SnapshotIndexStats `json:"indices"`
@@ -59,7 +59,7 @@ func (s *Status) UnmarshalJSON(data []byte) error {
switch t {
case "include_global_state":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stemmeroverridetokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stemmeroverridetokenfilter.go
index 2b4d3a9667..8058252265 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stemmeroverridetokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stemmeroverridetokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StemmerOverrideTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L314-L318
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L316-L320
type StemmerOverrideTokenFilter struct {
Rules []string `json:"rules,omitempty"`
RulesPath *string `json:"rules_path,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stemmertokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stemmertokenfilter.go
index b214732d28..f4a0e3beab 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stemmertokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stemmertokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StemmerTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L320-L324
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L322-L326
type StemmerTokenFilter struct {
Language *string `json:"language,omitempty"`
Type string `json:"type,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stepkey.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stepkey.go
index 0fa4f99ba3..29d937241b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stepkey.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stepkey.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StepKey type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ilm/move_to_step/types.ts#L20-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ilm/move_to_step/types.ts#L20-L24
type StepKey struct {
Action string `json:"action"`
Name string `json:"name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stopanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stopanalyzer.go
index 9314266962..0dc015bb73 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stopanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stopanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StopAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/analyzers.ts#L101-L106
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L101-L106
type StopAnalyzer struct {
Stopwords []string `json:"stopwords,omitempty"`
StopwordsPath *string `json:"stopwords_path,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stoptokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stoptokenfilter.go
index 9675405a5f..10a0ab2b93 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stoptokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stoptokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StopTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L97-L103
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L97-L103
type StopTokenFilter struct {
IgnoreCase *bool `json:"ignore_case,omitempty"`
RemoveTrailing *bool `json:"remove_trailing,omitempty"`
@@ -57,7 +57,7 @@ func (s *StopTokenFilter) UnmarshalJSON(data []byte) error {
switch t {
case "ignore_case":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *StopTokenFilter) UnmarshalJSON(data []byte) error {
}
case "remove_trailing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stopwords.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stopwords.go
index 158e2c039f..dcf1ab26a4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stopwords.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stopwords.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// StopWords type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/StopWords.ts#L20-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/StopWords.ts#L20-L26
type StopWords []string
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storage.go
index cbd705217e..176109fba4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storage.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// Storage type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L498-L507
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L498-L507
type Storage struct {
// AllowMmap You can restrict the use of the mmapfs and the related hybridfs store type
// via the setting node.store.allow_mmap.
@@ -62,7 +62,7 @@ func (s *Storage) UnmarshalJSON(data []byte) error {
switch t {
case "allow_mmap":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storedscript.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storedscript.go
index 4799a8e419..d53ff2af87 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storedscript.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storedscript.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// StoredScript type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Scripting.ts#L47-L57
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Scripting.ts#L47-L57
type StoredScript struct {
// Lang Specifies the language the script is written in.
Lang scriptlanguage.ScriptLanguage `json:"lang"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storedscriptid.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storedscriptid.go
index 2c6d9f0b3e..46764b3a1f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storedscriptid.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storedscriptid.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// StoredScriptId type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Scripting.ts#L81-L86
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Scripting.ts#L81-L86
type StoredScriptId struct {
// Id The `id` for a stored script.
Id string `json:"id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storestats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storestats.go
index 912c6049dd..8f73d81d22 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storestats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/storestats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StoreStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L368-L395
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L368-L395
type StoreStats struct {
// Reserved A prediction of how much larger the shard stores will eventually grow due to
// ongoing peer recoveries, restoring snapshots, and similar activities.
@@ -75,7 +75,7 @@ func (s *StoreStats) UnmarshalJSON(data []byte) error {
}
case "reserved_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *StoreStats) UnmarshalJSON(data []byte) error {
}
case "size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -115,7 +115,7 @@ func (s *StoreStats) UnmarshalJSON(data []byte) error {
}
case "total_data_set_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedboolean.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedboolean.go
index 60b7e2fa35..ad821b46d3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedboolean.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedboolean.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// bool
// string
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_spec_utils/Stringified.ts#L20-L27
-type Stringifiedboolean interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/Stringified.ts#L20-L27
+type Stringifiedboolean any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedepochtimeunitmillis.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedepochtimeunitmillis.go
index b5b887e541..2339b4dc8e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedepochtimeunitmillis.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedepochtimeunitmillis.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// int64
// string
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_spec_utils/Stringified.ts#L20-L27
-type StringifiedEpochTimeUnitMillis interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/Stringified.ts#L20-L27
+type StringifiedEpochTimeUnitMillis any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedepochtimeunitseconds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedepochtimeunitseconds.go
index 8be0b873bd..51dd02004f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedepochtimeunitseconds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedepochtimeunitseconds.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// int64
// string
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_spec_utils/Stringified.ts#L20-L27
-type StringifiedEpochTimeUnitSeconds interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/Stringified.ts#L20-L27
+type StringifiedEpochTimeUnitSeconds any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedinteger.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedinteger.go
index f137cf22aa..19c058a3ec 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedinteger.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedinteger.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// int
// string
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_spec_utils/Stringified.ts#L20-L27
-type Stringifiedinteger interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/Stringified.ts#L20-L27
+type Stringifiedinteger any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedversionnumber.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedversionnumber.go
index 5bf2f021ae..ea7c4abbb5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedversionnumber.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringifiedversionnumber.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// int64
// string
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_spec_utils/Stringified.ts#L20-L27
-type StringifiedVersionNumber interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_spec_utils/Stringified.ts#L20-L27
+type StringifiedVersionNumber any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringraretermsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringraretermsaggregate.go
index 2b76c85220..d0453cc9a7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringraretermsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringraretermsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// StringRareTermsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L443-L447
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L443-L447
type StringRareTermsAggregate struct {
Buckets BucketsStringRareTermsBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringraretermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringraretermsbucket.go
index fd081ef84b..d11a20a3d4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringraretermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringraretermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// StringRareTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L449-L451
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L449-L451
type StringRareTermsBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *StringRareTermsBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -526,7 +526,7 @@ func (s *StringRareTermsBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -576,7 +576,7 @@ func (s *StringRareTermsBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -586,7 +586,7 @@ func (s *StringRareTermsBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -603,7 +603,7 @@ func (s *StringRareTermsBucket) UnmarshalJSON(data []byte) error {
func (s StringRareTermsBucket) MarshalJSON() ([]byte, error) {
type opt StringRareTermsBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringstatsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringstatsaggregate.go
index ee606d7212..33e09c984b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringstatsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringstatsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StringStatsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L693-L704
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L693-L704
type StringStatsAggregate struct {
AvgLength Float64 `json:"avg_length,omitempty"`
AvgLengthAsString *string `json:"avg_length_as_string,omitempty"`
@@ -78,7 +78,7 @@ func (s *StringStatsAggregate) UnmarshalJSON(data []byte) error {
s.AvgLengthAsString = &o
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringstatsaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringstatsaggregation.go
index 87abd7b179..21e14c5024 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringstatsaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringstatsaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StringStatsAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L284-L290
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L284-L290
type StringStatsAggregation struct {
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
@@ -105,7 +105,7 @@ func (s *StringStatsAggregation) UnmarshalJSON(data []byte) error {
}
case "show_distribution":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringtermsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringtermsaggregate.go
index 82be1a0631..3a9b9b4638 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringtermsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringtermsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StringTermsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L384-L389
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L384-L389
type StringTermsAggregate struct {
Buckets BucketsStringTermsBucket `json:"buckets"`
DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`
@@ -76,7 +76,7 @@ func (s *StringTermsAggregate) UnmarshalJSON(data []byte) error {
}
case "doc_count_error_upper_bound":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *StringTermsAggregate) UnmarshalJSON(data []byte) error {
}
case "sum_other_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringtermsbucket.go
index 29db67f0d4..5dac630e7c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stringtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,12 +32,12 @@ import (
// StringTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L395-L397
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L395-L397
type StringTermsBucket struct {
- Aggregations map[string]Aggregate `json:"-"`
- DocCount int64 `json:"doc_count"`
- DocCountError *int64 `json:"doc_count_error,omitempty"`
- Key FieldValue `json:"key"`
+ Aggregations map[string]Aggregate `json:"-"`
+ DocCount int64 `json:"doc_count"`
+ DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`
+ Key FieldValue `json:"key"`
}
func (s *StringTermsBucket) UnmarshalJSON(data []byte) error {
@@ -56,7 +56,7 @@ func (s *StringTermsBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,19 +70,19 @@ func (s *StringTermsBucket) UnmarshalJSON(data []byte) error {
s.DocCount = f
}
- case "doc_count_error":
- var tmp interface{}
+ case "doc_count_error_upper_bound":
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
value, err := strconv.ParseInt(v, 10, 64)
if err != nil {
- return fmt.Errorf("%s | %w", "DocCountError", err)
+ return fmt.Errorf("%s | %w", "DocCountErrorUpperBound", err)
}
- s.DocCountError = &value
+ s.DocCountErrorUpperBound = &value
case float64:
f := int64(v)
- s.DocCountError = &f
+ s.DocCountErrorUpperBound = &f
}
case "key":
@@ -535,7 +535,7 @@ func (s *StringTermsBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -585,7 +585,7 @@ func (s *StringTermsBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -595,7 +595,7 @@ func (s *StringTermsBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -612,7 +612,7 @@ func (s *StringTermsBucket) UnmarshalJSON(data []byte) error {
func (s StringTermsBucket) MarshalJSON() ([]byte, error) {
type opt StringTermsBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stupidbackoffsmoothingmodel.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stupidbackoffsmoothingmodel.go
index 26f4cd71d2..187cfd91ef 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stupidbackoffsmoothingmodel.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/stupidbackoffsmoothingmodel.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// StupidBackoffSmoothingModel type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L460-L465
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L460-L465
type StupidBackoffSmoothingModel struct {
// Discount A constant factor that the lower order n-gram model is discounted by.
Discount Float64 `json:"discount"`
@@ -53,7 +53,7 @@ func (s *StupidBackoffSmoothingModel) UnmarshalJSON(data []byte) error {
switch t {
case "discount":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggest.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggest.go
index 40a0e0d721..09fdc104b1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggest.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggest.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,5 +26,5 @@ package types
// PhraseSuggest
// TermSuggest
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L34-L40
-type Suggest interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L34-L40
+type Suggest any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggestcontext.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggestcontext.go
index e99a40c688..94e1c18266 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggestcontext.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggestcontext.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SuggestContext type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/specialized.ts#L37-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L43-L48
type SuggestContext struct {
Name string `json:"name"`
Path *string `json:"path,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggester.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggester.go
index c3203befff..09cb09d789 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggester.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggester.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Suggester type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L101-L104
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L101-L104
type Suggester struct {
Suggesters map[string]FieldSuggester `json:"-"`
// Text Global suggest text, to avoid repetition when the same text is used in
@@ -88,7 +88,7 @@ func (s *Suggester) UnmarshalJSON(data []byte) error {
func (s Suggester) MarshalJSON() ([]byte, error) {
type opt Suggester
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggestfuzziness.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggestfuzziness.go
index a23bf0297b..2f0c8b8501 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggestfuzziness.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/suggestfuzziness.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SuggestFuzziness type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L193-L221
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L193-L221
type SuggestFuzziness struct {
// Fuzziness The fuzziness factor.
Fuzziness Fuzziness `json:"fuzziness,omitempty"`
@@ -69,7 +69,7 @@ func (s *SuggestFuzziness) UnmarshalJSON(data []byte) error {
case "min_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *SuggestFuzziness) UnmarshalJSON(data []byte) error {
case "prefix_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *SuggestFuzziness) UnmarshalJSON(data []byte) error {
}
case "transpositions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *SuggestFuzziness) UnmarshalJSON(data []byte) error {
}
case "unicode_aware":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sumaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sumaggregate.go
index d341872041..f518d4baaa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sumaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sumaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SumAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L203-L207
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L203-L207
type SumAggregate struct {
Meta Metadata `json:"meta,omitempty"`
// Value The metric value. A missing value generally means that there was no data to
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sumaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sumaggregation.go
index 36c5342028..9abfb9f37b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sumaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sumaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SumAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L292-L292
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L292-L292
type SumAggregation struct {
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sumbucketaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sumbucketaggregation.go
index d5d1c6b434..b33b697149 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sumbucketaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/sumbucketaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// SumBucketAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/pipeline.ts#L371-L371
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/pipeline.ts#L371-L371
type SumBucketAggregation struct {
// BucketsPath Path to the buckets that contain one set of values to correlate.
BucketsPath BucketsPath `json:"buckets_path,omitempty"`
@@ -43,8 +43,6 @@ type SumBucketAggregation struct {
Format *string `json:"format,omitempty"`
// GapPolicy Policy to apply when gaps are found in the data.
GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
}
func (s *SumBucketAggregation) UnmarshalJSON(data []byte) error {
@@ -84,23 +82,6 @@ func (s *SumBucketAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "GapPolicy", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
}
}
return nil
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/summary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/summary.go
index 6a8a828be7..70241a1040 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/summary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/summary.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// Summary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/enrich/_types/Policy.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/enrich/_types/Policy.ts#L24-L26
type Summary struct {
Config map[policytype.PolicyType]EnrichPolicy `json:"config"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synccontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synccontainer.go
index 28828a95a5..ed5cd0fb14 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synccontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synccontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// SyncContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/_types/Transform.ts#L169-L175
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L169-L175
type SyncContainer struct {
// Time Specifies that the transform uses a time field to synchronize the source and
// destination indices.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymgraphtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymgraphtokenfilter.go
index e6fc56aa55..c6ec5e386e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymgraphtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymgraphtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,13 +33,14 @@ import (
// SynonymGraphTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L110-L119
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L110-L120
type SynonymGraphTokenFilter struct {
Expand *bool `json:"expand,omitempty"`
Format *synonymformat.SynonymFormat `json:"format,omitempty"`
Lenient *bool `json:"lenient,omitempty"`
Synonyms []string `json:"synonyms,omitempty"`
SynonymsPath *string `json:"synonyms_path,omitempty"`
+ SynonymsSet *string `json:"synonyms_set,omitempty"`
Tokenizer *string `json:"tokenizer,omitempty"`
Type string `json:"type,omitempty"`
Updateable *bool `json:"updateable,omitempty"`
@@ -62,7 +63,7 @@ func (s *SynonymGraphTokenFilter) UnmarshalJSON(data []byte) error {
switch t {
case "expand":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -81,7 +82,7 @@ func (s *SynonymGraphTokenFilter) UnmarshalJSON(data []byte) error {
}
case "lenient":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -111,6 +112,18 @@ func (s *SynonymGraphTokenFilter) UnmarshalJSON(data []byte) error {
}
s.SynonymsPath = &o
+ case "synonyms_set":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "SynonymsSet", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.SynonymsSet = &o
+
case "tokenizer":
var tmp json.RawMessage
if err := dec.Decode(&tmp); err != nil {
@@ -129,7 +142,7 @@ func (s *SynonymGraphTokenFilter) UnmarshalJSON(data []byte) error {
}
case "updateable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -161,6 +174,7 @@ func (s SynonymGraphTokenFilter) MarshalJSON() ([]byte, error) {
Lenient: s.Lenient,
Synonyms: s.Synonyms,
SynonymsPath: s.SynonymsPath,
+ SynonymsSet: s.SynonymsSet,
Tokenizer: s.Tokenizer,
Type: s.Type,
Updateable: s.Updateable,
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymrule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymrule.go
index b25032a907..6082dc581f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymrule.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymrule.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SynonymRule type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/synonyms/_types/SynonymRule.ts#L26-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/_types/SynonymRule.ts#L26-L35
type SynonymRule struct {
// Id Synonym Rule identifier
Id *string `json:"id,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymruleread.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymruleread.go
index 25544802dd..d874f69a24 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymruleread.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymruleread.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// SynonymRuleRead type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/synonyms/_types/SynonymRule.ts#L38-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/_types/SynonymRule.ts#L38-L47
type SynonymRuleRead struct {
// Id Synonym Rule identifier
Id string `json:"id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymssetitem.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymssetitem.go
index 4d6ebc6e9e..ffd44d193d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymssetitem.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymssetitem.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// SynonymsSetItem type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L30-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L30-L39
type SynonymsSetItem struct {
// Count Number of synonym rules that the synonym set contains
Count int `json:"count"`
@@ -56,7 +56,7 @@ func (s *SynonymsSetItem) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymsupdateresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymsupdateresult.go
index 83db756332..99015d884e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymsupdateresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymsupdateresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// SynonymsUpdateResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/synonyms/_types/SynonymsUpdateResult.ts#L23-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/synonyms/_types/SynonymsUpdateResult.ts#L23-L34
type SynonymsUpdateResult struct {
// ReloadAnalyzersDetails Updating synonyms in a synonym set reloads the associated analyzers.
// This is the analyzers reloading result
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymtokenfilter.go
index 33a6e2f266..4a7c01f92a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/synonymtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,13 +33,14 @@ import (
// SynonymTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L121-L130
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L122-L132
type SynonymTokenFilter struct {
Expand *bool `json:"expand,omitempty"`
Format *synonymformat.SynonymFormat `json:"format,omitempty"`
Lenient *bool `json:"lenient,omitempty"`
Synonyms []string `json:"synonyms,omitempty"`
SynonymsPath *string `json:"synonyms_path,omitempty"`
+ SynonymsSet *string `json:"synonyms_set,omitempty"`
Tokenizer *string `json:"tokenizer,omitempty"`
Type string `json:"type,omitempty"`
Updateable *bool `json:"updateable,omitempty"`
@@ -62,7 +63,7 @@ func (s *SynonymTokenFilter) UnmarshalJSON(data []byte) error {
switch t {
case "expand":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -81,7 +82,7 @@ func (s *SynonymTokenFilter) UnmarshalJSON(data []byte) error {
}
case "lenient":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -111,6 +112,18 @@ func (s *SynonymTokenFilter) UnmarshalJSON(data []byte) error {
}
s.SynonymsPath = &o
+ case "synonyms_set":
+ var tmp json.RawMessage
+ if err := dec.Decode(&tmp); err != nil {
+ return fmt.Errorf("%s | %w", "SynonymsSet", err)
+ }
+ o := string(tmp[:])
+ o, err = strconv.Unquote(o)
+ if err != nil {
+ o = string(tmp[:])
+ }
+ s.SynonymsSet = &o
+
case "tokenizer":
var tmp json.RawMessage
if err := dec.Decode(&tmp); err != nil {
@@ -129,7 +142,7 @@ func (s *SynonymTokenFilter) UnmarshalJSON(data []byte) error {
}
case "updateable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -161,6 +174,7 @@ func (s SynonymTokenFilter) MarshalJSON() ([]byte, error) {
Lenient: s.Lenient,
Synonyms: s.Synonyms,
SynonymsPath: s.SynonymsPath,
+ SynonymsSet: s.SynonymsSet,
Tokenizer: s.Tokenizer,
Type: s.Type,
Updateable: s.Updateable,
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/targetmeanencodingpreprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/targetmeanencodingpreprocessor.go
index 526a1bd2c8..268a1ea3c2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/targetmeanencodingpreprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/targetmeanencodingpreprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TargetMeanEncodingPreprocessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model/types.ts#L49-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L49-L54
type TargetMeanEncodingPreprocessor struct {
DefaultValue Float64 `json:"default_value"`
FeatureName string `json:"feature_name"`
@@ -55,7 +55,7 @@ func (s *TargetMeanEncodingPreprocessor) UnmarshalJSON(data []byte) error {
switch t {
case "default_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskfailure.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskfailure.go
index 33e76b39ca..c132fc3d7f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskfailure.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskfailure.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TaskFailure type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Errors.ts#L66-L71
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Errors.ts#L66-L71
type TaskFailure struct {
NodeId string `json:"node_id"`
Reason ErrorCause `json:"reason"`
@@ -77,7 +77,7 @@ func (s *TaskFailure) UnmarshalJSON(data []byte) error {
s.Status = o
case "task_id":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskid.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskid.go
index 9f054d676e..533a98fc0c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskid.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskid.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// int
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L132-L132
-type TaskId interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L132-L132
+type TaskId any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskinfo.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskinfo.go
index eaae989c8d..3456926fea 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskinfo.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskinfo.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TaskInfo type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/tasks/_types/TaskInfo.ts#L32-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/_types/TaskInfo.ts#L32-L47
type TaskInfo struct {
Action string `json:"action"`
Cancellable bool `json:"cancellable"`
@@ -77,7 +77,7 @@ func (s *TaskInfo) UnmarshalJSON(data []byte) error {
s.Action = o
case "cancellable":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -91,7 +91,7 @@ func (s *TaskInfo) UnmarshalJSON(data []byte) error {
}
case "cancelled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *TaskInfo) UnmarshalJSON(data []byte) error {
}
case "id":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskinfos.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskinfos.go
index 107eac389e..cca5326074 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskinfos.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/taskinfos.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// []TaskInfo
// map[string]ParentTaskInfo
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/tasks/_types/TaskListResponseBase.ts#L40-L43
-type TaskInfos interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/tasks/_types/TaskListResponseBase.ts#L40-L43
+type TaskInfos any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tasksrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tasksrecord.go
index 7868cf9592..253b1eb7d3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tasksrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tasksrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TasksRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/tasks/types.ts#L22-L101
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/tasks/types.ts#L22-L101
type TasksRecord struct {
// Action The task action.
Action *string `json:"action,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tdigest.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tdigest.go
index 95d64854ef..8912e01b93 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tdigest.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tdigest.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TDigest type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L223-L228
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L223-L228
type TDigest struct {
// Compression Limits the maximum number of nodes used by the underlying TDigest algorithm
// to `20 * compression`, enabling control of memory usage and approximation
@@ -56,7 +56,7 @@ func (s *TDigest) UnmarshalJSON(data []byte) error {
case "compression":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tdigestpercentileranksaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tdigestpercentileranksaggregate.go
index 3af277b5bb..5663aead61 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tdigestpercentileranksaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tdigestpercentileranksaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TDigestPercentileRanksAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L175-L176
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L175-L176
type TDigestPercentileRanksAggregate struct {
Meta Metadata `json:"meta,omitempty"`
Values Percentiles `json:"values"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tdigestpercentilesaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tdigestpercentilesaggregate.go
index ce374355be..599ed07f1a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tdigestpercentilesaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tdigestpercentilesaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TDigestPercentilesAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L172-L173
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L172-L173
type TDigestPercentilesAggregate struct {
Meta Metadata `json:"meta,omitempty"`
Values Percentiles `json:"values"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/template.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/template.go
index 322019a127..d2dc7b5fc0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/template.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/template.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// Template type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37
type Template struct {
Aliases map[string]Alias `json:"aliases"`
Mappings TypeMapping `json:"mappings"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/templateconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/templateconfig.go
index c90d604d65..22aa255bce 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/templateconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/templateconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TemplateConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/msearch_template/types.ts#L28-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/msearch_template/types.ts#L28-L54
type TemplateConfig struct {
// Explain If `true`, returns detailed information about score calculation as part of
// each hit.
@@ -67,7 +67,7 @@ func (s *TemplateConfig) UnmarshalJSON(data []byte) error {
switch t {
case "explain":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -94,7 +94,7 @@ func (s *TemplateConfig) UnmarshalJSON(data []byte) error {
}
case "profile":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/templatemapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/templatemapping.go
index 16971a7d31..c195df8800 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/templatemapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/templatemapping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TemplateMapping type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/TemplateMapping.ts#L27-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/TemplateMapping.ts#L27-L34
type TemplateMapping struct {
Aliases map[string]Alias `json:"aliases"`
IndexPatterns []string `json:"index_patterns"`
@@ -76,7 +76,7 @@ func (s *TemplateMapping) UnmarshalJSON(data []byte) error {
case "order":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/templatesrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/templatesrecord.go
index 110c93f0c3..fe0f206430 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/templatesrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/templatesrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TemplatesRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/templates/types.ts#L22-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/templates/types.ts#L22-L48
type TemplatesRecord struct {
// ComposedOf The component templates that comprise the index template.
ComposedOf *string `json:"composed_of,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/term.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/term.go
index 5844587d21..bd5cd39a95 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/term.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/term.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Term type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/termvectors/types.ts#L34-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/termvectors/types.ts#L34-L40
type Term struct {
DocFreq *int `json:"doc_freq,omitempty"`
Score *Float64 `json:"score,omitempty"`
@@ -57,7 +57,7 @@ func (s *Term) UnmarshalJSON(data []byte) error {
case "doc_freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *Term) UnmarshalJSON(data []byte) error {
}
case "score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -89,7 +89,7 @@ func (s *Term) UnmarshalJSON(data []byte) error {
case "term_freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -110,7 +110,7 @@ func (s *Term) UnmarshalJSON(data []byte) error {
case "ttf":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termquery.go
index 73562f90d0..d13d96fd3d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TermQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L217-L231
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L217-L231
type TermQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -70,7 +70,7 @@ func (s *TermQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -86,7 +86,7 @@ func (s *TermQuery) UnmarshalJSON(data []byte) error {
}
case "case_insensitive":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasedoubletermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasedoubletermsbucket.go
index f4baf436fd..48a0494a6f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasedoubletermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasedoubletermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TermsAggregateBaseDoubleTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L377-L382
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L377-L382
type TermsAggregateBaseDoubleTermsBucket struct {
Buckets BucketsDoubleTermsBucket `json:"buckets"`
DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`
@@ -76,7 +76,7 @@ func (s *TermsAggregateBaseDoubleTermsBucket) UnmarshalJSON(data []byte) error {
}
case "doc_count_error_upper_bound":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *TermsAggregateBaseDoubleTermsBucket) UnmarshalJSON(data []byte) error {
}
case "sum_other_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebaselongtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebaselongtermsbucket.go
index 5e02316690..990e12afd6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebaselongtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebaselongtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TermsAggregateBaseLongTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L377-L382
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L377-L382
type TermsAggregateBaseLongTermsBucket struct {
Buckets BucketsLongTermsBucket `json:"buckets"`
DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`
@@ -76,7 +76,7 @@ func (s *TermsAggregateBaseLongTermsBucket) UnmarshalJSON(data []byte) error {
}
case "doc_count_error_upper_bound":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *TermsAggregateBaseLongTermsBucket) UnmarshalJSON(data []byte) error {
}
case "sum_other_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasemultitermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasemultitermsbucket.go
index 5cee14ce53..434ee3d6cf 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasemultitermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasemultitermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TermsAggregateBaseMultiTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L377-L382
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L377-L382
type TermsAggregateBaseMultiTermsBucket struct {
Buckets BucketsMultiTermsBucket `json:"buckets"`
DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`
@@ -76,7 +76,7 @@ func (s *TermsAggregateBaseMultiTermsBucket) UnmarshalJSON(data []byte) error {
}
case "doc_count_error_upper_bound":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *TermsAggregateBaseMultiTermsBucket) UnmarshalJSON(data []byte) error {
}
case "sum_other_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasestringtermsbucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasestringtermsbucket.go
index adf889a743..47ebd60028 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasestringtermsbucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasestringtermsbucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TermsAggregateBaseStringTermsBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L377-L382
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L377-L382
type TermsAggregateBaseStringTermsBucket struct {
Buckets BucketsStringTermsBucket `json:"buckets"`
DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`
@@ -76,7 +76,7 @@ func (s *TermsAggregateBaseStringTermsBucket) UnmarshalJSON(data []byte) error {
}
case "doc_count_error_upper_bound":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *TermsAggregateBaseStringTermsBucket) UnmarshalJSON(data []byte) error {
}
case "sum_other_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasevoid.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasevoid.go
index 0e3c655068..e8b09c530b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasevoid.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregatebasevoid.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TermsAggregateBaseVoid type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L377-L382
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L377-L382
type TermsAggregateBaseVoid struct {
Buckets BucketsVoid `json:"buckets"`
DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`
@@ -62,13 +62,13 @@ func (s *TermsAggregateBaseVoid) UnmarshalJSON(data []byte) error {
localDec := json.NewDecoder(source)
switch rawMsg[0] {
case '{':
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := localDec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Buckets", err)
}
s.Buckets = o
case '[':
- o := []interface{}{}
+ o := []any{}
if err := localDec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Buckets", err)
}
@@ -76,7 +76,7 @@ func (s *TermsAggregateBaseVoid) UnmarshalJSON(data []byte) error {
}
case "doc_count_error_upper_bound":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *TermsAggregateBaseVoid) UnmarshalJSON(data []byte) error {
}
case "sum_other_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregation.go
index 7bdbd7553e..85bb80821e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -36,7 +36,7 @@ import (
// TermsAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L908-L968
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L912-L972
type TermsAggregation struct {
// CollectMode Determines how child aggregations should be calculated: breadth-first or
// depth-first.
@@ -53,7 +53,6 @@ type TermsAggregation struct {
// Include Values to include.
// Accepts regular expressions and partitions.
Include TermsInclude `json:"include,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
// MinDocCount Only return values that are found in more than `min_doc_count` hits.
MinDocCount *int `json:"min_doc_count,omitempty"`
// Missing The value to apply to documents that do not have a value.
@@ -61,7 +60,6 @@ type TermsAggregation struct {
Missing Missing `json:"missing,omitempty"`
MissingBucket *bool `json:"missing_bucket,omitempty"`
MissingOrder *missingorder.MissingOrder `json:"missing_order,omitempty"`
- Name *string `json:"name,omitempty"`
// Order Specifies the sort order of the buckets.
// Defaults to sorting by descending document count.
Order AggregateOrder `json:"order,omitempty"`
@@ -142,14 +140,9 @@ func (s *TermsAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Include", err)
}
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
case "min_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -169,7 +162,7 @@ func (s *TermsAggregation) UnmarshalJSON(data []byte) error {
}
case "missing_bucket":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -187,18 +180,6 @@ func (s *TermsAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "MissingOrder", err)
}
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "order":
rawMsg := json.RawMessage{}
@@ -258,7 +239,7 @@ func (s *TermsAggregation) UnmarshalJSON(data []byte) error {
case "shard_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -273,7 +254,7 @@ func (s *TermsAggregation) UnmarshalJSON(data []byte) error {
}
case "show_term_doc_count_error":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -288,7 +269,7 @@ func (s *TermsAggregation) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsexclude.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsexclude.go
index a700d8db6c..3b94e1dbc8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsexclude.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsexclude.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// TermsExclude type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L999-L1000
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1003-L1004
type TermsExclude []string
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsgrouping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsgrouping.go
index 03e46ccfc9..e027398b62 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsgrouping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsgrouping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TermsGrouping type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/rollup/_types/Groupings.ts#L75-L82
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/rollup/_types/Groupings.ts#L75-L82
type TermsGrouping struct {
// Fields The set of fields that you wish to collect terms for.
// This array can contain fields that are both keyword and numerics.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsinclude.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsinclude.go
index 265ef3c2b0..be9d9f923f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsinclude.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsinclude.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,5 +26,5 @@ package types
// []string
// TermsPartition
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L996-L997
-type TermsInclude interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1000-L1001
+type TermsInclude any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termslookup.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termslookup.go
index 89947197f0..6c4e549fc9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termslookup.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termslookup.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TermsLookup type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L242-L247
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L242-L247
type TermsLookup struct {
Id string `json:"id"`
Index string `json:"index"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termspartition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termspartition.go
index b039c0717d..c3fc2a661f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termspartition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termspartition.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TermsPartition type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L1002-L1011
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1006-L1015
type TermsPartition struct {
// NumPartitions The number of partitions.
NumPartitions int64 `json:"num_partitions"`
@@ -55,7 +55,7 @@ func (s *TermsPartition) UnmarshalJSON(data []byte) error {
switch t {
case "num_partitions":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *TermsPartition) UnmarshalJSON(data []byte) error {
}
case "partition":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsquery.go
index c2e71201e8..5da4ee031a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TermsQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L233-L235
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L233-L235
type TermsQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -59,7 +59,7 @@ func (s *TermsQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,7 +108,7 @@ func (s *TermsQuery) UnmarshalJSON(data []byte) error {
func (s TermsQuery) MarshalJSON() ([]byte, error) {
type opt TermsQuery
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsqueryfield.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsqueryfield.go
index 5243c4324d..217519576a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsqueryfield.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsqueryfield.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// []FieldValue
// TermsLookup
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L237-L240
-type TermsQueryField interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L237-L240
+type TermsQueryField any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termssetquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termssetquery.go
index 2d6c1cac71..6283afd133 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termssetquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termssetquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TermsSetQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L249-L262
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L249-L262
type TermsSetQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -66,7 +66,7 @@ func (s *TermsSetQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsuggest.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsuggest.go
index 2c6fd06ae5..051c90e740 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsuggest.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsuggest.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TermSuggest type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L64-L69
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L64-L69
type TermSuggest struct {
Length int `json:"length"`
Offset int `json:"offset"`
@@ -56,7 +56,7 @@ func (s *TermSuggest) UnmarshalJSON(data []byte) error {
case "length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *TermSuggest) UnmarshalJSON(data []byte) error {
case "offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsuggester.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsuggester.go
index cdf1d9942d..00ab328243 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsuggester.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsuggester.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// TermSuggester type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L503-L565
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L503-L565
type TermSuggester struct {
// Analyzer The analyzer to analyze the suggest text with.
// Defaults to the search analyzer of the suggest field.
@@ -121,7 +121,7 @@ func (s *TermSuggester) UnmarshalJSON(data []byte) error {
}
case "lowercase_terms":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -136,7 +136,7 @@ func (s *TermSuggester) UnmarshalJSON(data []byte) error {
case "max_edits":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -152,7 +152,7 @@ func (s *TermSuggester) UnmarshalJSON(data []byte) error {
case "max_inspections":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -167,7 +167,7 @@ func (s *TermSuggester) UnmarshalJSON(data []byte) error {
}
case "max_term_freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -183,7 +183,7 @@ func (s *TermSuggester) UnmarshalJSON(data []byte) error {
}
case "min_doc_freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -200,7 +200,7 @@ func (s *TermSuggester) UnmarshalJSON(data []byte) error {
case "min_word_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -216,7 +216,7 @@ func (s *TermSuggester) UnmarshalJSON(data []byte) error {
case "prefix_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -232,7 +232,7 @@ func (s *TermSuggester) UnmarshalJSON(data []byte) error {
case "shard_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -248,7 +248,7 @@ func (s *TermSuggester) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsuggestoption.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsuggestoption.go
index da74d6197f..89c1d333e7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsuggestoption.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termsuggestoption.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TermSuggestOption type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/suggester.ts#L93-L99
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/suggester.ts#L93-L99
type TermSuggestOption struct {
CollateMatch *bool `json:"collate_match,omitempty"`
Freq int64 `json:"freq"`
@@ -56,7 +56,7 @@ func (s *TermSuggestOption) UnmarshalJSON(data []byte) error {
switch t {
case "collate_match":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *TermSuggestOption) UnmarshalJSON(data []byte) error {
}
case "freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -97,7 +97,7 @@ func (s *TermSuggestOption) UnmarshalJSON(data []byte) error {
s.Highlighted = &o
case "score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvector.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvector.go
index 35368d057c..36991eb0b3 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvector.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvector.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// TermVector type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/termvectors/types.ts#L23-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/termvectors/types.ts#L23-L26
type TermVector struct {
FieldStatistics FieldStatistics `json:"field_statistics"`
Terms map[string]Term `json:"terms"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvectorsfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvectorsfilter.go
index 48bb9caf0a..8627807361 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvectorsfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvectorsfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TermVectorsFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/termvectors/types.ts#L49-L86
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/termvectors/types.ts#L49-L86
type TermVectorsFilter struct {
// MaxDocFreq Ignore words which occur in more than this many docs.
// Defaults to unbounded.
@@ -69,7 +69,7 @@ func (s *TermVectorsFilter) UnmarshalJSON(data []byte) error {
case "max_doc_freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *TermVectorsFilter) UnmarshalJSON(data []byte) error {
case "max_num_terms":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -101,7 +101,7 @@ func (s *TermVectorsFilter) UnmarshalJSON(data []byte) error {
case "max_term_freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +117,7 @@ func (s *TermVectorsFilter) UnmarshalJSON(data []byte) error {
case "max_word_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -133,7 +133,7 @@ func (s *TermVectorsFilter) UnmarshalJSON(data []byte) error {
case "min_doc_freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -149,7 +149,7 @@ func (s *TermVectorsFilter) UnmarshalJSON(data []byte) error {
case "min_term_freq":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -165,7 +165,7 @@ func (s *TermVectorsFilter) UnmarshalJSON(data []byte) error {
case "min_word_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvectorsresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvectorsresult.go
index 3263a57e4e..1c0f2289a2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvectorsresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvectorsresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TermVectorsResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/mtermvectors/types.ts#L96-L104
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/mtermvectors/types.ts#L96-L104
type TermVectorsResult struct {
Error *ErrorCause `json:"error,omitempty"`
Found *bool `json:"found,omitempty"`
@@ -63,7 +63,7 @@ func (s *TermVectorsResult) UnmarshalJSON(data []byte) error {
}
case "found":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *TermVectorsResult) UnmarshalJSON(data []byte) error {
}
case "took":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvectorstoken.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvectorstoken.go
index 2c6d354882..5a09765332 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvectorstoken.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/termvectorstoken.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TermVectorsToken type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/termvectors/types.ts#L42-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/termvectors/types.ts#L42-L47
type TermVectorsToken struct {
EndOffset *int `json:"end_offset,omitempty"`
Payload *string `json:"payload,omitempty"`
@@ -56,7 +56,7 @@ func (s *TermVectorsToken) UnmarshalJSON(data []byte) error {
case "end_offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -84,7 +84,7 @@ func (s *TermVectorsToken) UnmarshalJSON(data []byte) error {
case "position":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *TermVectorsToken) UnmarshalJSON(data []byte) error {
case "start_offset":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/testpopulation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/testpopulation.go
index cad3499905..135e9ce268 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/testpopulation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/testpopulation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TestPopulation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L310-L320
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L310-L320
type TestPopulation struct {
// Field The field to aggregate.
Field string `json:"field"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textclassificationinferenceoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textclassificationinferenceoptions.go
index fa25462737..9d4989916b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textclassificationinferenceoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textclassificationinferenceoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TextClassificationInferenceOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L189-L199
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L189-L199
type TextClassificationInferenceOptions struct {
// ClassificationLabels Classification labels to apply other than the stored labels. Must have the
// same deminsions as the default configured labels
@@ -67,7 +67,7 @@ func (s *TextClassificationInferenceOptions) UnmarshalJSON(data []byte) error {
case "num_top_classes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textclassificationinferenceupdateoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textclassificationinferenceupdateoptions.go
index d7826e1246..cdba6b77f5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textclassificationinferenceupdateoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textclassificationinferenceupdateoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TextClassificationInferenceUpdateOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L363-L372
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L363-L372
type TextClassificationInferenceUpdateOptions struct {
// ClassificationLabels Classification labels to apply other than the stored labels. Must have the
// same deminsions as the default configured labels
@@ -67,7 +67,7 @@ func (s *TextClassificationInferenceUpdateOptions) UnmarshalJSON(data []byte) er
case "num_top_classes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembedding.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembedding.go
index 5f029e1c98..d83027f8eb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembedding.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembedding.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TextEmbedding type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Knn.ts#L56-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Knn.ts#L74-L77
type TextEmbedding struct {
ModelId string `json:"model_id"`
ModelText string `json:"model_text"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddingbyteresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddingbyteresult.go
index 03cd3e9f54..62dc6fa8bc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddingbyteresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddingbyteresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TextEmbeddingByteResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/inference/_types/Results.ts#L45-L50
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Results.ts#L45-L50
type TextEmbeddingByteResult struct {
Embedding []byte `json:"embedding"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddinginferenceoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddinginferenceoptions.go
index d8a286657c..813c5f90bd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddinginferenceoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddinginferenceoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TextEmbeddingInferenceOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L237-L245
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L237-L245
type TextEmbeddingInferenceOptions struct {
// EmbeddingSize The number of dimensions in the embedding output
EmbeddingSize *int `json:"embedding_size,omitempty"`
@@ -59,7 +59,7 @@ func (s *TextEmbeddingInferenceOptions) UnmarshalJSON(data []byte) error {
case "embedding_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddinginferenceupdateoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddinginferenceupdateoptions.go
index 661a4695b6..ace85c205f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddinginferenceupdateoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddinginferenceupdateoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TextEmbeddingInferenceUpdateOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L392-L396
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L392-L396
type TextEmbeddingInferenceUpdateOptions struct {
// ResultsField The field that is added to incoming documents to contain the inference
// prediction. Defaults to predicted_value.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddingresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddingresult.go
index b96c30076a..09a8b3dd03 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddingresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textembeddingresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TextEmbeddingResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/inference/_types/Results.ts#L52-L57
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/inference/_types/Results.ts#L52-L57
type TextEmbeddingResult struct {
Embedding []float32 `json:"embedding"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textexpansioninferenceoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textexpansioninferenceoptions.go
index 50e2d9c067..80c79bb173 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textexpansioninferenceoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textexpansioninferenceoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TextExpansionInferenceOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L247-L253
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L247-L253
type TextExpansionInferenceOptions struct {
// ResultsField The field that is added to incoming documents to contain the inference
// prediction. Defaults to predicted_value.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textexpansioninferenceupdateoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textexpansioninferenceupdateoptions.go
index 5e4ff7f1c8..2a9b631350 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textexpansioninferenceupdateoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textexpansioninferenceupdateoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TextExpansionInferenceUpdateOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L398-L402
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L398-L402
type TextExpansionInferenceUpdateOptions struct {
// ResultsField The field that is added to incoming documents to contain the inference
// prediction. Defaults to predicted_value.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textexpansionquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textexpansionquery.go
index 06ce98ff31..6b80e90cef 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textexpansionquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textexpansionquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TextExpansionQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/TextExpansionQuery.ts#L23-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/TextExpansionQuery.ts#L23-L33
type TextExpansionQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -64,7 +64,7 @@ func (s *TextExpansionQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textindexprefixes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textindexprefixes.go
index c7f078b635..bf056c4030 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textindexprefixes.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textindexprefixes.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TextIndexPrefixes type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L250-L253
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L252-L255
type TextIndexPrefixes struct {
MaxChars int `json:"max_chars"`
MinChars int `json:"min_chars"`
@@ -54,7 +54,7 @@ func (s *TextIndexPrefixes) UnmarshalJSON(data []byte) error {
case "max_chars":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *TextIndexPrefixes) UnmarshalJSON(data []byte) error {
case "min_chars":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textproperty.go
index dac345e3e7..c66c23a8fc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/textproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// TextProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L255-L271
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L257-L273
type TextProperty struct {
Analyzer *string `json:"analyzer,omitempty"`
Boost *Float64 `json:"boost,omitempty"`
@@ -91,7 +91,7 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error {
s.Analyzer = &o
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -128,7 +128,7 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error {
}
case "eager_global_ordinals":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -142,7 +142,7 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error {
}
case "fielddata":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -167,7 +167,7 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -458,6 +458,12 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -469,7 +475,7 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -484,7 +490,7 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -503,7 +509,7 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error {
}
case "index_phrases":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -530,7 +536,7 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error {
}
case "norms":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -545,7 +551,7 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error {
case "position_increment_gap":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -566,7 +572,7 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -857,6 +863,12 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -903,7 +915,7 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/texttoanalyze.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/texttoanalyze.go
index 4135d63f5c..733cd69875 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/texttoanalyze.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/texttoanalyze.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// TextToAnalyze type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/analyze/types.ts#L66-L66
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/types.ts#L66-L66
type TextToAnalyze []string
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/threadcount.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/threadcount.go
index 5bc0987592..30c8bac8be 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/threadcount.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/threadcount.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ThreadCount type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L1004-L1029
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L1004-L1029
type ThreadCount struct {
// Active Number of active threads in the thread pool.
Active *int64 `json:"active,omitempty"`
@@ -63,7 +63,7 @@ func (s *ThreadCount) UnmarshalJSON(data []byte) error {
switch t {
case "active":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -78,7 +78,7 @@ func (s *ThreadCount) UnmarshalJSON(data []byte) error {
}
case "completed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -93,7 +93,7 @@ func (s *ThreadCount) UnmarshalJSON(data []byte) error {
}
case "largest":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,7 +108,7 @@ func (s *ThreadCount) UnmarshalJSON(data []byte) error {
}
case "queue":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -123,7 +123,7 @@ func (s *ThreadCount) UnmarshalJSON(data []byte) error {
}
case "rejected":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +138,7 @@ func (s *ThreadCount) UnmarshalJSON(data []byte) error {
}
case "threads":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/threadpoolrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/threadpoolrecord.go
index 09a6921e24..dbd373a805 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/threadpoolrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/threadpoolrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ThreadPoolRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/thread_pool/types.ts#L22-L124
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/thread_pool/types.ts#L22-L124
type ThreadPoolRecord struct {
// Active The number of active threads in the current thread pool.
Active *string `json:"active,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/throttlestate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/throttlestate.go
index f97afcd197..64a59345cb 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/throttlestate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/throttlestate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ThrottleState type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Action.ts#L126-L129
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L126-L129
type ThrottleState struct {
Reason string `json:"reason"`
Timestamp DateTime `json:"timestamp"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeofmonth.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeofmonth.go
index 66a52c6c33..e1d897868c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeofmonth.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeofmonth.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// TimeOfMonth type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Schedule.ts#L110-L113
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L110-L113
type TimeOfMonth struct {
At []string `json:"at"`
On []int `json:"on"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeofweek.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeofweek.go
index df9abad115..d9a9b2a653 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeofweek.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeofweek.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// TimeOfWeek type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Schedule.ts#L115-L118
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L115-L118
type TimeOfWeek struct {
At []string `json:"at"`
On []day.Day `json:"on"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeofyear.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeofyear.go
index 73162bfde2..513106bbf7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeofyear.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timeofyear.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// TimeOfYear type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Schedule.ts#L120-L124
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Schedule.ts#L120-L124
type TimeOfYear struct {
At []string `json:"at"`
Int []month.Month `json:"int"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timesync.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timesync.go
index 33faf05328..89d4d02e0a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timesync.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timesync.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TimeSync type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/_types/Transform.ts#L177-L189
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L177-L189
type TimeSync struct {
// Delay The time delay between the current time and the latest input data time.
Delay Duration `json:"delay,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timingstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timingstats.go
index 9f60b15e12..dcf7ae8d94 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timingstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/timingstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TimingStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L563-L568
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L563-L568
type TimingStats struct {
// ElapsedTime Runtime of the analysis in milliseconds.
ElapsedTime int64 `json:"elapsed_time"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokencountproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokencountproperty.go
index f0a9a6d0e7..0096df2b97 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokencountproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokencountproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// TokenCountProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/specialized.ts#L79-L86
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/specialized.ts#L85-L92
type TokenCountProperty struct {
Analyzer *string `json:"analyzer,omitempty"`
Boost *Float64 `json:"boost,omitempty"`
@@ -81,7 +81,7 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error {
s.Analyzer = &o
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,7 +113,7 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -132,7 +132,7 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error {
}
case "enable_position_increments":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -152,7 +152,7 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -443,6 +443,12 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -454,7 +460,7 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -469,7 +475,7 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -491,7 +497,7 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error {
}
case "null_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -513,7 +519,7 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -804,6 +810,12 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -826,7 +838,7 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokendetail.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokendetail.go
index 86efdf32a9..a23724ebc0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokendetail.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokendetail.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TokenDetail type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/analyze/types.ts#L68-L71
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/analyze/types.ts#L68-L71
type TokenDetail struct {
Name string `json:"name"`
Tokens []ExplainAnalyzeToken `json:"tokens"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenfilter.go
index f3b9a1b6bf..452b49ddd4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// TokenFilterDefinition
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L344-L346
-type TokenFilter interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L346-L348
+type TokenFilter any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenfilterdefinition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenfilterdefinition.go
index bb168cfd34..ce98a3317f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenfilterdefinition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenfilterdefinition.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -63,7 +63,6 @@ package types
// KuromojiStemmerTokenFilter
// KuromojiReadingFormTokenFilter
// KuromojiPartOfSpeechTokenFilter
-// IcuTokenizer
// IcuCollationTokenFilter
// IcuFoldingTokenFilter
// IcuNormalizationTokenFilter
@@ -71,5 +70,5 @@ package types
// PhoneticTokenFilter
// DictionaryDecompounderTokenFilter
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L348-L401
-type TokenFilterDefinition interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L350-L402
+type TokenFilterDefinition any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizationconfigcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizationconfigcontainer.go
index e831ab0739..7ee7ee79c6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizationconfigcontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizationconfigcontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// TokenizationConfigContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L110-L129
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L110-L129
type TokenizationConfigContainer struct {
// Bert Indicates BERT tokenization and its options
Bert *NlpBertTokenizationConfig `json:"bert,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizer.go
index 6b882a9d17..275ef9ed82 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// string
// TokenizerDefinition
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L120-L122
-type Tokenizer interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L120-L122
+type Tokenizer any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizerdefinition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizerdefinition.go
index 7b21a4aa87..0e7542c87c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizerdefinition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenizerdefinition.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -37,5 +37,5 @@ package types
// PatternTokenizer
// IcuTokenizer
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L124-L142
-type TokenizerDefinition interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L124-L142
+type TokenizerDefinition any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenpruningconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenpruningconfig.go
index 687512eff1..931724da69 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenpruningconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tokenpruningconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TokenPruningConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/TokenPruningConfig.ts#L22-L35
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/TokenPruningConfig.ts#L22-L35
type TokenPruningConfig struct {
// OnlyScorePrunedTokens Whether to only score pruned tokens, vs only scoring kept tokens.
OnlyScorePrunedTokens *bool `json:"only_score_pruned_tokens,omitempty"`
@@ -60,7 +60,7 @@ func (s *TokenPruningConfig) UnmarshalJSON(data []byte) error {
switch t {
case "only_score_pruned_tokens":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -75,7 +75,7 @@ func (s *TokenPruningConfig) UnmarshalJSON(data []byte) error {
case "tokens_freq_ratio_threshold":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -90,7 +90,7 @@ func (s *TokenPruningConfig) UnmarshalJSON(data []byte) error {
}
case "tokens_weight_threshold":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topclassentry.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topclassentry.go
index c718dca844..d293bc28b4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topclassentry.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topclassentry.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TopClassEntry type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L440-L444
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L440-L444
type TopClassEntry struct {
ClassName string `json:"class_name"`
ClassProbability Float64 `json:"class_probability"`
@@ -66,7 +66,7 @@ func (s *TopClassEntry) UnmarshalJSON(data []byte) error {
s.ClassName = o
case "class_probability":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -82,7 +82,7 @@ func (s *TopClassEntry) UnmarshalJSON(data []byte) error {
}
case "class_score":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tophit.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tophit.go
index a92baf6227..91553d124b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tophit.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tophit.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TopHit type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/text_structure/find_structure/types.ts#L35-L38
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/text_structure/find_structure/types.ts#L35-L38
type TopHit struct {
Count int64 `json:"count"`
Value json.RawMessage `json:"value,omitempty"`
@@ -53,7 +53,7 @@ func (s *TopHit) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tophitsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tophitsaggregate.go
index 4e6e63fd4f..d34bcd1479 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tophitsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tophitsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TopHitsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L654-L657
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L654-L657
type TopHitsAggregate struct {
Hits HitsMetadata `json:"hits"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tophitsaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tophitsaggregation.go
index e3fb68a3a4..3b7df53287 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tophitsaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/tophitsaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,15 +31,18 @@ import (
// TopHitsAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L337-L392
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L337-L397
type TopHitsAggregation struct {
// DocvalueFields Fields for which to return doc values.
- DocvalueFields []string `json:"docvalue_fields,omitempty"`
+ DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"`
// Explain If `true`, returns detailed information about score computation as part of a
// hit.
Explain *bool `json:"explain,omitempty"`
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
+ // Fields Array of wildcard (*) patterns. The request returns values for field names
+ // matching these patterns in the hits.fields property of the response.
+ Fields []FieldAndFormat `json:"fields,omitempty"`
// From Starting document offset.
From *int `json:"from,omitempty"`
// Highlight Specifies the highlighter to use for retrieving highlighted snippets from one
@@ -87,23 +90,12 @@ func (s *TopHitsAggregation) UnmarshalJSON(data []byte) error {
switch t {
case "docvalue_fields":
- rawMsg := json.RawMessage{}
- dec.Decode(&rawMsg)
- if !bytes.HasPrefix(rawMsg, []byte("[")) {
- o := new(string)
- if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil {
- return fmt.Errorf("%s | %w", "DocvalueFields", err)
- }
-
- s.DocvalueFields = append(s.DocvalueFields, *o)
- } else {
- if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.DocvalueFields); err != nil {
- return fmt.Errorf("%s | %w", "DocvalueFields", err)
- }
+ if err := dec.Decode(&s.DocvalueFields); err != nil {
+ return fmt.Errorf("%s | %w", "DocvalueFields", err)
}
case "explain":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -121,9 +113,14 @@ func (s *TopHitsAggregation) UnmarshalJSON(data []byte) error {
return fmt.Errorf("%s | %w", "Field", err)
}
+ case "fields":
+ if err := dec.Decode(&s.Fields); err != nil {
+ return fmt.Errorf("%s | %w", "Fields", err)
+ }
+
case "from":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -192,7 +189,7 @@ func (s *TopHitsAggregation) UnmarshalJSON(data []byte) error {
}
case "seq_no_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -207,7 +204,7 @@ func (s *TopHitsAggregation) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -259,7 +256,7 @@ func (s *TopHitsAggregation) UnmarshalJSON(data []byte) error {
}
case "track_scores":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -273,7 +270,7 @@ func (s *TopHitsAggregation) UnmarshalJSON(data []byte) error {
}
case "version":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topleftbottomrightgeobounds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topleftbottomrightgeobounds.go
index ee4bda64d3..7ce8c0eca9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topleftbottomrightgeobounds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topleftbottomrightgeobounds.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TopLeftBottomRightGeoBounds type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Geo.ts#L161-L164
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L161-L164
type TopLeftBottomRightGeoBounds struct {
BottomRight GeoLocation `json:"bottom_right"`
TopLeft GeoLocation `json:"top_left"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetrics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetrics.go
index e7f450a7ae..0d50a3a0a7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetrics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetrics.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// TopMetrics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L729-L733
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L729-L733
type TopMetrics struct {
Metrics map[string]FieldValue `json:"metrics"`
Sort []FieldValue `json:"sort"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetricsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetricsaggregate.go
index c519d7aa28..c86532c1df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetricsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetricsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TopMetricsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L724-L727
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L724-L727
type TopMetricsAggregate struct {
Meta Metadata `json:"meta,omitempty"`
Top []TopMetrics `json:"top"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetricsaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetricsaggregation.go
index 62ff3b6070..686c34ea44 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetricsaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetricsaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TopMetricsAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L394-L408
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L399-L413
type TopMetricsAggregation struct {
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
@@ -126,7 +126,7 @@ func (s *TopMetricsAggregation) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetricsvalue.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetricsvalue.go
index c5dd020a52..6e1d9e82ba 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetricsvalue.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/topmetricsvalue.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TopMetricsValue type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L410-L415
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L415-L420
type TopMetricsValue struct {
// Field A field to return as a metric.
Field string `json:"field"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/toprightbottomleftgeobounds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/toprightbottomleftgeobounds.go
index 3c324288f2..662db95606 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/toprightbottomleftgeobounds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/toprightbottomleftgeobounds.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TopRightBottomLeftGeoBounds type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Geo.ts#L166-L169
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L166-L169
type TopRightBottomLeftGeoBounds struct {
BottomLeft GeoLocation `json:"bottom_left"`
TopRight GeoLocation `json:"top_right"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportance.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportance.go
index 7819d9dd08..d0ba7d84ab 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportance.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportance.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TotalFeatureImportance type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L233-L240
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L233-L240
type TotalFeatureImportance struct {
// Classes If the trained model is a classification model, feature importance statistics
// are gathered per target class value.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportanceclass.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportanceclass.go
index d9976506be..790521291b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportanceclass.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportanceclass.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TotalFeatureImportanceClass type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L242-L247
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L242-L247
type TotalFeatureImportanceClass struct {
// ClassName The target class value. Could be a string, boolean, or number.
ClassName string `json:"class_name"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportancestatistics.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportancestatistics.go
index 406f8d1d04..16e2df5480 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportancestatistics.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totalfeatureimportancestatistics.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TotalFeatureImportanceStatistics type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L249-L256
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L249-L256
type TotalFeatureImportanceStatistics struct {
// Max The maximum importance value across all the training data for this feature.
Max int `json:"max"`
@@ -60,7 +60,7 @@ func (s *TotalFeatureImportanceStatistics) UnmarshalJSON(data []byte) error {
case "max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -75,7 +75,7 @@ func (s *TotalFeatureImportanceStatistics) UnmarshalJSON(data []byte) error {
}
case "mean_magnitude":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *TotalFeatureImportanceStatistics) UnmarshalJSON(data []byte) error {
case "min":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totaluserprofiles.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totaluserprofiles.go
index f915603708..549be96f8a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totaluserprofiles.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/totaluserprofiles.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TotalUserProfiles type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/suggest_user_profiles/Response.ts#L24-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/suggest_user_profiles/Response.ts#L24-L27
type TotalUserProfiles struct {
Relation string `json:"relation"`
Value int64 `json:"value"`
@@ -58,7 +58,7 @@ func (s *TotalUserProfiles) UnmarshalJSON(data []byte) error {
}
case "value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trackhits.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trackhits.go
index f9a2057f5b..7959642b0f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trackhits.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trackhits.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// bool
// int
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/search/_types/hits.ts#L142-L150
-type TrackHits interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/search/_types/hits.ts#L142-L150
+type TrackHits any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodel.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodel.go
index 0ed767a327..752141db68 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodel.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodel.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// TrainedModel type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model/types.ts#L60-L72
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L60-L72
type TrainedModel struct {
// Ensemble The definition for an ensemble model
Ensemble *Ensemble `json:"ensemble,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelassignment.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelassignment.go
index 91a708c503..3fec9f03a4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelassignment.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelassignment.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// TrainedModelAssignment type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L403-L418
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L403-L418
type TrainedModelAssignment struct {
// AssignmentState The overall assignment state.
AssignmentState deploymentassignmentstate.DeploymentAssignmentState `json:"assignment_state"`
@@ -67,7 +67,7 @@ func (s *TrainedModelAssignment) UnmarshalJSON(data []byte) error {
case "max_assigned_allocations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelassignmentroutingtable.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelassignmentroutingtable.go
index 840eddb708..db6f5a7994 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelassignmentroutingtable.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelassignmentroutingtable.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// TrainedModelAssignmentRoutingTable type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L374-L392
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L374-L392
type TrainedModelAssignmentRoutingTable struct {
// CurrentAllocations Current number of allocations.
CurrentAllocations int `json:"current_allocations"`
@@ -63,7 +63,7 @@ func (s *TrainedModelAssignmentRoutingTable) UnmarshalJSON(data []byte) error {
case "current_allocations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *TrainedModelAssignmentRoutingTable) UnmarshalJSON(data []byte) error {
case "target_allocations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelassignmenttaskparameters.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelassignmenttaskparameters.go
index 9f7ca95189..5327c9bf31 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelassignmenttaskparameters.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelassignmenttaskparameters.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// TrainedModelAssignmentTaskParameters type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L316-L349
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L316-L349
type TrainedModelAssignmentTaskParameters struct {
// CacheSize The size of the trained model cache.
CacheSize ByteSize `json:"cache_size"`
@@ -79,7 +79,7 @@ func (s *TrainedModelAssignmentTaskParameters) UnmarshalJSON(data []byte) error
case "model_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *TrainedModelAssignmentTaskParameters) UnmarshalJSON(data []byte) error
case "number_of_allocations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -121,7 +121,7 @@ func (s *TrainedModelAssignmentTaskParameters) UnmarshalJSON(data []byte) error
case "queue_capacity":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -137,7 +137,7 @@ func (s *TrainedModelAssignmentTaskParameters) UnmarshalJSON(data []byte) error
case "threads_per_allocation":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfig.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfig.go
index 7a5db9aaf2..e4b4a62c22 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfig.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfig.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// TrainedModelConfig type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L165-L200
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L165-L200
type TrainedModelConfig struct {
CompressedDefinition *string `json:"compressed_definition,omitempty"`
// CreateTime The time when the trained model was created.
@@ -142,7 +142,7 @@ func (s *TrainedModelConfig) UnmarshalJSON(data []byte) error {
case "estimated_heap_memory_usage_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -158,7 +158,7 @@ func (s *TrainedModelConfig) UnmarshalJSON(data []byte) error {
case "estimated_operations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -173,7 +173,7 @@ func (s *TrainedModelConfig) UnmarshalJSON(data []byte) error {
}
case "fully_defined":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfiginput.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfiginput.go
index 20187e7f9a..11989a86fe 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfiginput.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfiginput.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// TrainedModelConfigInput type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L202-L205
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L202-L205
type TrainedModelConfigInput struct {
// FieldNames An array of input field names for the model.
FieldNames []string `json:"field_names"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfigmetadata.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfigmetadata.go
index 0e3c0fb30d..d0906efa45 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfigmetadata.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelconfigmetadata.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// TrainedModelConfigMetadata type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L207-L215
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L207-L215
type TrainedModelConfigMetadata struct {
// FeatureImportanceBaseline An object that contains the baseline for feature importance values. For
// regression analysis, it is a single value. For classification analysis, there
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeldeploymentallocationstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeldeploymentallocationstatus.go
index 70973a1944..97aec605e0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeldeploymentallocationstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeldeploymentallocationstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// TrainedModelDeploymentAllocationStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L394-L401
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L394-L401
type TrainedModelDeploymentAllocationStatus struct {
// AllocationCount The current number of nodes where the model is allocated.
AllocationCount int `json:"allocation_count"`
@@ -60,7 +60,7 @@ func (s *TrainedModelDeploymentAllocationStatus) UnmarshalJSON(data []byte) erro
case "allocation_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -81,7 +81,7 @@ func (s *TrainedModelDeploymentAllocationStatus) UnmarshalJSON(data []byte) erro
case "target_allocation_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeldeploymentnodesstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeldeploymentnodesstats.go
index d1a8f23eca..f095501892 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeldeploymentnodesstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeldeploymentnodesstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TrainedModelDeploymentNodesStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L133-L163
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L133-L163
type TrainedModelDeploymentNodesStats struct {
// AverageInferenceTimeMs The average time for each inference call to complete on this node.
AverageInferenceTimeMs Float64 `json:"average_inference_time_ms"`
@@ -83,7 +83,7 @@ func (s *TrainedModelDeploymentNodesStats) UnmarshalJSON(data []byte) error {
case "error_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -99,7 +99,7 @@ func (s *TrainedModelDeploymentNodesStats) UnmarshalJSON(data []byte) error {
case "inference_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *TrainedModelDeploymentNodesStats) UnmarshalJSON(data []byte) error {
}
case "last_access":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -135,7 +135,7 @@ func (s *TrainedModelDeploymentNodesStats) UnmarshalJSON(data []byte) error {
case "number_of_allocations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -151,7 +151,7 @@ func (s *TrainedModelDeploymentNodesStats) UnmarshalJSON(data []byte) error {
case "number_of_pending_requests":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -167,7 +167,7 @@ func (s *TrainedModelDeploymentNodesStats) UnmarshalJSON(data []byte) error {
case "rejection_execution_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -193,7 +193,7 @@ func (s *TrainedModelDeploymentNodesStats) UnmarshalJSON(data []byte) error {
case "threads_per_allocation":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -209,7 +209,7 @@ func (s *TrainedModelDeploymentNodesStats) UnmarshalJSON(data []byte) error {
case "timeout_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeldeploymentstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeldeploymentstats.go
index a3b60c2c0e..effe91501f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeldeploymentstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeldeploymentstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// TrainedModelDeploymentStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L62-L102
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L62-L102
type TrainedModelDeploymentStats struct {
// AllocationStatus The detailed allocation status for the deployment.
AllocationStatus TrainedModelDeploymentAllocationStatus `json:"allocation_status"`
@@ -104,7 +104,7 @@ func (s *TrainedModelDeploymentStats) UnmarshalJSON(data []byte) error {
case "error_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -120,7 +120,7 @@ func (s *TrainedModelDeploymentStats) UnmarshalJSON(data []byte) error {
case "inference_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -146,7 +146,7 @@ func (s *TrainedModelDeploymentStats) UnmarshalJSON(data []byte) error {
case "number_of_allocations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -162,7 +162,7 @@ func (s *TrainedModelDeploymentStats) UnmarshalJSON(data []byte) error {
case "queue_capacity":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -190,7 +190,7 @@ func (s *TrainedModelDeploymentStats) UnmarshalJSON(data []byte) error {
case "rejected_execution_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -216,7 +216,7 @@ func (s *TrainedModelDeploymentStats) UnmarshalJSON(data []byte) error {
case "threads_per_allocation":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -232,7 +232,7 @@ func (s *TrainedModelDeploymentStats) UnmarshalJSON(data []byte) error {
case "timeout_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelentities.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelentities.go
index aa22fc9ec4..6c52552f03 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelentities.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelentities.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TrainedModelEntities type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L433-L439
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L433-L439
type TrainedModelEntities struct {
ClassName string `json:"class_name"`
ClassProbability Float64 `json:"class_probability"`
@@ -68,7 +68,7 @@ func (s *TrainedModelEntities) UnmarshalJSON(data []byte) error {
s.ClassName = o
case "class_probability":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *TrainedModelEntities) UnmarshalJSON(data []byte) error {
case "end_pos":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,7 +113,7 @@ func (s *TrainedModelEntities) UnmarshalJSON(data []byte) error {
case "start_pos":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelinferenceclassimportance.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelinferenceclassimportance.go
index 0262f98925..c781200dcc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelinferenceclassimportance.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelinferenceclassimportance.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TrainedModelInferenceClassImportance type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L446-L449
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L446-L449
type TrainedModelInferenceClassImportance struct {
ClassName string `json:"class_name"`
Importance Float64 `json:"importance"`
@@ -65,7 +65,7 @@ func (s *TrainedModelInferenceClassImportance) UnmarshalJSON(data []byte) error
s.ClassName = o
case "importance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelinferencefeatureimportance.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelinferencefeatureimportance.go
index a3243cb884..8c7fe223bd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelinferencefeatureimportance.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelinferencefeatureimportance.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TrainedModelInferenceFeatureImportance type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L451-L455
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L451-L455
type TrainedModelInferenceFeatureImportance struct {
Classes []TrainedModelInferenceClassImportance `json:"classes,omitempty"`
FeatureName string `json:"feature_name"`
@@ -71,7 +71,7 @@ func (s *TrainedModelInferenceFeatureImportance) UnmarshalJSON(data []byte) erro
s.FeatureName = o
case "importance":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelinferencestats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelinferencestats.go
index bd9e2ea571..7a2aa2094d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelinferencestats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelinferencestats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TrainedModelInferenceStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L104-L124
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L104-L124
type TrainedModelInferenceStats struct {
// CacheMissCount The number of times the model was loaded for inference and was not retrieved
// from the cache.
@@ -69,7 +69,7 @@ func (s *TrainedModelInferenceStats) UnmarshalJSON(data []byte) error {
case "cache_miss_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -85,7 +85,7 @@ func (s *TrainedModelInferenceStats) UnmarshalJSON(data []byte) error {
case "failure_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -101,7 +101,7 @@ func (s *TrainedModelInferenceStats) UnmarshalJSON(data []byte) error {
case "inference_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +117,7 @@ func (s *TrainedModelInferenceStats) UnmarshalJSON(data []byte) error {
case "missing_all_fields_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodellocation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodellocation.go
index ca97caf4db..14f8b2116a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodellocation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodellocation.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// TrainedModelLocation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L420-L422
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L420-L422
type TrainedModelLocation struct {
Index TrainedModelLocationIndex `json:"index"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodellocationindex.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodellocationindex.go
index dee8e6d7a8..6fa7c32cc8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodellocationindex.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodellocationindex.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TrainedModelLocationIndex type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L424-L426
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L424-L426
type TrainedModelLocationIndex struct {
Name string `json:"name"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelprefixstrings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelprefixstrings.go
index e5081454b3..04c76d0a9d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelprefixstrings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelprefixstrings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TrainedModelPrefixStrings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L428-L437
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L428-L437
type TrainedModelPrefixStrings struct {
// Ingest String prepended to input at ingest
Ingest *string `json:"ingest,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelsizestats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelsizestats.go
index d12cd3527e..aa66e22697 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelsizestats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelsizestats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TrainedModelSizeStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L126-L131
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L126-L131
type TrainedModelSizeStats struct {
// ModelSizeBytes The size of the model in bytes.
ModelSizeBytes ByteSize `json:"model_size_bytes"`
@@ -61,7 +61,7 @@ func (s *TrainedModelSizeStats) UnmarshalJSON(data []byte) error {
case "required_native_memory_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelsrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelsrecord.go
index b709f01f50..36aeff2d08 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelsrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelsrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TrainedModelsRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/ml_trained_models/types.ts#L23-L115
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/ml_trained_models/types.ts#L23-L115
type TrainedModelsRecord struct {
// CreateTime The time the model was created.
CreateTime DateTime `json:"create_time,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelstats.go
index 6d614bbd63..c2d4295996 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodelstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TrainedModelStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/TrainedModel.ts#L42-L60
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/TrainedModel.ts#L42-L60
type TrainedModelStats struct {
// DeploymentStats A collection of deployment stats, which is present when the models are
// deployed.
@@ -95,7 +95,7 @@ func (s *TrainedModelStats) UnmarshalJSON(data []byte) error {
case "pipeline_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeltree.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeltree.go
index e0a36f9679..185173c408 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeltree.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeltree.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TrainedModelTree type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model/types.ts#L74-L79
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L74-L79
type TrainedModelTree struct {
ClassificationLabels []string `json:"classification_labels,omitempty"`
FeatureNames []string `json:"feature_names"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeltreenode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeltreenode.go
index 167dafffec..f65dd89934 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeltreenode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trainedmodeltreenode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TrainedModelTreeNode type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model/types.ts#L81-L91
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L81-L91
type TrainedModelTreeNode struct {
DecisionType *string `json:"decision_type,omitempty"`
DefaultLeft *bool `json:"default_left,omitempty"`
@@ -72,7 +72,7 @@ func (s *TrainedModelTreeNode) UnmarshalJSON(data []byte) error {
s.DecisionType = &o
case "default_left":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -86,7 +86,7 @@ func (s *TrainedModelTreeNode) UnmarshalJSON(data []byte) error {
}
case "leaf_value":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -103,7 +103,7 @@ func (s *TrainedModelTreeNode) UnmarshalJSON(data []byte) error {
case "left_child":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -119,7 +119,7 @@ func (s *TrainedModelTreeNode) UnmarshalJSON(data []byte) error {
case "node_index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -135,7 +135,7 @@ func (s *TrainedModelTreeNode) UnmarshalJSON(data []byte) error {
case "right_child":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -151,7 +151,7 @@ func (s *TrainedModelTreeNode) UnmarshalJSON(data []byte) error {
case "split_feature":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -167,7 +167,7 @@ func (s *TrainedModelTreeNode) UnmarshalJSON(data []byte) error {
case "split_gain":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -182,7 +182,7 @@ func (s *TrainedModelTreeNode) UnmarshalJSON(data []byte) error {
}
case "threshold":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformauthorization.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformauthorization.go
index a232ff8349..30a9900f71 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformauthorization.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformauthorization.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TransformAuthorization type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/Authorization.ts#L59-L71
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/Authorization.ts#L59-L71
type TransformAuthorization struct {
// ApiKey If an API key was used for the most recent update to the transform, its name
// and identifier are listed in the response.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformcontainer.go
index ae07d1fffc..f7b072e464 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformcontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformcontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// TransformContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Transform.ts#L27-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Transform.ts#L27-L34
type TransformContainer struct {
Chain []TransformContainer `json:"chain,omitempty"`
Script *ScriptTransform `json:"script,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformdestination.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformdestination.go
index 8b361c8223..9f0f5e9437 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformdestination.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformdestination.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TransformDestination type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/_types/Transform.ts#L34-L45
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L34-L45
type TransformDestination struct {
// Index The destination index for the transform. The mappings of the destination
// index are deduced based on the source
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformindexerstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformindexerstats.go
index 0e88181521..ccc7c8279e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformindexerstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformindexerstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TransformIndexerStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/get_transform_stats/types.ts#L56-L74
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform_stats/types.ts#L56-L74
type TransformIndexerStats struct {
DeleteTimeInMs *int64 `json:"delete_time_in_ms,omitempty"`
DocumentsDeleted *int64 `json:"documents_deleted,omitempty"`
@@ -73,7 +73,7 @@ func (s *TransformIndexerStats) UnmarshalJSON(data []byte) error {
}
case "documents_deleted":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *TransformIndexerStats) UnmarshalJSON(data []byte) error {
}
case "documents_indexed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -103,7 +103,7 @@ func (s *TransformIndexerStats) UnmarshalJSON(data []byte) error {
}
case "documents_processed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -123,7 +123,7 @@ func (s *TransformIndexerStats) UnmarshalJSON(data []byte) error {
}
case "exponential_avg_documents_indexed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -139,7 +139,7 @@ func (s *TransformIndexerStats) UnmarshalJSON(data []byte) error {
}
case "exponential_avg_documents_processed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -155,7 +155,7 @@ func (s *TransformIndexerStats) UnmarshalJSON(data []byte) error {
}
case "index_failures":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -175,7 +175,7 @@ func (s *TransformIndexerStats) UnmarshalJSON(data []byte) error {
}
case "index_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -190,7 +190,7 @@ func (s *TransformIndexerStats) UnmarshalJSON(data []byte) error {
}
case "pages_processed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -210,7 +210,7 @@ func (s *TransformIndexerStats) UnmarshalJSON(data []byte) error {
}
case "processing_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -225,7 +225,7 @@ func (s *TransformIndexerStats) UnmarshalJSON(data []byte) error {
}
case "search_failures":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -245,7 +245,7 @@ func (s *TransformIndexerStats) UnmarshalJSON(data []byte) error {
}
case "search_total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -260,7 +260,7 @@ func (s *TransformIndexerStats) UnmarshalJSON(data []byte) error {
}
case "trigger_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformprogress.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformprogress.go
index f79550c84d..751bf78300 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformprogress.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformprogress.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TransformProgress type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/get_transform_stats/types.ts#L48-L54
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform_stats/types.ts#L48-L54
type TransformProgress struct {
DocsIndexed int64 `json:"docs_indexed"`
DocsProcessed int64 `json:"docs_processed"`
@@ -56,7 +56,7 @@ func (s *TransformProgress) UnmarshalJSON(data []byte) error {
switch t {
case "docs_indexed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *TransformProgress) UnmarshalJSON(data []byte) error {
}
case "docs_processed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -86,7 +86,7 @@ func (s *TransformProgress) UnmarshalJSON(data []byte) error {
}
case "docs_remaining":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -101,7 +101,7 @@ func (s *TransformProgress) UnmarshalJSON(data []byte) error {
}
case "percent_complete":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +117,7 @@ func (s *TransformProgress) UnmarshalJSON(data []byte) error {
}
case "total_docs":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformsource.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformsource.go
index d0704339ce..d4a529dc75 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformsource.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformsource.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TransformSource type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/_types/Transform.ts#L146-L165
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/_types/Transform.ts#L146-L165
type TransformSource struct {
// Index The source indices for the transform. It can be a single index, an index
// pattern (for example, `"my-index-*""`), an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformsrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformsrecord.go
index 568094d68f..04757c9811 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformsrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformsrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TransformsRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cat/transforms/types.ts#L22-L197
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cat/transforms/types.ts#L22-L197
type TransformsRecord struct {
// ChangesLastDetectionTime The timestamp when changes were last detected in the source indices.
ChangesLastDetectionTime string `json:"changes_last_detection_time,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformstats.go
index 3ace90420a..aa8fb5397b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TransformStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/get_transform_stats/types.ts#L31-L42
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform_stats/types.ts#L31-L42
type TransformStats struct {
Checkpointing Checkpointing `json:"checkpointing"`
Health *TransformStatsHealth `json:"health,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformstatshealth.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformstatshealth.go
index d70c442e21..76385c7b6e 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformstatshealth.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformstatshealth.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// TransformStatsHealth type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/get_transform_stats/types.ts#L44-L46
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform_stats/types.ts#L44-L46
type TransformStatsHealth struct {
Status healthstatus.HealthStatus `json:"status"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformsummary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformsummary.go
index 04dd24ccc9..e623382939 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformsummary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transformsummary.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TransformSummary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/transform/get_transform/types.ts#L33-L61
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/transform/get_transform/types.ts#L33-L61
type TransformSummary struct {
// Authorization The security privileges that the transform uses to run its queries. If
// Elastic Stack security features were disabled at the time of the most recent
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translog.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translog.go
index 2a854fb413..fc45efaec4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translog.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translog.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// Translog type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L339-L361
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L339-L361
type Translog struct {
// Durability Whether or not to `fsync` and commit the translog after every index, delete,
// update, or bulk request.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translogretention.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translogretention.go
index 6f78e1f8d7..06b0fb255b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translogretention.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translogretention.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TranslogRetention type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/_types/IndexSettings.ts#L380-L399
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/_types/IndexSettings.ts#L380-L399
type TranslogRetention struct {
// Age This controls the maximum duration for which translog files are kept by each
// shard. Keeping more
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translogstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translogstats.go
index 1ac45c6d11..0c940a29ee 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translogstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translogstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TranslogStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L397-L405
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L397-L405
type TranslogStats struct {
EarliestLastModifiedAge int64 `json:"earliest_last_modified_age"`
Operations int64 `json:"operations"`
@@ -58,7 +58,7 @@ func (s *TranslogStats) UnmarshalJSON(data []byte) error {
switch t {
case "earliest_last_modified_age":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -73,7 +73,7 @@ func (s *TranslogStats) UnmarshalJSON(data []byte) error {
}
case "operations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -100,7 +100,7 @@ func (s *TranslogStats) UnmarshalJSON(data []byte) error {
s.Size = &o
case "size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -116,7 +116,7 @@ func (s *TranslogStats) UnmarshalJSON(data []byte) error {
case "uncommitted_operations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -143,7 +143,7 @@ func (s *TranslogStats) UnmarshalJSON(data []byte) error {
s.UncommittedSize = &o
case "uncommitted_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translogstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translogstatus.go
index cf979b58c5..7f4fbe0d73 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translogstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/translogstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TranslogStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/recovery/types.ts#L102-L109
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L102-L109
type TranslogStatus struct {
Percent Percentage `json:"percent"`
Recovered int64 `json:"recovered"`
@@ -62,7 +62,7 @@ func (s *TranslogStatus) UnmarshalJSON(data []byte) error {
}
case "recovered":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -77,7 +77,7 @@ func (s *TranslogStatus) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -92,7 +92,7 @@ func (s *TranslogStatus) UnmarshalJSON(data []byte) error {
}
case "total_on_start":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transport.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transport.go
index c880835b36..369bb80f56 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transport.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transport.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Transport type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L1047-L1090
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L1047-L1090
type Transport struct {
// InboundHandlingTimeHistogram The distribution of the time spent handling each inbound message on a
// transport thread, represented as a histogram.
@@ -94,7 +94,7 @@ func (s *Transport) UnmarshalJSON(data []byte) error {
}
case "rx_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -121,7 +121,7 @@ func (s *Transport) UnmarshalJSON(data []byte) error {
s.RxSize = &o
case "rx_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -137,7 +137,7 @@ func (s *Transport) UnmarshalJSON(data []byte) error {
case "server_open":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -152,7 +152,7 @@ func (s *Transport) UnmarshalJSON(data []byte) error {
}
case "total_outbound_connections":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -167,7 +167,7 @@ func (s *Transport) UnmarshalJSON(data []byte) error {
}
case "tx_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -194,7 +194,7 @@ func (s *Transport) UnmarshalJSON(data []byte) error {
s.TxSize = &o
case "tx_size_in_bytes":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transporthistogram.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transporthistogram.go
index ba642a21cc..60ae545838 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transporthistogram.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/transporthistogram.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TransportHistogram type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/nodes/_types/Stats.ts#L1092-L1106
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/nodes/_types/Stats.ts#L1092-L1106
type TransportHistogram struct {
// Count The number of times a transport thread took a period of time within the
// bounds of this bucket to handle an inbound message.
@@ -60,7 +60,7 @@ func (s *TransportHistogram) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -75,7 +75,7 @@ func (s *TransportHistogram) UnmarshalJSON(data []byte) error {
}
case "ge_millis":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -90,7 +90,7 @@ func (s *TransportHistogram) UnmarshalJSON(data []byte) error {
}
case "lt_millis":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/triggercontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/triggercontainer.go
index 641a2bc224..5da58f85d0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/triggercontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/triggercontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// TriggerContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Trigger.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Trigger.ts#L23-L28
type TriggerContainer struct {
Schedule *ScheduleContainer `json:"schedule,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/triggereventcontainer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/triggereventcontainer.go
index 10e2e11c41..c3cfcd6f89 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/triggereventcontainer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/triggereventcontainer.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// TriggerEventContainer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Trigger.ts#L32-L37
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Trigger.ts#L32-L37
type TriggerEventContainer struct {
Schedule *ScheduleTriggerEvent `json:"schedule,omitempty"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/triggereventresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/triggereventresult.go
index 2da08bb8cb..abd18643e4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/triggereventresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/triggereventresult.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TriggerEventResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Trigger.ts#L39-L43
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Trigger.ts#L39-L43
type TriggerEventResult struct {
Manual TriggerEventContainer `json:"manual"`
TriggeredTime DateTime `json:"triggered_time"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trimprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trimprocessor.go
index a827625149..b753944d09 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trimprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trimprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TrimProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L1120-L1136
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1124-L1140
type TrimProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -100,7 +100,7 @@ func (s *TrimProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *TrimProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trimtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trimtokenfilter.go
index 67b0bc382f..ddda762b20 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trimtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/trimtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// TrimTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L326-L328
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L328-L330
type TrimTokenFilter struct {
Type string `json:"type,omitempty"`
Version *string `json:"version,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/truncatetokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/truncatetokenfilter.go
index 5c39eaa606..9792bd3cd0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/truncatetokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/truncatetokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TruncateTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L330-L333
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L332-L335
type TruncateTokenFilter struct {
Length *int `json:"length,omitempty"`
Type string `json:"type,omitempty"`
@@ -55,7 +55,7 @@ func (s *TruncateTokenFilter) UnmarshalJSON(data []byte) error {
case "length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ttestaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ttestaggregate.go
index 1c49e5302f..433afc04f1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ttestaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ttestaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TTestAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L735-L739
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L735-L739
type TTestAggregate struct {
Meta Metadata `json:"meta,omitempty"`
Value Float64 `json:"value,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ttestaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ttestaggregation.go
index 09c9bef8a0..ebe4430991 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ttestaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/ttestaggregation.go
@@ -16,87 +16,26 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
import (
- "bytes"
- "encoding/json"
- "errors"
- "fmt"
- "io"
- "strconv"
-
"github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ttesttype"
)
// TTestAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L294-L308
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L294-L308
type TTestAggregation struct {
// A Test population A.
A *TestPopulation `json:"a,omitempty"`
// B Test population B.
- B *TestPopulation `json:"b,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
+ B *TestPopulation `json:"b,omitempty"`
// Type The type of test.
Type *ttesttype.TTestType `json:"type,omitempty"`
}
-func (s *TTestAggregation) UnmarshalJSON(data []byte) error {
-
- dec := json.NewDecoder(bytes.NewReader(data))
-
- for {
- t, err := dec.Token()
- if err != nil {
- if errors.Is(err, io.EOF) {
- break
- }
- return err
- }
-
- switch t {
-
- case "a":
- if err := dec.Decode(&s.A); err != nil {
- return fmt.Errorf("%s | %w", "A", err)
- }
-
- case "b":
- if err := dec.Decode(&s.B); err != nil {
- return fmt.Errorf("%s | %w", "B", err)
- }
-
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
- case "type":
- if err := dec.Decode(&s.Type); err != nil {
- return fmt.Errorf("%s | %w", "Type", err)
- }
-
- }
- }
- return nil
-}
-
// NewTTestAggregation returns a TTestAggregation.
func NewTTestAggregation() *TTestAggregation {
r := &TTestAggregation{}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/typefieldmappings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/typefieldmappings.go
index 7f8d59485c..fe3cdfe610 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/typefieldmappings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/typefieldmappings.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// TypeFieldMappings type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/get_field_mapping/types.ts#L24-L26
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/get_field_mapping/types.ts#L24-L26
type TypeFieldMappings struct {
Mappings map[string]FieldMapping `json:"mappings"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/typemapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/typemapping.go
index 6c6a8218e0..4cfbfa8a64 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/typemapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/typemapping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// TypeMapping type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/TypeMapping.ts#L34-L57
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/TypeMapping.ts#L34-L57
type TypeMapping struct {
AllField *AllField `json:"all_field,omitempty"`
DataStreamTimestamp_ *DataStreamTimestamp `json:"_data_stream_timestamp,omitempty"`
@@ -80,7 +80,7 @@ func (s *TypeMapping) UnmarshalJSON(data []byte) error {
}
case "date_detection":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -109,7 +109,7 @@ func (s *TypeMapping) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +138,7 @@ func (s *TypeMapping) UnmarshalJSON(data []byte) error {
}
case "numeric_detection":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -158,7 +158,7 @@ func (s *TypeMapping) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -449,6 +449,12 @@ func (s *TypeMapping) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -482,7 +488,7 @@ func (s *TypeMapping) UnmarshalJSON(data []byte) error {
}
case "subobjects":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/typequery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/typequery.go
index ee62ab28ba..e37e999498 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/typequery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/typequery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// TypeQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L264-L266
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L264-L266
type TypeQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -59,7 +59,7 @@ func (s *TypeQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uaxemailurltokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uaxemailurltokenizer.go
index f40e5b8048..9171b1da96 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uaxemailurltokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uaxemailurltokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// UaxEmailUrlTokenizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L110-L113
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L110-L113
type UaxEmailUrlTokenizer struct {
MaxTokenLength *int `json:"max_token_length,omitempty"`
Type string `json:"type,omitempty"`
@@ -55,7 +55,7 @@ func (s *UaxEmailUrlTokenizer) UnmarshalJSON(data []byte) error {
case "max_token_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unassignedinformation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unassignedinformation.go
index 5c6b6af7e1..2032a0f906 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unassignedinformation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unassignedinformation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// UnassignedInformation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/cluster/allocation_explain/types.ts#L117-L125
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/cluster/allocation_explain/types.ts#L117-L125
type UnassignedInformation struct {
AllocationStatus *string `json:"allocation_status,omitempty"`
At DateTime `json:"at"`
@@ -77,7 +77,7 @@ func (s *UnassignedInformation) UnmarshalJSON(data []byte) error {
}
case "delayed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +104,7 @@ func (s *UnassignedInformation) UnmarshalJSON(data []byte) error {
case "failed_allocation_attempts":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uniquetokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uniquetokenfilter.go
index 58398c6e69..1093a479f6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uniquetokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uniquetokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// UniqueTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L335-L338
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L337-L340
type UniqueTokenFilter struct {
OnlyOnSamePosition *bool `json:"only_on_same_position,omitempty"`
Type string `json:"type,omitempty"`
@@ -54,7 +54,7 @@ func (s *UniqueTokenFilter) UnmarshalJSON(data []byte) error {
switch t {
case "only_on_same_position":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedraretermsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedraretermsaggregate.go
index bf64873073..c75cb254c2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedraretermsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedraretermsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// UnmappedRareTermsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L453-L459
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L453-L459
type UnmappedRareTermsAggregate struct {
Buckets BucketsVoid `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
@@ -59,13 +59,13 @@ func (s *UnmappedRareTermsAggregate) UnmarshalJSON(data []byte) error {
localDec := json.NewDecoder(source)
switch rawMsg[0] {
case '{':
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := localDec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Buckets", err)
}
s.Buckets = o
case '[':
- o := []interface{}{}
+ o := []any{}
if err := localDec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Buckets", err)
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedsampleraggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedsampleraggregate.go
index aa9a894a9b..8717184fd5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedsampleraggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedsampleraggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// UnmappedSamplerAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L501-L502
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L501-L502
type UnmappedSamplerAggregate struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -55,7 +55,7 @@ func (s *UnmappedSamplerAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +519,7 @@ func (s *UnmappedSamplerAggregate) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -569,7 +569,7 @@ func (s *UnmappedSamplerAggregate) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -579,7 +579,7 @@ func (s *UnmappedSamplerAggregate) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -596,7 +596,7 @@ func (s *UnmappedSamplerAggregate) UnmarshalJSON(data []byte) error {
func (s UnmappedSamplerAggregate) MarshalJSON() ([]byte, error) {
type opt UnmappedSamplerAggregate
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedsignificanttermsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedsignificanttermsaggregate.go
index 2797bf79cc..8c9b040993 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedsignificanttermsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedsignificanttermsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// UnmappedSignificantTermsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L610-L616
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L610-L616
type UnmappedSignificantTermsAggregate struct {
BgCount *int64 `json:"bg_count,omitempty"`
Buckets BucketsVoid `json:"buckets"`
@@ -55,7 +55,7 @@ func (s *UnmappedSignificantTermsAggregate) UnmarshalJSON(data []byte) error {
switch t {
case "bg_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -77,13 +77,13 @@ func (s *UnmappedSignificantTermsAggregate) UnmarshalJSON(data []byte) error {
localDec := json.NewDecoder(source)
switch rawMsg[0] {
case '{':
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := localDec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Buckets", err)
}
s.Buckets = o
case '[':
- o := []interface{}{}
+ o := []any{}
if err := localDec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Buckets", err)
}
@@ -91,7 +91,7 @@ func (s *UnmappedSignificantTermsAggregate) UnmarshalJSON(data []byte) error {
}
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedtermsaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedtermsaggregate.go
index 80e03919ea..1a5ae96af4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedtermsaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unmappedtermsaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// UnmappedTermsAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L423-L429
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L423-L429
type UnmappedTermsAggregate struct {
Buckets BucketsVoid `json:"buckets"`
DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`
@@ -62,13 +62,13 @@ func (s *UnmappedTermsAggregate) UnmarshalJSON(data []byte) error {
localDec := json.NewDecoder(source)
switch rawMsg[0] {
case '{':
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := localDec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Buckets", err)
}
s.Buckets = o
case '[':
- o := []interface{}{}
+ o := []any{}
if err := localDec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Buckets", err)
}
@@ -76,7 +76,7 @@ func (s *UnmappedTermsAggregate) UnmarshalJSON(data []byte) error {
}
case "doc_count_error_upper_bound":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *UnmappedTermsAggregate) UnmarshalJSON(data []byte) error {
}
case "sum_other_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unrateddocument.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unrateddocument.go
index 44fc962186..d3f3f65501 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unrateddocument.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unrateddocument.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// UnratedDocument type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/rank_eval/types.ts#L147-L150
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/rank_eval/types.ts#L147-L150
type UnratedDocument struct {
Id_ string `json:"_id"`
Index_ string `json:"_index"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unsignedlongnumberproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unsignedlongnumberproperty.go
index a9ff358a36..30b1aa83aa 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unsignedlongnumberproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/unsignedlongnumberproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -35,7 +35,7 @@ import (
// UnsignedLongNumberProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L169-L172
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L171-L174
type UnsignedLongNumberProperty struct {
Boost *Float64 `json:"boost,omitempty"`
Coerce *bool `json:"coerce,omitempty"`
@@ -79,7 +79,7 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error {
}
case "coerce":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -125,7 +125,7 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -150,7 +150,7 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -441,6 +441,12 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -452,7 +458,7 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -467,7 +473,7 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error {
}
case "ignore_malformed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -481,7 +487,7 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error {
}
case "index":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -519,7 +525,7 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -810,6 +816,12 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -868,7 +880,7 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -882,7 +894,7 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error {
}
case "time_series_dimension":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/updateaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/updateaction.go
index bbaf5eb7cd..770d76bb26 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/updateaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/updateaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// UpdateAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/bulk/types.ts#L169-L205
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L169-L205
type UpdateAction struct {
// DetectNoop Set to false to disable setting 'result' in the response
// to 'noop' if no change to the document occurred.
@@ -70,7 +70,7 @@ func (s *UpdateAction) UnmarshalJSON(data []byte) error {
switch t {
case "detect_noop":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -89,7 +89,7 @@ func (s *UpdateAction) UnmarshalJSON(data []byte) error {
}
case "doc_as_upsert":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -139,7 +139,7 @@ func (s *UpdateAction) UnmarshalJSON(data []byte) error {
}
case "scripted_upsert":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/updatebyqueryrethrottlenode.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/updatebyqueryrethrottlenode.go
index 7cecaae4ac..1d6e065d35 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/updatebyqueryrethrottlenode.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/updatebyqueryrethrottlenode.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// UpdateByQueryRethrottleNode type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27
type UpdateByQueryRethrottleNode struct {
Attributes map[string]string `json:"attributes"`
Host string `json:"host"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/updateoperation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/updateoperation.go
index ef6d06d24c..23ba5b9d3f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/updateoperation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/updateoperation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// UpdateOperation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/bulk/types.ts#L136-L143
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L136-L143
type UpdateOperation struct {
// Id_ The document ID.
Id_ *string `json:"_id,omitempty"`
@@ -71,7 +71,7 @@ func (s *UpdateOperation) UnmarshalJSON(data []byte) error {
}
case "if_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *UpdateOperation) UnmarshalJSON(data []byte) error {
}
case "require_alias":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -111,7 +111,7 @@ func (s *UpdateOperation) UnmarshalJSON(data []byte) error {
case "retry_on_conflict":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uppercaseprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uppercaseprocessor.go
index 09ab15c1a8..b6db73156d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uppercaseprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uppercaseprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// UppercaseProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L1138-L1154
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1142-L1158
type UppercaseProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -100,7 +100,7 @@ func (s *UppercaseProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *UppercaseProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uppercasetokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uppercasetokenfilter.go
index 27e94ed98f..7adfb2441d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uppercasetokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/uppercasetokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// UppercaseTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L340-L342
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L342-L344
type UppercaseTokenFilter struct {
Type string `json:"type,omitempty"`
Version *string `json:"version,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/urldecodeprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/urldecodeprocessor.go
index b7da6a73f0..a5204bd1fd 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/urldecodeprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/urldecodeprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// UrlDecodeProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L1156-L1172
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L1160-L1176
type UrlDecodeProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -100,7 +100,7 @@ func (s *UrlDecodeProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -114,7 +114,7 @@ func (s *UrlDecodeProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/usagestatsindex.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/usagestatsindex.go
index 27a4a6d277..b1cbe06b89 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/usagestatsindex.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/usagestatsindex.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// UsageStatsIndex type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L38-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L38-L40
type UsageStatsIndex struct {
Shards []UsageStatsShards `json:"shards"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/usagestatsshards.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/usagestatsshards.go
index 0d5ff83c15..e80ea79959 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/usagestatsshards.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/usagestatsshards.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// UsageStatsShards type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L42-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L42-L47
type UsageStatsShards struct {
Routing ShardRouting `json:"routing"`
Stats IndicesShardsStats `json:"stats"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/user.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/user.go
index 24b90832e8..91bf298084 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/user.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/user.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// User type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/User.ts#L23-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/User.ts#L23-L31
type User struct {
Email string `json:"email,omitempty"`
Enabled bool `json:"enabled"`
@@ -70,7 +70,7 @@ func (s *User) UnmarshalJSON(data []byte) error {
s.Email = o
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/useragentprocessor.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/useragentprocessor.go
index 9b708f64e0..60b872b07f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/useragentprocessor.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/useragentprocessor.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// UserAgentProcessor type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ingest/_types/Processors.ts#L370-L390
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ingest/_types/Processors.ts#L370-L390
type UserAgentProcessor struct {
// Description Description of the processor.
// Useful for describing the purpose of the processor or its configuration.
@@ -108,7 +108,7 @@ func (s *UserAgentProcessor) UnmarshalJSON(data []byte) error {
s.If = &o
case "ignore_failure":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -122,7 +122,7 @@ func (s *UserAgentProcessor) UnmarshalJSON(data []byte) error {
}
case "ignore_missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userindicesprivileges.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userindicesprivileges.go
index df2a881466..e551bd1878 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userindicesprivileges.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userindicesprivileges.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// UserIndicesPrivileges type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/Privileges.ts#L107-L129
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/Privileges.ts#L129-L151
type UserIndicesPrivileges struct {
// AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that
// cover restricted indices. Implicitly, restricted indices have limited
@@ -72,7 +72,7 @@ func (s *UserIndicesPrivileges) UnmarshalJSON(data []byte) error {
switch t {
case "allow_restricted_indices":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofile.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofile.go
index a88bca6a24..074f49ca00 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofile.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofile.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// UserProfile type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/UserProfile.ts#L42-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/UserProfile.ts#L42-L48
type UserProfile struct {
Data map[string]json.RawMessage `json:"data"`
Enabled *bool `json:"enabled,omitempty"`
@@ -64,7 +64,7 @@ func (s *UserProfile) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofilehitmetadata.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofilehitmetadata.go
index bcfbab1218..9637b5a323 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofilehitmetadata.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofilehitmetadata.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// UserProfileHitMetadata type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/UserProfile.ts#L28-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/UserProfile.ts#L28-L31
type UserProfileHitMetadata struct {
PrimaryTerm_ int64 `json:"_primary_term"`
SeqNo_ int64 `json:"_seq_no"`
@@ -53,7 +53,7 @@ func (s *UserProfileHitMetadata) UnmarshalJSON(data []byte) error {
switch t {
case "_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofileuser.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofileuser.go
index 8780001ed6..58a5bb7eab 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofileuser.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofileuser.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// UserProfileUser type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/UserProfile.ts#L33-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/UserProfile.ts#L33-L40
type UserProfileUser struct {
Email string `json:"email,omitempty"`
FullName string `json:"full_name,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofilewithmetadata.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofilewithmetadata.go
index 8f953009d7..b5c538b511 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofilewithmetadata.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userprofilewithmetadata.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// UserProfileWithMetadata type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/_types/UserProfile.ts#L50-L53
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/_types/UserProfile.ts#L50-L53
type UserProfileWithMetadata struct {
Data map[string]json.RawMessage `json:"data"`
Doc_ UserProfileHitMetadata `json:"_doc"`
@@ -71,7 +71,7 @@ func (s *UserProfileWithMetadata) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -93,7 +93,7 @@ func (s *UserProfileWithMetadata) UnmarshalJSON(data []byte) error {
}
case "last_synchronized":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userrealm.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userrealm.go
index c0526bedae..7a1781c1d2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userrealm.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/userrealm.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// UserRealm type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/security/get_token/types.ts#L30-L33
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/security/get_token/types.ts#L30-L33
type UserRealm struct {
Name string `json:"name"`
Type string `json:"type"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/validationloss.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/validationloss.go
index ebdd5e7502..b794f7fbd7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/validationloss.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/validationloss.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ValidationLoss type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/DataframeAnalytics.ts#L570-L575
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/DataframeAnalytics.ts#L570-L575
type ValidationLoss struct {
// FoldValues Validation loss values for every added decision tree during the forest
// growing procedure.
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/valuecountaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/valuecountaggregate.go
index cf71416504..bbc716346b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/valuecountaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/valuecountaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ValueCountAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L218-L222
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L218-L222
type ValueCountAggregate struct {
Meta Metadata `json:"meta,omitempty"`
// Value The metric value. A missing value generally means that there was no data to
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/valuecountaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/valuecountaggregation.go
index 3c5d5767c1..4b84b936f9 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/valuecountaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/valuecountaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ValueCountAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L417-L417
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L422-L422
type ValueCountAggregation struct {
// Field The field on which to run the aggregation.
Field *string `json:"field,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/variablewidthhistogramaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/variablewidthhistogramaggregate.go
index b45fbd762f..cc40d56165 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/variablewidthhistogramaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/variablewidthhistogramaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// VariableWidthHistogramAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L362-L364
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L362-L364
type VariableWidthHistogramAggregate struct {
Buckets BucketsVariableWidthHistogramBucket `json:"buckets"`
Meta Metadata `json:"meta,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/variablewidthhistogramaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/variablewidthhistogramaggregation.go
index c0e2333ad7..8d1498a950 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/variablewidthhistogramaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/variablewidthhistogramaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// VariableWidthHistogramAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/bucket.ts#L1013-L1034
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/bucket.ts#L1017-L1038
type VariableWidthHistogramAggregation struct {
// Buckets The target number of buckets.
Buckets *int `json:"buckets,omitempty"`
@@ -65,7 +65,7 @@ func (s *VariableWidthHistogramAggregation) UnmarshalJSON(data []byte) error {
case "buckets":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -86,7 +86,7 @@ func (s *VariableWidthHistogramAggregation) UnmarshalJSON(data []byte) error {
case "initial_buffer":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +138,7 @@ func (s *VariableWidthHistogramAggregation) UnmarshalJSON(data []byte) error {
case "shard_size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/variablewidthhistogrambucket.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/variablewidthhistogrambucket.go
index 59603e2b04..cb02c5246d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/variablewidthhistogrambucket.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/variablewidthhistogrambucket.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// VariableWidthHistogramBucket type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L366-L373
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L366-L373
type VariableWidthHistogramBucket struct {
Aggregations map[string]Aggregate `json:"-"`
DocCount int64 `json:"doc_count"`
@@ -60,7 +60,7 @@ func (s *VariableWidthHistogramBucket) UnmarshalJSON(data []byte) error {
switch t {
case "doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -75,7 +75,7 @@ func (s *VariableWidthHistogramBucket) UnmarshalJSON(data []byte) error {
}
case "key":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -103,7 +103,7 @@ func (s *VariableWidthHistogramBucket) UnmarshalJSON(data []byte) error {
s.KeyAsString = &o
case "max":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -131,7 +131,7 @@ func (s *VariableWidthHistogramBucket) UnmarshalJSON(data []byte) error {
s.MaxAsString = &o
case "min":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -603,7 +603,7 @@ func (s *VariableWidthHistogramBucket) UnmarshalJSON(data []byte) error {
}
s.Aggregations[elems[1]] = o
- case "box_plot":
+ case "boxplot":
o := NewBoxPlotAggregate()
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
@@ -653,7 +653,7 @@ func (s *VariableWidthHistogramBucket) UnmarshalJSON(data []byte) error {
s.Aggregations[elems[1]] = o
default:
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -663,7 +663,7 @@ func (s *VariableWidthHistogramBucket) UnmarshalJSON(data []byte) error {
return errors.New("cannot decode JSON for field Aggregations")
}
} else {
- o := make(map[string]interface{}, 0)
+ o := make(map[string]any, 0)
if err := dec.Decode(&o); err != nil {
return fmt.Errorf("%s | %w", "Aggregations", err)
}
@@ -680,7 +680,7 @@ func (s *VariableWidthHistogramBucket) UnmarshalJSON(data []byte) error {
func (s VariableWidthHistogramBucket) MarshalJSON() ([]byte, error) {
type opt VariableWidthHistogramBucket
// We transform the struct to a map without the embedded additional properties map
- tmp := make(map[string]interface{}, 0)
+ tmp := make(map[string]any, 0)
data, err := json.Marshal(opt(s))
if err != nil {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vector.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vector.go
index 0604dd3fa0..b77eb981f0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vector.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vector.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Vector type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L454-L458
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L454-L458
type Vector struct {
Available bool `json:"available"`
DenseVectorDimsAvgCount int `json:"dense_vector_dims_avg_count"`
@@ -56,7 +56,7 @@ func (s *Vector) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -71,7 +71,7 @@ func (s *Vector) UnmarshalJSON(data []byte) error {
case "dense_vector_dims_avg_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *Vector) UnmarshalJSON(data []byte) error {
case "dense_vector_fields_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -102,7 +102,7 @@ func (s *Vector) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -117,7 +117,7 @@ func (s *Vector) UnmarshalJSON(data []byte) error {
case "sparse_vector_fields_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/verifyindex.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/verifyindex.go
index 4b170dd1c0..ba1de9723c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/verifyindex.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/verifyindex.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// VerifyIndex type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/indices/recovery/types.ts#L111-L116
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/indices/recovery/types.ts#L111-L116
type VerifyIndex struct {
CheckIndexTime Duration `json:"check_index_time,omitempty"`
CheckIndexTimeInMillis int64 `json:"check_index_time_in_millis"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/versionproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/versionproperty.go
index f44eaf55a5..f9f95ff40c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/versionproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/versionproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// VersionProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L273-L275
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L275-L277
type VersionProperty struct {
CopyTo []string `json:"copy_to,omitempty"`
DocValues *bool `json:"doc_values,omitempty"`
@@ -80,7 +80,7 @@ func (s *VersionProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -105,7 +105,7 @@ func (s *VersionProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -396,6 +396,12 @@ func (s *VersionProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -407,7 +413,7 @@ func (s *VersionProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -436,7 +442,7 @@ func (s *VersionProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -727,6 +733,12 @@ func (s *VersionProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -749,7 +761,7 @@ func (s *VersionProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vertex.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vertex.go
index 371d6c607d..265e539328 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vertex.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vertex.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Vertex type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/graph/_types/Vertex.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/_types/Vertex.ts#L23-L28
type Vertex struct {
Depth int64 `json:"depth"`
Field string `json:"field"`
@@ -55,7 +55,7 @@ func (s *Vertex) UnmarshalJSON(data []byte) error {
switch t {
case "depth":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -87,7 +87,7 @@ func (s *Vertex) UnmarshalJSON(data []byte) error {
s.Term = o
case "weight":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vertexdefinition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vertexdefinition.go
index ce7fbe7b8c..d819adfc81 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vertexdefinition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vertexdefinition.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// VertexDefinition type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/graph/_types/Vertex.ts#L30-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/_types/Vertex.ts#L30-L59
type VertexDefinition struct {
// Exclude Prevents the specified terms from being included in the results.
Exclude []string `json:"exclude,omitempty"`
@@ -82,7 +82,7 @@ func (s *VertexDefinition) UnmarshalJSON(data []byte) error {
}
case "min_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -97,7 +97,7 @@ func (s *VertexDefinition) UnmarshalJSON(data []byte) error {
}
case "shard_min_doc_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -113,7 +113,7 @@ func (s *VertexDefinition) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vertexinclude.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vertexinclude.go
index 6726d486bc..a7dd8b5a7d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vertexinclude.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vertexinclude.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// VertexInclude type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/graph/_types/Vertex.ts#L61-L64
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/graph/_types/Vertex.ts#L61-L64
type VertexInclude struct {
Boost Float64 `json:"boost"`
Term string `json:"term"`
@@ -53,7 +53,7 @@ func (s *VertexInclude) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vocabulary.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vocabulary.go
index 17eb57b10b..97547de0f2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vocabulary.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/vocabulary.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// Vocabulary type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L233-L235
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L233-L235
type Vocabulary struct {
Index string `json:"index"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/waitforactiveshards.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/waitforactiveshards.go
index b53c0e9ee5..363349529f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/waitforactiveshards.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/waitforactiveshards.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -25,5 +25,5 @@ package types
// int
// waitforactiveshardoptions.WaitForActiveShardOptions
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/common.ts#L142-L143
-type WaitForActiveShards interface{}
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/common.ts#L142-L143
+type WaitForActiveShards any
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/warmerstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/warmerstats.go
index 5844420cb8..e149e24add 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/warmerstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/warmerstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// WarmerStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Stats.ts#L407-L412
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Stats.ts#L407-L412
type WarmerStats struct {
Current int64 `json:"current"`
Total int64 `json:"total"`
@@ -55,7 +55,7 @@ func (s *WarmerStats) UnmarshalJSON(data []byte) error {
switch t {
case "current":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *WarmerStats) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watch.go
index d14c8f968a..7690ca470c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watch.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// Watch type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Watch.ts#L37-L47
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Watch.ts#L37-L47
type Watch struct {
Actions map[string]WatcherAction `json:"actions"`
Condition WatcherCondition `json:"condition"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcher.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcher.go
index 6050c8630e..cdf2eb7654 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcher.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcher.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Watcher type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L460-L464
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L460-L464
type Watcher struct {
Available bool `json:"available"`
Count Counter `json:"count"`
@@ -56,7 +56,7 @@ func (s *Watcher) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -75,7 +75,7 @@ func (s *Watcher) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcheraction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcheraction.go
index 80e096fe83..048d89889d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcheraction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcheraction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// WatcherAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Action.ts#L41-L60
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L41-L60
type WatcherAction struct {
ActionType *actiontype.ActionType `json:"action_type,omitempty"`
Condition *WatcherCondition `json:"condition,omitempty"`
@@ -105,7 +105,7 @@ func (s *WatcherAction) UnmarshalJSON(data []byte) error {
case "max_iterations":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcheractions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcheractions.go
index 766dc27b46..ffa7745b13 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcheractions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcheractions.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// WatcherActions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L396-L398
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L396-L398
type WatcherActions struct {
Actions map[string]WatcherActionTotals `json:"actions"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcheractiontotals.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcheractiontotals.go
index 9011c9a5f3..99ff996ec6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcheractiontotals.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcheractiontotals.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// WatcherActionTotals type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L412-L415
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L412-L415
type WatcherActionTotals struct {
Total Duration `json:"total"`
TotalTimeInMs int64 `json:"total_time_in_ms"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchercondition.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchercondition.go
index f83be6255f..8072c373a4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchercondition.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchercondition.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// WatcherCondition type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Conditions.ts#L47-L59
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Conditions.ts#L47-L59
type WatcherCondition struct {
Always *AlwaysCondition `json:"always,omitempty"`
ArrayCompare map[string]ArrayCompareCondition `json:"array_compare,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherinput.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherinput.go
index 2dac0c85a7..9bfd235c06 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherinput.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherinput.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -26,7 +26,7 @@ import (
// WatcherInput type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Input.ts#L90-L98
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Input.ts#L90-L98
type WatcherInput struct {
Chain *ChainInput `json:"chain,omitempty"`
Http *HttpInput `json:"http,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchernodestats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchernodestats.go
index e39d93b555..9745f01374 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchernodestats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchernodestats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// WatcherNodeStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/stats/types.ts#L33-L40
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/stats/types.ts#L33-L40
type WatcherNodeStats struct {
CurrentWatches []WatchRecordStats `json:"current_watches,omitempty"`
ExecutionThreadPool ExecutionThreadPool `json:"execution_thread_pool"`
@@ -79,7 +79,7 @@ func (s *WatcherNodeStats) UnmarshalJSON(data []byte) error {
}
case "watch_count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherstatusactions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherstatusactions.go
index eae9b56637..34f9a40414 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherstatusactions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherstatusactions.go
@@ -16,11 +16,11 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// WatcherStatusActions type alias.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Action.ts#L62-L62
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Action.ts#L62-L62
type WatcherStatusActions map[string]ActionStatus
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatch.go
index ebf66f592c..7be913fbee 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatch.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// WatcherWatch type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L400-L405
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L400-L405
type WatcherWatch struct {
Action map[string]Counter `json:"action,omitempty"`
Condition map[string]Counter `json:"condition,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatchtrigger.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatchtrigger.go
index c0695128ad..38790f519f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatchtrigger.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatchtrigger.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// WatcherWatchTrigger type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L407-L410
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L407-L410
type WatcherWatchTrigger struct {
All_ Counter `json:"_all"`
Schedule *WatcherWatchTriggerSchedule `json:"schedule,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatchtriggerschedule.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatchtriggerschedule.go
index 0c16bb80e2..39dc1524e6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatchtriggerschedule.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watcherwatchtriggerschedule.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// WatcherWatchTriggerSchedule type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L466-L469
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L466-L469
type WatcherWatchTriggerSchedule struct {
Active int64 `json:"active"`
All_ Counter `json:"_all"`
@@ -55,7 +55,7 @@ func (s *WatcherWatchTriggerSchedule) UnmarshalJSON(data []byte) error {
switch t {
case "active":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -80,7 +80,7 @@ func (s *WatcherWatchTriggerSchedule) UnmarshalJSON(data []byte) error {
}
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchrecord.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchrecord.go
index d281e0a530..fa81c6b093 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchrecord.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchrecord.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// WatchRecord type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/execute_watch/types.ts#L27-L39
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/execute_watch/types.ts#L27-L39
type WatchRecord struct {
Condition WatcherCondition `json:"condition"`
Input WatcherInput `json:"input"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchrecordqueuedstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchrecordqueuedstats.go
index b445f20fd6..12c80a6d94 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchrecordqueuedstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchrecordqueuedstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// WatchRecordQueuedStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/stats/types.ts#L50-L52
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/stats/types.ts#L50-L52
type WatchRecordQueuedStats struct {
ExecutionTime DateTime `json:"execution_time"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchrecordstats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchrecordstats.go
index d6851c8e4e..9ece4af98b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchrecordstats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchrecordstats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -32,7 +32,7 @@ import (
// WatchRecordStats type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/stats/types.ts#L54-L60
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/stats/types.ts#L54-L60
type WatchRecordStats struct {
ExecutedActions []string `json:"executed_actions,omitempty"`
ExecutionPhase executionphase.ExecutionPhase `json:"execution_phase"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchstatus.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchstatus.go
index a8e60f1f8c..36720d1af1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchstatus.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/watchstatus.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// WatchStatus type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Watch.ts#L49-L56
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Watch.ts#L49-L56
type WatchStatus struct {
Actions WatcherStatusActions `json:"actions"`
ExecutionState *string `json:"execution_state,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/webhookaction.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/webhookaction.go
index 36e7671e34..33ce9819ef 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/webhookaction.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/webhookaction.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -34,7 +34,7 @@ import (
// WebhookAction type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L293-L293
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L293-L293
type WebhookAction struct {
Auth *HttpInputAuthentication `json:"auth,omitempty"`
Body *string `json:"body,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/webhookresult.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/webhookresult.go
index 6d2c3bf36e..d842d215e2 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/webhookresult.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/webhookresult.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// WebhookResult type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/_types/Actions.ts#L295-L298
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/_types/Actions.ts#L295-L298
type WebhookResult struct {
Request HttpInputRequestResult `json:"request"`
Response *HttpInputResponseResult `json:"response,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedaverageaggregation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedaverageaggregation.go
index d41deb39a4..81e52d51c5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedaverageaggregation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedaverageaggregation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,12 +33,10 @@ import (
// WeightedAverageAggregation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L432-L446
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L437-L451
type WeightedAverageAggregation struct {
// Format A numeric response formatter.
- Format *string `json:"format,omitempty"`
- Meta Metadata `json:"meta,omitempty"`
- Name *string `json:"name,omitempty"`
+ Format *string `json:"format,omitempty"`
// Value Configuration for the field that provides the values.
Value *WeightedAverageValue `json:"value,omitempty"`
ValueType *valuetype.ValueType `json:"value_type,omitempty"`
@@ -73,23 +71,6 @@ func (s *WeightedAverageAggregation) UnmarshalJSON(data []byte) error {
}
s.Format = &o
- case "meta":
- if err := dec.Decode(&s.Meta); err != nil {
- return fmt.Errorf("%s | %w", "Meta", err)
- }
-
- case "name":
- var tmp json.RawMessage
- if err := dec.Decode(&tmp); err != nil {
- return fmt.Errorf("%s | %w", "Name", err)
- }
- o := string(tmp[:])
- o, err = strconv.Unquote(o)
- if err != nil {
- o = string(tmp[:])
- }
- s.Name = &o
-
case "value":
if err := dec.Decode(&s.Value); err != nil {
return fmt.Errorf("%s | %w", "Value", err)
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedaveragevalue.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedaveragevalue.go
index 325ad2fa06..8ad59f2137 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedaveragevalue.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedaveragevalue.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// WeightedAverageValue type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/metric.ts#L448-L458
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/metric.ts#L453-L463
type WeightedAverageValue struct {
// Field The field from which to extract the values or weights.
Field *string `json:"field,omitempty"`
@@ -61,7 +61,7 @@ func (s *WeightedAverageValue) UnmarshalJSON(data []byte) error {
}
case "missing":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedavgaggregate.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedavgaggregate.go
index 3f7ba86299..f2842b91ad 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedavgaggregate.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedavgaggregate.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// WeightedAvgAggregate type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/aggregations/Aggregate.ts#L212-L216
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/aggregations/Aggregate.ts#L212-L216
type WeightedAvgAggregate struct {
Meta Metadata `json:"meta,omitempty"`
// Value The metric value. A missing value generally means that there was no data to
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedtokensquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedtokensquery.go
index ac21952c5c..b95b36016b 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedtokensquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weightedtokensquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// WeightedTokensQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/WeightedTokensQuery.ts#L27-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/WeightedTokensQuery.ts#L27-L32
type WeightedTokensQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -62,7 +62,7 @@ func (s *WeightedTokensQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weights.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weights.go
index 032aa84f1f..b9a7e84a01 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weights.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/weights.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// Weights type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/put_trained_model/types.ts#L108-L110
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/put_trained_model/types.ts#L108-L110
type Weights struct {
Weights Float64 `json:"weights"`
}
@@ -52,7 +52,7 @@ func (s *Weights) UnmarshalJSON(data []byte) error {
switch t {
case "weights":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/whitespaceanalyzer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/whitespaceanalyzer.go
index e7a20e033d..5bfdef6716 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/whitespaceanalyzer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/whitespaceanalyzer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -30,7 +30,7 @@ import (
// WhitespaceAnalyzer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/analyzers.ts#L108-L111
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/analyzers.ts#L108-L111
type WhitespaceAnalyzer struct {
Type string `json:"type,omitempty"`
Version *string `json:"version,omitempty"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/whitespacetokenizer.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/whitespacetokenizer.go
index 675753bfc2..0a3a9b2a60 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/whitespacetokenizer.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/whitespacetokenizer.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// WhitespaceTokenizer type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/tokenizers.ts#L115-L118
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/tokenizers.ts#L115-L118
type WhitespaceTokenizer struct {
MaxTokenLength *int `json:"max_token_length,omitempty"`
Type string `json:"type,omitempty"`
@@ -55,7 +55,7 @@ func (s *WhitespaceTokenizer) UnmarshalJSON(data []byte) error {
case "max_token_length":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wildcardproperty.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wildcardproperty.go
index 85ef5c8aa4..fc225405b8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wildcardproperty.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wildcardproperty.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// WildcardProperty type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/mapping/core.ts#L277-L284
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/mapping/core.ts#L279-L286
type WildcardProperty struct {
CopyTo []string `json:"copy_to,omitempty"`
DocValues *bool `json:"doc_values,omitempty"`
@@ -81,7 +81,7 @@ func (s *WildcardProperty) UnmarshalJSON(data []byte) error {
}
case "doc_values":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -106,7 +106,7 @@ func (s *WildcardProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -397,6 +397,12 @@ func (s *WildcardProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Fields[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Fields[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -408,7 +414,7 @@ func (s *WildcardProperty) UnmarshalJSON(data []byte) error {
case "ignore_above":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -449,7 +455,7 @@ func (s *WildcardProperty) UnmarshalJSON(data []byte) error {
refs := make(map[string]json.RawMessage, 0)
dec.Decode(&refs)
for key, message := range refs {
- kind := make(map[string]interface{})
+ kind := make(map[string]any)
buf := bytes.NewReader(message)
localDec := json.NewDecoder(buf)
localDec.Decode(&kind)
@@ -740,6 +746,12 @@ func (s *WildcardProperty) UnmarshalJSON(data []byte) error {
return err
}
s.Properties[key] = oo
+ case "icu_collation_keyword":
+ oo := NewIcuCollationProperty()
+ if err := localDec.Decode(&oo); err != nil {
+ return err
+ }
+ s.Properties[key] = oo
default:
oo := new(Property)
if err := localDec.Decode(&oo); err != nil {
@@ -762,7 +774,7 @@ func (s *WildcardProperty) UnmarshalJSON(data []byte) error {
s.Similarity = &o
case "store":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wildcardquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wildcardquery.go
index d6aa4d260d..109df1b7ac 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wildcardquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wildcardquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// WildcardQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L268-L285
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/term.ts#L268-L285
type WildcardQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -79,7 +79,7 @@ func (s *WildcardQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -95,7 +95,7 @@ func (s *WildcardQuery) UnmarshalJSON(data []byte) error {
}
case "case_insensitive":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wktgeobounds.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wktgeobounds.go
index 3865db7cea..9328985b7d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wktgeobounds.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wktgeobounds.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// WktGeoBounds type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/Geo.ts#L150-L152
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/Geo.ts#L150-L152
type WktGeoBounds struct {
Wkt string `json:"wkt"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/worddelimitergraphtokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/worddelimitergraphtokenfilter.go
index b9b1fa4df6..078e0912e0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/worddelimitergraphtokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/worddelimitergraphtokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// WordDelimiterGraphTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L149-L166
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L151-L168
type WordDelimiterGraphTokenFilter struct {
AdjustOffsets *bool `json:"adjust_offsets,omitempty"`
CatenateAll *bool `json:"catenate_all,omitempty"`
@@ -68,7 +68,7 @@ func (s *WordDelimiterGraphTokenFilter) UnmarshalJSON(data []byte) error {
switch t {
case "adjust_offsets":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -82,7 +82,7 @@ func (s *WordDelimiterGraphTokenFilter) UnmarshalJSON(data []byte) error {
}
case "catenate_all":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -96,7 +96,7 @@ func (s *WordDelimiterGraphTokenFilter) UnmarshalJSON(data []byte) error {
}
case "catenate_numbers":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -110,7 +110,7 @@ func (s *WordDelimiterGraphTokenFilter) UnmarshalJSON(data []byte) error {
}
case "catenate_words":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -124,7 +124,7 @@ func (s *WordDelimiterGraphTokenFilter) UnmarshalJSON(data []byte) error {
}
case "generate_number_parts":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -138,7 +138,7 @@ func (s *WordDelimiterGraphTokenFilter) UnmarshalJSON(data []byte) error {
}
case "generate_word_parts":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -152,7 +152,7 @@ func (s *WordDelimiterGraphTokenFilter) UnmarshalJSON(data []byte) error {
}
case "ignore_keywords":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -188,7 +188,7 @@ func (s *WordDelimiterGraphTokenFilter) UnmarshalJSON(data []byte) error {
s.ProtectedWordsPath = &o
case "split_on_case_change":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -202,7 +202,7 @@ func (s *WordDelimiterGraphTokenFilter) UnmarshalJSON(data []byte) error {
}
case "split_on_numerics":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -216,7 +216,7 @@ func (s *WordDelimiterGraphTokenFilter) UnmarshalJSON(data []byte) error {
}
case "stem_english_possessive":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/worddelimitertokenfilter.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/worddelimitertokenfilter.go
index 0a89c21ecc..a99dea3811 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/worddelimitertokenfilter.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/worddelimitertokenfilter.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// WordDelimiterTokenFilter type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/analysis/token_filters.ts#L132-L147
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/analysis/token_filters.ts#L134-L149
type WordDelimiterTokenFilter struct {
CatenateAll *bool `json:"catenate_all,omitempty"`
CatenateNumbers *bool `json:"catenate_numbers,omitempty"`
@@ -66,7 +66,7 @@ func (s *WordDelimiterTokenFilter) UnmarshalJSON(data []byte) error {
switch t {
case "catenate_all":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -80,7 +80,7 @@ func (s *WordDelimiterTokenFilter) UnmarshalJSON(data []byte) error {
}
case "catenate_numbers":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -94,7 +94,7 @@ func (s *WordDelimiterTokenFilter) UnmarshalJSON(data []byte) error {
}
case "catenate_words":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,7 +108,7 @@ func (s *WordDelimiterTokenFilter) UnmarshalJSON(data []byte) error {
}
case "generate_number_parts":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -122,7 +122,7 @@ func (s *WordDelimiterTokenFilter) UnmarshalJSON(data []byte) error {
}
case "generate_word_parts":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -158,7 +158,7 @@ func (s *WordDelimiterTokenFilter) UnmarshalJSON(data []byte) error {
s.ProtectedWordsPath = &o
case "split_on_case_change":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -172,7 +172,7 @@ func (s *WordDelimiterTokenFilter) UnmarshalJSON(data []byte) error {
}
case "split_on_numerics":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -186,7 +186,7 @@ func (s *WordDelimiterTokenFilter) UnmarshalJSON(data []byte) error {
}
case "stem_english_possessive":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wrapperquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wrapperquery.go
index fcdfe038bd..d324098769 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wrapperquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/wrapperquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// WrapperQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/abstractions.ts#L481-L487
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_types/query_dsl/abstractions.ts#L481-L487
type WrapperQuery struct {
// Boost Floating point number used to decrease or increase the relevance scores of
// the query.
@@ -61,7 +61,7 @@ func (s *WrapperQuery) UnmarshalJSON(data []byte) error {
switch t {
case "boost":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/writeoperation.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/writeoperation.go
index 9546edd4a1..f547b70d09 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/writeoperation.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/writeoperation.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -33,7 +33,7 @@ import (
// WriteOperation type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_global/bulk/types.ts#L109-L128
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/_global/bulk/types.ts#L109-L128
type WriteOperation struct {
// DynamicTemplates A map from the full name of fields to the name of dynamic templates.
// Defaults to an empty map.
@@ -91,7 +91,7 @@ func (s *WriteOperation) UnmarshalJSON(data []byte) error {
}
case "if_primary_term":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -128,7 +128,7 @@ func (s *WriteOperation) UnmarshalJSON(data []byte) error {
s.Pipeline = &o
case "require_alias":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackdatafeed.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackdatafeed.go
index 14da7fb97c..2d9ca00993 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackdatafeed.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackdatafeed.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// XpackDatafeed type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L77-L79
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L77-L79
type XpackDatafeed struct {
Count int64 `json:"count"`
}
@@ -52,7 +52,7 @@ func (s *XpackDatafeed) UnmarshalJSON(data []byte) error {
switch t {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackfeature.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackfeature.go
index adc5a2db4d..794eab2906 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackfeature.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackfeature.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// XpackFeature type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/info/types.ts#L77-L82
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/info/types.ts#L77-L82
type XpackFeature struct {
Available bool `json:"available"`
Description *string `json:"description,omitempty"`
@@ -55,7 +55,7 @@ func (s *XpackFeature) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -81,7 +81,7 @@ func (s *XpackFeature) UnmarshalJSON(data []byte) error {
s.Description = &o
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackfeatures.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackfeatures.go
index 578a00db69..abbdd4f3d5 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackfeatures.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackfeatures.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
// XpackFeatures type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/info/types.ts#L42-L75
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/info/types.ts#L42-L75
type XpackFeatures struct {
AggregateMetric XpackFeature `json:"aggregate_metric"`
Analytics XpackFeature `json:"analytics"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackquery.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackquery.go
index 8cd2de0eda..e536a60312 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackquery.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackquery.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// XpackQuery type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L259-L264
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L259-L264
type XpackQuery struct {
Count *int `json:"count,omitempty"`
Failed *int `json:"failed,omitempty"`
@@ -56,7 +56,7 @@ func (s *XpackQuery) UnmarshalJSON(data []byte) error {
case "count":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -72,7 +72,7 @@ func (s *XpackQuery) UnmarshalJSON(data []byte) error {
case "failed":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -88,7 +88,7 @@ func (s *XpackQuery) UnmarshalJSON(data []byte) error {
case "paging":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -104,7 +104,7 @@ func (s *XpackQuery) UnmarshalJSON(data []byte) error {
case "total":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackrealm.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackrealm.go
index faaa2e29d0..5824a098af 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackrealm.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackrealm.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// XpackRealm type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L417-L426
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L417-L426
type XpackRealm struct {
Available bool `json:"available"`
Cache []RealmCache `json:"cache,omitempty"`
@@ -61,7 +61,7 @@ func (s *XpackRealm) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -80,7 +80,7 @@ func (s *XpackRealm) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackrolemapping.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackrolemapping.go
index 744c3b56e0..871b67f8df 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackrolemapping.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackrolemapping.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// XpackRoleMapping type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L270-L273
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L270-L273
type XpackRoleMapping struct {
Enabled int `json:"enabled"`
Size int `json:"size"`
@@ -54,7 +54,7 @@ func (s *XpackRoleMapping) UnmarshalJSON(data []byte) error {
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -70,7 +70,7 @@ func (s *XpackRoleMapping) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackruntimefieldtypes.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackruntimefieldtypes.go
index 37fa50f666..9ff530a8e0 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackruntimefieldtypes.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/xpackruntimefieldtypes.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// XpackRuntimeFieldTypes type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/types.ts#L275-L277
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/types.ts#L275-L277
type XpackRuntimeFieldTypes struct {
Available bool `json:"available"`
Enabled bool `json:"enabled"`
@@ -54,7 +54,7 @@ func (s *XpackRuntimeFieldTypes) UnmarshalJSON(data []byte) error {
switch t {
case "available":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -68,7 +68,7 @@ func (s *XpackRuntimeFieldTypes) UnmarshalJSON(data []byte) error {
}
case "enabled":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/zeroshotclassificationinferenceoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/zeroshotclassificationinferenceoptions.go
index 6b5b3b15dc..b93c8deb2d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/zeroshotclassificationinferenceoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/zeroshotclassificationinferenceoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ZeroShotClassificationInferenceOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L201-L222
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L201-L222
type ZeroShotClassificationInferenceOptions struct {
// ClassificationLabels The zero shot classification labels indicating entailment, neutral, and
// contradiction
@@ -88,7 +88,7 @@ func (s *ZeroShotClassificationInferenceOptions) UnmarshalJSON(data []byte) erro
}
case "multi_label":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/zeroshotclassificationinferenceupdateoptions.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/zeroshotclassificationinferenceupdateoptions.go
index 7cad8d3e00..010c8a1d25 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/zeroshotclassificationinferenceupdateoptions.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/types/zeroshotclassificationinferenceupdateoptions.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package types
@@ -31,7 +31,7 @@ import (
// ZeroShotClassificationInferenceUpdateOptions type.
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/ml/_types/inference.ts#L374-L383
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/ml/_types/inference.ts#L374-L383
type ZeroShotClassificationInferenceUpdateOptions struct {
// Labels The labels to predict.
Labels []string `json:"labels"`
@@ -66,7 +66,7 @@ func (s *ZeroShotClassificationInferenceUpdateOptions) UnmarshalJSON(data []byte
}
case "multi_label":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/ackwatch/ack_watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/ackwatch/ack_watch.go
index 868ac16456..c77070b241 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/ackwatch/ack_watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/ackwatch/ack_watch.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Acknowledges a watch, manually throttling the execution of the watch's
// actions.
@@ -28,9 +28,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -290,7 +290,7 @@ func (r AckWatch) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -335,3 +335,47 @@ func (r *AckWatch) ActionId(actionid string) *AckWatch {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *AckWatch) ErrorTrace(errortrace bool) *AckWatch {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *AckWatch) FilterPath(filterpaths ...string) *AckWatch {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *AckWatch) Human(human bool) *AckWatch {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *AckWatch) Pretty(pretty bool) *AckWatch {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/ackwatch/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/ackwatch/response.go
index 5377e4a091..621512fc7d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/ackwatch/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/ackwatch/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package ackwatch
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package ackwatch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/ack_watch/WatcherAckWatchResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/ack_watch/WatcherAckWatchResponse.ts#L22-L24
type Response struct {
Status types.WatchStatus `json:"status"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/activatewatch/activate_watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/activatewatch/activate_watch.go
index ecddb36cc3..d1625e7ff4 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/activatewatch/activate_watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/activatewatch/activate_watch.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Activates a currently inactive watch.
package activatewatch
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r ActivateWatch) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -300,3 +300,47 @@ func (r *ActivateWatch) _watchid(watchid string) *ActivateWatch {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ActivateWatch) ErrorTrace(errortrace bool) *ActivateWatch {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ActivateWatch) FilterPath(filterpaths ...string) *ActivateWatch {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ActivateWatch) Human(human bool) *ActivateWatch {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ActivateWatch) Pretty(pretty bool) *ActivateWatch {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/activatewatch/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/activatewatch/response.go
index 45d0151ea6..8973971232 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/activatewatch/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/activatewatch/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package activatewatch
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package activatewatch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/activate_watch/WatcherActivateWatchResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/activate_watch/WatcherActivateWatchResponse.ts#L22-L24
type Response struct {
Status types.ActivationStatus `json:"status"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deactivatewatch/deactivate_watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deactivatewatch/deactivate_watch.go
index 42153a9933..f649a29d86 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deactivatewatch/deactivate_watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deactivatewatch/deactivate_watch.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Deactivates a currently active watch.
package deactivatewatch
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -264,7 +264,7 @@ func (r DeactivateWatch) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -300,3 +300,47 @@ func (r *DeactivateWatch) _watchid(watchid string) *DeactivateWatch {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeactivateWatch) ErrorTrace(errortrace bool) *DeactivateWatch {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeactivateWatch) FilterPath(filterpaths ...string) *DeactivateWatch {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeactivateWatch) Human(human bool) *DeactivateWatch {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeactivateWatch) Pretty(pretty bool) *DeactivateWatch {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deactivatewatch/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deactivatewatch/response.go
index 20bd55dd6d..e1a990e817 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deactivatewatch/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deactivatewatch/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deactivatewatch
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package deactivatewatch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/deactivate_watch/DeactivateWatchResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/deactivate_watch/DeactivateWatchResponse.ts#L22-L24
type Response struct {
Status types.ActivationStatus `json:"status"`
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deletewatch/delete_watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deletewatch/delete_watch.go
index bf98e4c6b3..bed0a92eea 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deletewatch/delete_watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deletewatch/delete_watch.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Removes a watch from Watcher.
package deletewatch
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r DeleteWatch) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *DeleteWatch) _id(id string) *DeleteWatch {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *DeleteWatch) ErrorTrace(errortrace bool) *DeleteWatch {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *DeleteWatch) FilterPath(filterpaths ...string) *DeleteWatch {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *DeleteWatch) Human(human bool) *DeleteWatch {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *DeleteWatch) Pretty(pretty bool) *DeleteWatch {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deletewatch/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deletewatch/response.go
index 722699abdf..6f87db6a10 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deletewatch/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deletewatch/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package deletewatch
// Response holds the response body struct for the package deletewatch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/delete_watch/DeleteWatchResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/delete_watch/DeleteWatchResponse.ts#L22-L24
type Response struct {
Found bool `json:"found"`
Id_ string `json:"_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch/execute_watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch/execute_watch.go
index 2b47d134b7..f3a1ae3508 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch/execute_watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch/execute_watch.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Forces the execution of a stored watch.
package executewatch
@@ -333,6 +333,50 @@ func (r *ExecuteWatch) Debug(debug bool) *ExecuteWatch {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *ExecuteWatch) ErrorTrace(errortrace bool) *ExecuteWatch {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *ExecuteWatch) FilterPath(filterpaths ...string) *ExecuteWatch {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *ExecuteWatch) Human(human bool) *ExecuteWatch {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *ExecuteWatch) Pretty(pretty bool) *ExecuteWatch {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// ActionModes Determines how to handle the watch actions as part of the watch execution.
// API name: action_modes
func (r *ExecuteWatch) ActionModes(actionmodes map[string]actionexecutionmode.ActionExecutionMode) *ExecuteWatch {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch/request.go
index d5d6ae533c..f9b6fc0119 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package executewatch
@@ -30,7 +30,7 @@ import (
// Request holds the request body struct for the package executewatch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L79
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L79
type Request struct {
// ActionModes Determines how to handle the watch actions as part of the watch execution.
@@ -61,6 +61,7 @@ func NewRequest() *Request {
ActionModes: make(map[string]actionexecutionmode.ActionExecutionMode, 0),
AlternativeInput: make(map[string]json.RawMessage, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch/response.go
index 0f8dd41a1f..87f2ae0f96 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package executewatch
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package executewatch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/execute_watch/WatcherExecuteWatchResponse.ts#L23-L25
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/execute_watch/WatcherExecuteWatchResponse.ts#L23-L25
type Response struct {
Id_ string `json:"_id"`
WatchRecord types.WatchRecord `json:"watch_record"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/getsettings/get_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/getsettings/get_settings.go
index 301334e488..d8066cc0a6 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/getsettings/get_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/getsettings/get_settings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieve settings for the watcher system index
package getsettings
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strings"
@@ -203,7 +202,7 @@ func (r GetSettings) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/getwatch/get_watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/getwatch/get_watch.go
index 266001f474..f2df59fc76 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/getwatch/get_watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/getwatch/get_watch.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves a watch by its ID.
package getwatch
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -262,7 +262,7 @@ func (r GetWatch) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -298,3 +298,47 @@ func (r *GetWatch) _id(id string) *GetWatch {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *GetWatch) ErrorTrace(errortrace bool) *GetWatch {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *GetWatch) FilterPath(filterpaths ...string) *GetWatch {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *GetWatch) Human(human bool) *GetWatch {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *GetWatch) Pretty(pretty bool) *GetWatch {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/getwatch/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/getwatch/response.go
index 354b548446..bf069be19a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/getwatch/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/getwatch/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package getwatch
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package getwatch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/get_watch/GetWatchResponse.ts#L24-L34
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/get_watch/GetWatchResponse.ts#L24-L34
type Response struct {
Found bool `json:"found"`
Id_ string `json:"_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/putwatch/put_watch.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/putwatch/put_watch.go
index 5b0ffabdfa..69da2bd315 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/putwatch/put_watch.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/putwatch/put_watch.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Creates a new watch, or updates an existing one.
package putwatch
@@ -349,6 +349,50 @@ func (r *PutWatch) Version(versionnumber string) *PutWatch {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *PutWatch) ErrorTrace(errortrace bool) *PutWatch {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *PutWatch) FilterPath(filterpaths ...string) *PutWatch {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *PutWatch) Human(human bool) *PutWatch {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *PutWatch) Pretty(pretty bool) *PutWatch {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// API name: actions
func (r *PutWatch) Actions(actions map[string]types.WatcherAction) *PutWatch {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/putwatch/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/putwatch/request.go
index ea4dea593d..4c4f58f32c 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/putwatch/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/putwatch/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putwatch
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package putwatch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/put_watch/WatcherPutWatchRequest.ts#L30-L53
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/put_watch/WatcherPutWatchRequest.ts#L30-L53
type Request struct {
Actions map[string]types.WatcherAction `json:"actions,omitempty"`
Condition *types.WatcherCondition `json:"condition,omitempty"`
@@ -49,6 +49,7 @@ func NewRequest() *Request {
r := &Request{
Actions: make(map[string]types.WatcherAction, 0),
}
+
return r
}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/putwatch/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/putwatch/response.go
index 7b976dc83e..b9f22af9ef 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/putwatch/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/putwatch/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package putwatch
// Response holds the response body struct for the package putwatch
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/put_watch/WatcherPutWatchResponse.ts#L23-L31
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/put_watch/WatcherPutWatchResponse.ts#L23-L31
type Response struct {
Created bool `json:"created"`
Id_ string `json:"_id"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/querywatches/query_watches.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/querywatches/query_watches.go
index 30001e59de..9f90202452 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/querywatches/query_watches.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/querywatches/query_watches.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves stored watches.
package querywatches
@@ -30,6 +30,7 @@ import (
"io"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -293,6 +294,50 @@ func (r *QueryWatches) Header(key, value string) *QueryWatches {
return r
}
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *QueryWatches) ErrorTrace(errortrace bool) *QueryWatches {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *QueryWatches) FilterPath(filterpaths ...string) *QueryWatches {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *QueryWatches) Human(human bool) *QueryWatches {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *QueryWatches) Pretty(pretty bool) *QueryWatches {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
+
// From The offset from the first result to fetch. Needs to be non-negative.
// API name: from
func (r *QueryWatches) From(from int) *QueryWatches {
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/querywatches/request.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/querywatches/request.go
index 7699b2d5af..53e35495e7 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/querywatches/request.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/querywatches/request.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package querywatches
@@ -33,7 +33,7 @@ import (
// Request holds the request body struct for the package querywatches
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts#L25-L48
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts#L25-L48
type Request struct {
// From The offset from the first result to fetch. Needs to be non-negative.
@@ -51,6 +51,7 @@ type Request struct {
// NewRequest returns a Request
func NewRequest() *Request {
r := &Request{}
+
return r
}
@@ -82,7 +83,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "from":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
@@ -108,7 +109,7 @@ func (s *Request) UnmarshalJSON(data []byte) error {
case "size":
- var tmp interface{}
+ var tmp any
dec.Decode(&tmp)
switch v := tmp.(type) {
case string:
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/querywatches/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/querywatches/response.go
index ea50221a40..bf55f72a7a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/querywatches/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/querywatches/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package querywatches
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package querywatches
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/query_watches/WatcherQueryWatchesResponse.ts#L23-L28
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/query_watches/WatcherQueryWatchesResponse.ts#L23-L28
type Response struct {
Count int `json:"count"`
Watches []types.QueryWatch `json:"watches"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/start/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/start/response.go
index 31fba53d22..0e36f3fbd1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/start/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/start/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package start
// Response holds the response body struct for the package start
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/start/WatcherStartResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/start/WatcherStartResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/start/start.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/start/start.go
index 9b87624bcd..37b44bd437 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/start/start.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/start/start.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Starts Watcher if it is not already running.
package start
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r Start) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *Start) Header(key, value string) *Start {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Start) ErrorTrace(errortrace bool) *Start {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Start) FilterPath(filterpaths ...string) *Start {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Start) Human(human bool) *Start {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Start) Pretty(pretty bool) *Start {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stats/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stats/response.go
index 622a69e083..669a15a9c1 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stats/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stats/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stats
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package stats
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/stats/WatcherStatsResponse.ts#L24-L32
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/stats/WatcherStatsResponse.ts#L24-L32
type Response struct {
ClusterName string `json:"cluster_name"`
ManuallyStopped bool `json:"manually_stopped"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stats/stats.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stats/stats.go
index 6da293d086..63f3426377 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stats/stats.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stats/stats.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves the current Watcher metrics.
package stats
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -268,7 +267,7 @@ func (r Stats) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -312,3 +311,47 @@ func (r *Stats) EmitStacktraces(emitstacktraces bool) *Stats {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Stats) ErrorTrace(errortrace bool) *Stats {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Stats) FilterPath(filterpaths ...string) *Stats {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Stats) Human(human bool) *Stats {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Stats) Pretty(pretty bool) *Stats {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stop/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stop/response.go
index 7bbeab1603..0f55e2687f 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stop/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stop/response.go
@@ -16,13 +16,13 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package stop
// Response holds the response body struct for the package stop
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/watcher/stop/WatcherStopResponse.ts#L22-L24
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/watcher/stop/WatcherStopResponse.ts#L22-L24
type Response struct {
// Acknowledged For a successful response, this value is always true. On failure, an
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stop/stop.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stop/stop.go
index 14df90e94b..5bdfc6ad1a 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stop/stop.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stop/stop.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Stops Watcher if it is running.
package stop
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r Stop) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -275,3 +275,47 @@ func (r *Stop) Header(key, value string) *Stop {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Stop) ErrorTrace(errortrace bool) *Stop {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Stop) FilterPath(filterpaths ...string) *Stop {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Stop) Human(human bool) *Stop {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Stop) Pretty(pretty bool) *Stop {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/updatesettings/update_settings.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/updatesettings/update_settings.go
index e6fb1b9559..2c39bc29ff 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/updatesettings/update_settings.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/watcher/updatesettings/update_settings.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Update settings for the watcher system index
package updatesettings
@@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strings"
@@ -203,7 +202,7 @@ func (r UpdateSettings) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/info/info.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/info/info.go
index 1fd2e49646..0097aa178d 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/info/info.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/info/info.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves information about the installed X-Pack features.
package info
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"strconv"
@@ -247,7 +246,7 @@ func (r Info) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -304,3 +303,34 @@ func (r *Info) Human(human bool) *Info {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Info) ErrorTrace(errortrace bool) *Info {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Info) FilterPath(filterpaths ...string) *Info {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Info) Pretty(pretty bool) *Info {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/info/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/info/response.go
index 9a093a5f93..5343351513 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/info/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/info/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package info
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package info
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/info/XPackInfoResponse.ts#L22-L29
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/info/XPackInfoResponse.ts#L22-L29
type Response struct {
Build types.BuildInformation `json:"build"`
Features types.XpackFeatures `json:"features"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/usage/response.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/usage/response.go
index f230b9f155..5d9c191dbc 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/usage/response.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/usage/response.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
package usage
@@ -26,7 +26,7 @@ import (
// Response holds the response body struct for the package usage
//
-// https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/xpack/usage/XPackUsageResponse.ts#L43-L79
+// https://github.com/elastic/elasticsearch-specification/blob/07bf82537a186562d8699685e3704ea338b268ef/specification/xpack/usage/XPackUsageResponse.ts#L43-L79
type Response struct {
AggregateMetric types.Base `json:"aggregate_metric"`
Analytics types.Analytics `json:"analytics"`
diff --git a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/usage/usage.go b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/usage/usage.go
index fdbeace030..2424a02af8 100644
--- a/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/usage/usage.go
+++ b/vendor/github.com/elastic/go-elasticsearch/v8/typedapi/xpack/usage/usage.go
@@ -16,7 +16,7 @@
// under the License.
// Code generated from the elasticsearch-specification DO NOT EDIT.
-// https://github.com/elastic/elasticsearch-specification/tree/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1
+// https://github.com/elastic/elasticsearch-specification/tree/07bf82537a186562d8699685e3704ea338b268ef
// Retrieves usage information about the installed X-Pack features.
package usage
@@ -27,9 +27,9 @@ import (
"errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/elastic/elastic-transport-go/v8/elastictransport"
@@ -248,7 +248,7 @@ func (r Usage) IsSuccess(providedCtx context.Context) (bool, error) {
if err != nil {
return false, err
}
- io.Copy(ioutil.Discard, res.Body)
+ io.Copy(io.Discard, res.Body)
err = res.Body.Close()
if err != nil {
return false, err
@@ -284,3 +284,47 @@ func (r *Usage) MasterTimeout(duration string) *Usage {
return r
}
+
+// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors
+// when they occur.
+// API name: error_trace
+func (r *Usage) ErrorTrace(errortrace bool) *Usage {
+ r.values.Set("error_trace", strconv.FormatBool(errortrace))
+
+ return r
+}
+
+// FilterPath Comma-separated list of filters in dot notation which reduce the response
+// returned by Elasticsearch.
+// API name: filter_path
+func (r *Usage) FilterPath(filterpaths ...string) *Usage {
+ tmp := []string{}
+ for _, item := range filterpaths {
+ tmp = append(tmp, fmt.Sprintf("%v", item))
+ }
+ r.values.Set("filter_path", strings.Join(tmp, ","))
+
+ return r
+}
+
+// Human When set to `true` will return statistics in a format suitable for humans.
+// For example `"exists_time": "1h"` for humans and
+// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
+// readable values will be omitted. This makes sense for responses being
+// consumed
+// only by machines.
+// API name: human
+func (r *Usage) Human(human bool) *Usage {
+ r.values.Set("human", strconv.FormatBool(human))
+
+ return r
+}
+
+// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
+// this option for debugging only.
+// API name: pretty
+func (r *Usage) Pretty(pretty bool) *Usage {
+ r.values.Set("pretty", strconv.FormatBool(pretty))
+
+ return r
+}
diff --git a/vendor/golang.org/x/sys/unix/asm_zos_s390x.s b/vendor/golang.org/x/sys/unix/asm_zos_s390x.s
index 2f67ba86d5..813dfad7d2 100644
--- a/vendor/golang.org/x/sys/unix/asm_zos_s390x.s
+++ b/vendor/golang.org/x/sys/unix/asm_zos_s390x.s
@@ -9,9 +9,11 @@
#define PSALAA 1208(R0)
#define GTAB64(x) 80(x)
#define LCA64(x) 88(x)
+#define SAVSTACK_ASYNC(x) 336(x) // in the LCA
#define CAA(x) 8(x)
-#define EDCHPXV(x) 1016(x) // in the CAA
-#define SAVSTACK_ASYNC(x) 336(x) // in the LCA
+#define CEECAATHDID(x) 976(x) // in the CAA
+#define EDCHPXV(x) 1016(x) // in the CAA
+#define GOCB(x) 1104(x) // in the CAA
// SS_*, where x=SAVSTACK_ASYNC
#define SS_LE(x) 0(x)
@@ -19,405 +21,362 @@
#define SS_ERRNO(x) 16(x)
#define SS_ERRNOJR(x) 20(x)
-#define LE_CALL BYTE $0x0D; BYTE $0x76; // BL R7, R6
+// Function Descriptor Offsets
+#define __errno 0x156*16
+#define __err2ad 0x16C*16
-TEXT ·clearErrno(SB),NOSPLIT,$0-0
- BL addrerrno<>(SB)
- MOVD $0, 0(R3)
+// Call Instructions
+#define LE_CALL BYTE $0x0D; BYTE $0x76 // BL R7, R6
+#define SVC_LOAD BYTE $0x0A; BYTE $0x08 // SVC 08 LOAD
+#define SVC_DELETE BYTE $0x0A; BYTE $0x09 // SVC 09 DELETE
+
+DATA zosLibVec<>(SB)/8, $0
+GLOBL zosLibVec<>(SB), NOPTR, $8
+
+TEXT ·initZosLibVec(SB), NOSPLIT|NOFRAME, $0-0
+ MOVW PSALAA, R8
+ MOVD LCA64(R8), R8
+ MOVD CAA(R8), R8
+ MOVD EDCHPXV(R8), R8
+ MOVD R8, zosLibVec<>(SB)
+ RET
+
+TEXT ·GetZosLibVec(SB), NOSPLIT|NOFRAME, $0-0
+ MOVD zosLibVec<>(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+TEXT ·clearErrno(SB), NOSPLIT, $0-0
+ BL addrerrno<>(SB)
+ MOVD $0, 0(R3)
RET
// Returns the address of errno in R3.
-TEXT addrerrno<>(SB),NOSPLIT|NOFRAME,$0-0
+TEXT addrerrno<>(SB), NOSPLIT|NOFRAME, $0-0
// Get library control area (LCA).
- MOVW PSALAA, R8
- MOVD LCA64(R8), R8
+ MOVW PSALAA, R8
+ MOVD LCA64(R8), R8
// Get __errno FuncDesc.
- MOVD CAA(R8), R9
- MOVD EDCHPXV(R9), R9
- ADD $(0x156*16), R9
- LMG 0(R9), R5, R6
+ MOVD CAA(R8), R9
+ MOVD EDCHPXV(R9), R9
+ ADD $(__errno), R9
+ LMG 0(R9), R5, R6
// Switch to saved LE stack.
- MOVD SAVSTACK_ASYNC(R8), R9
- MOVD 0(R9), R4
- MOVD $0, 0(R9)
+ MOVD SAVSTACK_ASYNC(R8), R9
+ MOVD 0(R9), R4
+ MOVD $0, 0(R9)
// Call __errno function.
LE_CALL
NOPH
// Switch back to Go stack.
- XOR R0, R0 // Restore R0 to $0.
- MOVD R4, 0(R9) // Save stack pointer.
+ XOR R0, R0 // Restore R0 to $0.
+ MOVD R4, 0(R9) // Save stack pointer.
RET
-TEXT ·syscall_syscall(SB),NOSPLIT,$0-56
- BL runtime·entersyscall(SB)
- MOVD a1+8(FP), R1
- MOVD a2+16(FP), R2
- MOVD a3+24(FP), R3
+// func svcCall(fnptr unsafe.Pointer, argv *unsafe.Pointer, dsa *uint64)
+TEXT ·svcCall(SB), NOSPLIT, $0
+ BL runtime·save_g(SB) // Save g and stack pointer
+ MOVW PSALAA, R8
+ MOVD LCA64(R8), R8
+ MOVD SAVSTACK_ASYNC(R8), R9
+ MOVD R15, 0(R9)
- // Get library control area (LCA).
- MOVW PSALAA, R8
- MOVD LCA64(R8), R8
+ MOVD argv+8(FP), R1 // Move function arguments into registers
+ MOVD dsa+16(FP), g
+ MOVD fnptr+0(FP), R15
- // Get function.
- MOVD CAA(R8), R9
- MOVD EDCHPXV(R9), R9
- MOVD trap+0(FP), R5
- SLD $4, R5
- ADD R5, R9
- LMG 0(R9), R5, R6
+ BYTE $0x0D // Branch to function
+ BYTE $0xEF
- // Restore LE stack.
- MOVD SAVSTACK_ASYNC(R8), R9
- MOVD 0(R9), R4
- MOVD $0, 0(R9)
+ BL runtime·load_g(SB) // Restore g and stack pointer
+ MOVW PSALAA, R8
+ MOVD LCA64(R8), R8
+ MOVD SAVSTACK_ASYNC(R8), R9
+ MOVD 0(R9), R15
- // Call function.
- LE_CALL
- NOPH
- XOR R0, R0 // Restore R0 to $0.
- MOVD R4, 0(R9) // Save stack pointer.
-
- MOVD R3, r1+32(FP)
- MOVD R0, r2+40(FP)
- MOVD R0, err+48(FP)
- MOVW R3, R4
- CMP R4, $-1
- BNE done
- BL addrerrno<>(SB)
- MOVWZ 0(R3), R3
- MOVD R3, err+48(FP)
-done:
- BL runtime·exitsyscall(SB)
RET
-TEXT ·syscall_rawsyscall(SB),NOSPLIT,$0-56
- MOVD a1+8(FP), R1
- MOVD a2+16(FP), R2
- MOVD a3+24(FP), R3
-
- // Get library control area (LCA).
- MOVW PSALAA, R8
- MOVD LCA64(R8), R8
-
- // Get function.
- MOVD CAA(R8), R9
- MOVD EDCHPXV(R9), R9
- MOVD trap+0(FP), R5
- SLD $4, R5
- ADD R5, R9
- LMG 0(R9), R5, R6
+// func svcLoad(name *byte) unsafe.Pointer
+TEXT ·svcLoad(SB), NOSPLIT, $0
+ MOVD R15, R2 // Save go stack pointer
+ MOVD name+0(FP), R0 // Move SVC args into registers
+ MOVD $0x80000000, R1
+ MOVD $0, R15
+ SVC_LOAD
+ MOVW R15, R3 // Save return code from SVC
+ MOVD R2, R15 // Restore go stack pointer
+ CMP R3, $0 // Check SVC return code
+ BNE error
+
+ MOVD $-2, R3 // Reset last bit of entry point to zero
+ AND R0, R3
+ MOVD R3, ret+8(FP) // Return entry point returned by SVC
+ CMP R0, R3 // Check if last bit of entry point was set
+ BNE done
+
+ MOVD R15, R2 // Save go stack pointer
+ MOVD $0, R15 // Move SVC args into registers (entry point still in r0 from SVC 08)
+ SVC_DELETE
+ MOVD R2, R15 // Restore go stack pointer
- // Restore LE stack.
- MOVD SAVSTACK_ASYNC(R8), R9
- MOVD 0(R9), R4
- MOVD $0, 0(R9)
+error:
+ MOVD $0, ret+8(FP) // Return 0 on failure
- // Call function.
- LE_CALL
- NOPH
- XOR R0, R0 // Restore R0 to $0.
- MOVD R4, 0(R9) // Save stack pointer.
-
- MOVD R3, r1+32(FP)
- MOVD R0, r2+40(FP)
- MOVD R0, err+48(FP)
- MOVW R3, R4
- CMP R4, $-1
- BNE done
- BL addrerrno<>(SB)
- MOVWZ 0(R3), R3
- MOVD R3, err+48(FP)
done:
+ XOR R0, R0 // Reset r0 to 0
RET
-TEXT ·syscall_syscall6(SB),NOSPLIT,$0-80
- BL runtime·entersyscall(SB)
- MOVD a1+8(FP), R1
- MOVD a2+16(FP), R2
- MOVD a3+24(FP), R3
+// func svcUnload(name *byte, fnptr unsafe.Pointer) int64
+TEXT ·svcUnload(SB), NOSPLIT, $0
+ MOVD R15, R2 // Save go stack pointer
+ MOVD name+0(FP), R0 // Move SVC args into registers
+ MOVD fnptr+8(FP), R15
+ SVC_DELETE
+ XOR R0, R0 // Reset r0 to 0
+ MOVD R15, R1 // Save SVC return code
+ MOVD R2, R15 // Restore go stack pointer
+ MOVD R1, ret+16(FP) // Return SVC return code
+ RET
+// func gettid() uint64
+TEXT ·gettid(SB), NOSPLIT, $0
// Get library control area (LCA).
- MOVW PSALAA, R8
- MOVD LCA64(R8), R8
+ MOVW PSALAA, R8
+ MOVD LCA64(R8), R8
- // Get function.
- MOVD CAA(R8), R9
- MOVD EDCHPXV(R9), R9
- MOVD trap+0(FP), R5
- SLD $4, R5
- ADD R5, R9
- LMG 0(R9), R5, R6
+ // Get CEECAATHDID
+ MOVD CAA(R8), R9
+ MOVD CEECAATHDID(R9), R9
+ MOVD R9, ret+0(FP)
- // Restore LE stack.
- MOVD SAVSTACK_ASYNC(R8), R9
- MOVD 0(R9), R4
- MOVD $0, 0(R9)
-
- // Fill in parameter list.
- MOVD a4+32(FP), R12
- MOVD R12, (2176+24)(R4)
- MOVD a5+40(FP), R12
- MOVD R12, (2176+32)(R4)
- MOVD a6+48(FP), R12
- MOVD R12, (2176+40)(R4)
-
- // Call function.
- LE_CALL
- NOPH
- XOR R0, R0 // Restore R0 to $0.
- MOVD R4, 0(R9) // Save stack pointer.
-
- MOVD R3, r1+56(FP)
- MOVD R0, r2+64(FP)
- MOVD R0, err+72(FP)
- MOVW R3, R4
- CMP R4, $-1
- BNE done
- BL addrerrno<>(SB)
- MOVWZ 0(R3), R3
- MOVD R3, err+72(FP)
-done:
- BL runtime·exitsyscall(SB)
RET
-TEXT ·syscall_rawsyscall6(SB),NOSPLIT,$0-80
- MOVD a1+8(FP), R1
- MOVD a2+16(FP), R2
- MOVD a3+24(FP), R3
-
- // Get library control area (LCA).
- MOVW PSALAA, R8
- MOVD LCA64(R8), R8
-
- // Get function.
- MOVD CAA(R8), R9
- MOVD EDCHPXV(R9), R9
- MOVD trap+0(FP), R5
- SLD $4, R5
- ADD R5, R9
- LMG 0(R9), R5, R6
+//
+// Call LE function, if the return is -1
+// errno and errno2 is retrieved
+//
+TEXT ·CallLeFuncWithErr(SB), NOSPLIT, $0
+ MOVW PSALAA, R8
+ MOVD LCA64(R8), R8
+ MOVD CAA(R8), R9
+ MOVD g, GOCB(R9)
// Restore LE stack.
- MOVD SAVSTACK_ASYNC(R8), R9
- MOVD 0(R9), R4
- MOVD $0, 0(R9)
-
- // Fill in parameter list.
- MOVD a4+32(FP), R12
- MOVD R12, (2176+24)(R4)
- MOVD a5+40(FP), R12
- MOVD R12, (2176+32)(R4)
- MOVD a6+48(FP), R12
- MOVD R12, (2176+40)(R4)
-
- // Call function.
- LE_CALL
+ MOVD SAVSTACK_ASYNC(R8), R9 // R9-> LE stack frame saving address
+ MOVD 0(R9), R4 // R4-> restore previously saved stack frame pointer
+
+ MOVD parms_base+8(FP), R7 // R7 -> argument array
+ MOVD parms_len+16(FP), R8 // R8 number of arguments
+
+ // arg 1 ---> R1
+ CMP R8, $0
+ BEQ docall
+ SUB $1, R8
+ MOVD 0(R7), R1
+
+ // arg 2 ---> R2
+ CMP R8, $0
+ BEQ docall
+ SUB $1, R8
+ ADD $8, R7
+ MOVD 0(R7), R2
+
+ // arg 3 --> R3
+ CMP R8, $0
+ BEQ docall
+ SUB $1, R8
+ ADD $8, R7
+ MOVD 0(R7), R3
+
+ CMP R8, $0
+ BEQ docall
+ MOVD $2176+16, R6 // starting LE stack address-8 to store 4th argument
+
+repeat:
+ ADD $8, R7
+ MOVD 0(R7), R0 // advance arg pointer by 8 byte
+ ADD $8, R6 // advance LE argument address by 8 byte
+ MOVD R0, (R4)(R6*1) // copy argument from go-slice to le-frame
+ SUB $1, R8
+ CMP R8, $0
+ BNE repeat
+
+docall:
+ MOVD funcdesc+0(FP), R8 // R8-> function descriptor
+ LMG 0(R8), R5, R6
+ MOVD $0, 0(R9) // R9 address of SAVSTACK_ASYNC
+ LE_CALL // balr R7, R6 (return #1)
+ NOPH
+ MOVD R3, ret+32(FP)
+ CMP R3, $-1 // compare result to -1
+ BNE done
+
+ // retrieve errno and errno2
+ MOVD zosLibVec<>(SB), R8
+ ADD $(__errno), R8
+ LMG 0(R8), R5, R6
+ LE_CALL // balr R7, R6 __errno (return #3)
NOPH
- XOR R0, R0 // Restore R0 to $0.
- MOVD R4, 0(R9) // Save stack pointer.
-
- MOVD R3, r1+56(FP)
- MOVD R0, r2+64(FP)
- MOVD R0, err+72(FP)
- MOVW R3, R4
- CMP R4, $-1
- BNE done
- BL ·rrno<>(SB)
- MOVWZ 0(R3), R3
- MOVD R3, err+72(FP)
+ MOVWZ 0(R3), R3
+ MOVD R3, err+48(FP)
+ MOVD zosLibVec<>(SB), R8
+ ADD $(__err2ad), R8
+ LMG 0(R8), R5, R6
+ LE_CALL // balr R7, R6 __err2ad (return #2)
+ NOPH
+ MOVW (R3), R2 // retrieve errno2
+ MOVD R2, errno2+40(FP) // store in return area
+
done:
+ MOVD R4, 0(R9) // Save stack pointer.
RET
-TEXT ·syscall_syscall9(SB),NOSPLIT,$0
- BL runtime·entersyscall(SB)
- MOVD a1+8(FP), R1
- MOVD a2+16(FP), R2
- MOVD a3+24(FP), R3
-
- // Get library control area (LCA).
- MOVW PSALAA, R8
- MOVD LCA64(R8), R8
-
- // Get function.
- MOVD CAA(R8), R9
- MOVD EDCHPXV(R9), R9
- MOVD trap+0(FP), R5
- SLD $4, R5
- ADD R5, R9
- LMG 0(R9), R5, R6
+//
+// Call LE function, if the return is 0
+// errno and errno2 is retrieved
+//
+TEXT ·CallLeFuncWithPtrReturn(SB), NOSPLIT, $0
+ MOVW PSALAA, R8
+ MOVD LCA64(R8), R8
+ MOVD CAA(R8), R9
+ MOVD g, GOCB(R9)
// Restore LE stack.
- MOVD SAVSTACK_ASYNC(R8), R9
- MOVD 0(R9), R4
- MOVD $0, 0(R9)
-
- // Fill in parameter list.
- MOVD a4+32(FP), R12
- MOVD R12, (2176+24)(R4)
- MOVD a5+40(FP), R12
- MOVD R12, (2176+32)(R4)
- MOVD a6+48(FP), R12
- MOVD R12, (2176+40)(R4)
- MOVD a7+56(FP), R12
- MOVD R12, (2176+48)(R4)
- MOVD a8+64(FP), R12
- MOVD R12, (2176+56)(R4)
- MOVD a9+72(FP), R12
- MOVD R12, (2176+64)(R4)
-
- // Call function.
- LE_CALL
+ MOVD SAVSTACK_ASYNC(R8), R9 // R9-> LE stack frame saving address
+ MOVD 0(R9), R4 // R4-> restore previously saved stack frame pointer
+
+ MOVD parms_base+8(FP), R7 // R7 -> argument array
+ MOVD parms_len+16(FP), R8 // R8 number of arguments
+
+ // arg 1 ---> R1
+ CMP R8, $0
+ BEQ docall
+ SUB $1, R8
+ MOVD 0(R7), R1
+
+ // arg 2 ---> R2
+ CMP R8, $0
+ BEQ docall
+ SUB $1, R8
+ ADD $8, R7
+ MOVD 0(R7), R2
+
+ // arg 3 --> R3
+ CMP R8, $0
+ BEQ docall
+ SUB $1, R8
+ ADD $8, R7
+ MOVD 0(R7), R3
+
+ CMP R8, $0
+ BEQ docall
+ MOVD $2176+16, R6 // starting LE stack address-8 to store 4th argument
+
+repeat:
+ ADD $8, R7
+ MOVD 0(R7), R0 // advance arg pointer by 8 byte
+ ADD $8, R6 // advance LE argument address by 8 byte
+ MOVD R0, (R4)(R6*1) // copy argument from go-slice to le-frame
+ SUB $1, R8
+ CMP R8, $0
+ BNE repeat
+
+docall:
+ MOVD funcdesc+0(FP), R8 // R8-> function descriptor
+ LMG 0(R8), R5, R6
+ MOVD $0, 0(R9) // R9 address of SAVSTACK_ASYNC
+ LE_CALL // balr R7, R6 (return #1)
NOPH
- XOR R0, R0 // Restore R0 to $0.
- MOVD R4, 0(R9) // Save stack pointer.
-
- MOVD R3, r1+80(FP)
- MOVD R0, r2+88(FP)
- MOVD R0, err+96(FP)
- MOVW R3, R4
- CMP R4, $-1
- BNE done
- BL addrerrno<>(SB)
- MOVWZ 0(R3), R3
- MOVD R3, err+96(FP)
-done:
- BL runtime·exitsyscall(SB)
- RET
-
-TEXT ·syscall_rawsyscall9(SB),NOSPLIT,$0
- MOVD a1+8(FP), R1
- MOVD a2+16(FP), R2
- MOVD a3+24(FP), R3
-
- // Get library control area (LCA).
- MOVW PSALAA, R8
- MOVD LCA64(R8), R8
-
- // Get function.
- MOVD CAA(R8), R9
- MOVD EDCHPXV(R9), R9
- MOVD trap+0(FP), R5
- SLD $4, R5
- ADD R5, R9
- LMG 0(R9), R5, R6
-
- // Restore LE stack.
- MOVD SAVSTACK_ASYNC(R8), R9
- MOVD 0(R9), R4
- MOVD $0, 0(R9)
-
- // Fill in parameter list.
- MOVD a4+32(FP), R12
- MOVD R12, (2176+24)(R4)
- MOVD a5+40(FP), R12
- MOVD R12, (2176+32)(R4)
- MOVD a6+48(FP), R12
- MOVD R12, (2176+40)(R4)
- MOVD a7+56(FP), R12
- MOVD R12, (2176+48)(R4)
- MOVD a8+64(FP), R12
- MOVD R12, (2176+56)(R4)
- MOVD a9+72(FP), R12
- MOVD R12, (2176+64)(R4)
-
- // Call function.
- LE_CALL
+ MOVD R3, ret+32(FP)
+ CMP R3, $0 // compare result to 0
+ BNE done
+
+ // retrieve errno and errno2
+ MOVD zosLibVec<>(SB), R8
+ ADD $(__errno), R8
+ LMG 0(R8), R5, R6
+ LE_CALL // balr R7, R6 __errno (return #3)
NOPH
- XOR R0, R0 // Restore R0 to $0.
- MOVD R4, 0(R9) // Save stack pointer.
-
- MOVD R3, r1+80(FP)
- MOVD R0, r2+88(FP)
- MOVD R0, err+96(FP)
- MOVW R3, R4
- CMP R4, $-1
- BNE done
- BL addrerrno<>(SB)
- MOVWZ 0(R3), R3
- MOVD R3, err+96(FP)
-done:
- RET
-
-// func svcCall(fnptr unsafe.Pointer, argv *unsafe.Pointer, dsa *uint64)
-TEXT ·svcCall(SB),NOSPLIT,$0
- BL runtime·save_g(SB) // Save g and stack pointer
- MOVW PSALAA, R8
- MOVD LCA64(R8), R8
- MOVD SAVSTACK_ASYNC(R8), R9
- MOVD R15, 0(R9)
-
- MOVD argv+8(FP), R1 // Move function arguments into registers
- MOVD dsa+16(FP), g
- MOVD fnptr+0(FP), R15
-
- BYTE $0x0D // Branch to function
- BYTE $0xEF
-
- BL runtime·load_g(SB) // Restore g and stack pointer
- MOVW PSALAA, R8
- MOVD LCA64(R8), R8
- MOVD SAVSTACK_ASYNC(R8), R9
- MOVD 0(R9), R15
-
- RET
-
-// func svcLoad(name *byte) unsafe.Pointer
-TEXT ·svcLoad(SB),NOSPLIT,$0
- MOVD R15, R2 // Save go stack pointer
- MOVD name+0(FP), R0 // Move SVC args into registers
- MOVD $0x80000000, R1
- MOVD $0, R15
- BYTE $0x0A // SVC 08 LOAD
- BYTE $0x08
- MOVW R15, R3 // Save return code from SVC
- MOVD R2, R15 // Restore go stack pointer
- CMP R3, $0 // Check SVC return code
- BNE error
-
- MOVD $-2, R3 // Reset last bit of entry point to zero
- AND R0, R3
- MOVD R3, addr+8(FP) // Return entry point returned by SVC
- CMP R0, R3 // Check if last bit of entry point was set
- BNE done
-
- MOVD R15, R2 // Save go stack pointer
- MOVD $0, R15 // Move SVC args into registers (entry point still in r0 from SVC 08)
- BYTE $0x0A // SVC 09 DELETE
- BYTE $0x09
- MOVD R2, R15 // Restore go stack pointer
+ MOVWZ 0(R3), R3
+ MOVD R3, err+48(FP)
+ MOVD zosLibVec<>(SB), R8
+ ADD $(__err2ad), R8
+ LMG 0(R8), R5, R6
+ LE_CALL // balr R7, R6 __err2ad (return #2)
+ NOPH
+ MOVW (R3), R2 // retrieve errno2
+ MOVD R2, errno2+40(FP) // store in return area
+ XOR R2, R2
+ MOVWZ R2, (R3) // clear errno2
-error:
- MOVD $0, addr+8(FP) // Return 0 on failure
done:
- XOR R0, R0 // Reset r0 to 0
+ MOVD R4, 0(R9) // Save stack pointer.
RET
-// func svcUnload(name *byte, fnptr unsafe.Pointer) int64
-TEXT ·svcUnload(SB),NOSPLIT,$0
- MOVD R15, R2 // Save go stack pointer
- MOVD name+0(FP), R0 // Move SVC args into registers
- MOVD addr+8(FP), R15
- BYTE $0x0A // SVC 09
- BYTE $0x09
- XOR R0, R0 // Reset r0 to 0
- MOVD R15, R1 // Save SVC return code
- MOVD R2, R15 // Restore go stack pointer
- MOVD R1, rc+0(FP) // Return SVC return code
+//
+// function to test if a pointer can be safely dereferenced (content read)
+// return 0 for succces
+//
+TEXT ·ptrtest(SB), NOSPLIT, $0-16
+ MOVD arg+0(FP), R10 // test pointer in R10
+
+ // set up R2 to point to CEECAADMC
+ BYTE $0xE3; BYTE $0x20; BYTE $0x04; BYTE $0xB8; BYTE $0x00; BYTE $0x17 // llgt 2,1208
+ BYTE $0xB9; BYTE $0x17; BYTE $0x00; BYTE $0x22 // llgtr 2,2
+ BYTE $0xA5; BYTE $0x26; BYTE $0x7F; BYTE $0xFF // nilh 2,32767
+ BYTE $0xE3; BYTE $0x22; BYTE $0x00; BYTE $0x58; BYTE $0x00; BYTE $0x04 // lg 2,88(2)
+ BYTE $0xE3; BYTE $0x22; BYTE $0x00; BYTE $0x08; BYTE $0x00; BYTE $0x04 // lg 2,8(2)
+ BYTE $0x41; BYTE $0x22; BYTE $0x03; BYTE $0x68 // la 2,872(2)
+
+ // set up R5 to point to the "shunt" path which set 1 to R3 (failure)
+ BYTE $0xB9; BYTE $0x82; BYTE $0x00; BYTE $0x33 // xgr 3,3
+ BYTE $0xA7; BYTE $0x55; BYTE $0x00; BYTE $0x04 // bras 5,lbl1
+ BYTE $0xA7; BYTE $0x39; BYTE $0x00; BYTE $0x01 // lghi 3,1
+
+ // if r3 is not zero (failed) then branch to finish
+ BYTE $0xB9; BYTE $0x02; BYTE $0x00; BYTE $0x33 // lbl1 ltgr 3,3
+ BYTE $0xA7; BYTE $0x74; BYTE $0x00; BYTE $0x08 // brc b'0111',lbl2
+
+ // stomic store shunt address in R5 into CEECAADMC
+ BYTE $0xE3; BYTE $0x52; BYTE $0x00; BYTE $0x00; BYTE $0x00; BYTE $0x24 // stg 5,0(2)
+
+ // now try reading from the test pointer in R10, if it fails it branches to the "lghi" instruction above
+ BYTE $0xE3; BYTE $0x9A; BYTE $0x00; BYTE $0x00; BYTE $0x00; BYTE $0x04 // lg 9,0(10)
+
+ // finish here, restore 0 into CEECAADMC
+ BYTE $0xB9; BYTE $0x82; BYTE $0x00; BYTE $0x99 // lbl2 xgr 9,9
+ BYTE $0xE3; BYTE $0x92; BYTE $0x00; BYTE $0x00; BYTE $0x00; BYTE $0x24 // stg 9,0(2)
+ MOVD R3, ret+8(FP) // result in R3
RET
-// func gettid() uint64
-TEXT ·gettid(SB), NOSPLIT, $0
- // Get library control area (LCA).
- MOVW PSALAA, R8
- MOVD LCA64(R8), R8
-
- // Get CEECAATHDID
- MOVD CAA(R8), R9
- MOVD 0x3D0(R9), R9
- MOVD R9, ret+0(FP)
-
+//
+// function to test if a untptr can be loaded from a pointer
+// return 1: the 8-byte content
+// 2: 0 for success, 1 for failure
+//
+// func safeload(ptr uintptr) ( value uintptr, error uintptr)
+TEXT ·safeload(SB), NOSPLIT, $0-24
+ MOVD ptr+0(FP), R10 // test pointer in R10
+ MOVD $0x0, R6
+ BYTE $0xE3; BYTE $0x20; BYTE $0x04; BYTE $0xB8; BYTE $0x00; BYTE $0x17 // llgt 2,1208
+ BYTE $0xB9; BYTE $0x17; BYTE $0x00; BYTE $0x22 // llgtr 2,2
+ BYTE $0xA5; BYTE $0x26; BYTE $0x7F; BYTE $0xFF // nilh 2,32767
+ BYTE $0xE3; BYTE $0x22; BYTE $0x00; BYTE $0x58; BYTE $0x00; BYTE $0x04 // lg 2,88(2)
+ BYTE $0xE3; BYTE $0x22; BYTE $0x00; BYTE $0x08; BYTE $0x00; BYTE $0x04 // lg 2,8(2)
+ BYTE $0x41; BYTE $0x22; BYTE $0x03; BYTE $0x68 // la 2,872(2)
+ BYTE $0xB9; BYTE $0x82; BYTE $0x00; BYTE $0x33 // xgr 3,3
+ BYTE $0xA7; BYTE $0x55; BYTE $0x00; BYTE $0x04 // bras 5,lbl1
+ BYTE $0xA7; BYTE $0x39; BYTE $0x00; BYTE $0x01 // lghi 3,1
+ BYTE $0xB9; BYTE $0x02; BYTE $0x00; BYTE $0x33 // lbl1 ltgr 3,3
+ BYTE $0xA7; BYTE $0x74; BYTE $0x00; BYTE $0x08 // brc b'0111',lbl2
+ BYTE $0xE3; BYTE $0x52; BYTE $0x00; BYTE $0x00; BYTE $0x00; BYTE $0x24 // stg 5,0(2)
+ BYTE $0xE3; BYTE $0x6A; BYTE $0x00; BYTE $0x00; BYTE $0x00; BYTE $0x04 // lg 6,0(10)
+ BYTE $0xB9; BYTE $0x82; BYTE $0x00; BYTE $0x99 // lbl2 xgr 9,9
+ BYTE $0xE3; BYTE $0x92; BYTE $0x00; BYTE $0x00; BYTE $0x00; BYTE $0x24 // stg 9,0(2)
+ MOVD R6, value+8(FP) // result in R6
+ MOVD R3, error+16(FP) // error in R3
RET
diff --git a/vendor/golang.org/x/sys/unix/bpxsvc_zos.go b/vendor/golang.org/x/sys/unix/bpxsvc_zos.go
new file mode 100644
index 0000000000..39d647d863
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/bpxsvc_zos.go
@@ -0,0 +1,657 @@
+// Copyright 2024 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build zos
+
+package unix
+
+import (
+ "bytes"
+ "fmt"
+ "unsafe"
+)
+
+//go:noescape
+func bpxcall(plist []unsafe.Pointer, bpx_offset int64)
+
+//go:noescape
+func A2e([]byte)
+
+//go:noescape
+func E2a([]byte)
+
+const (
+ BPX4STA = 192 // stat
+ BPX4FST = 104 // fstat
+ BPX4LST = 132 // lstat
+ BPX4OPN = 156 // open
+ BPX4CLO = 72 // close
+ BPX4CHR = 500 // chattr
+ BPX4FCR = 504 // fchattr
+ BPX4LCR = 1180 // lchattr
+ BPX4CTW = 492 // cond_timed_wait
+ BPX4GTH = 1056 // __getthent
+ BPX4PTQ = 412 // pthread_quiesc
+ BPX4PTR = 320 // ptrace
+)
+
+const (
+ //options
+ //byte1
+ BPX_OPNFHIGH = 0x80
+ //byte2
+ BPX_OPNFEXEC = 0x80
+ //byte3
+ BPX_O_NOLARGEFILE = 0x08
+ BPX_O_LARGEFILE = 0x04
+ BPX_O_ASYNCSIG = 0x02
+ BPX_O_SYNC = 0x01
+ //byte4
+ BPX_O_CREXCL = 0xc0
+ BPX_O_CREAT = 0x80
+ BPX_O_EXCL = 0x40
+ BPX_O_NOCTTY = 0x20
+ BPX_O_TRUNC = 0x10
+ BPX_O_APPEND = 0x08
+ BPX_O_NONBLOCK = 0x04
+ BPX_FNDELAY = 0x04
+ BPX_O_RDWR = 0x03
+ BPX_O_RDONLY = 0x02
+ BPX_O_WRONLY = 0x01
+ BPX_O_ACCMODE = 0x03
+ BPX_O_GETFL = 0x0f
+
+ //mode
+ // byte1 (file type)
+ BPX_FT_DIR = 1
+ BPX_FT_CHARSPEC = 2
+ BPX_FT_REGFILE = 3
+ BPX_FT_FIFO = 4
+ BPX_FT_SYMLINK = 5
+ BPX_FT_SOCKET = 6
+ //byte3
+ BPX_S_ISUID = 0x08
+ BPX_S_ISGID = 0x04
+ BPX_S_ISVTX = 0x02
+ BPX_S_IRWXU1 = 0x01
+ BPX_S_IRUSR = 0x01
+ //byte4
+ BPX_S_IRWXU2 = 0xc0
+ BPX_S_IWUSR = 0x80
+ BPX_S_IXUSR = 0x40
+ BPX_S_IRWXG = 0x38
+ BPX_S_IRGRP = 0x20
+ BPX_S_IWGRP = 0x10
+ BPX_S_IXGRP = 0x08
+ BPX_S_IRWXOX = 0x07
+ BPX_S_IROTH = 0x04
+ BPX_S_IWOTH = 0x02
+ BPX_S_IXOTH = 0x01
+
+ CW_INTRPT = 1
+ CW_CONDVAR = 32
+ CW_TIMEOUT = 64
+
+ PGTHA_NEXT = 2
+ PGTHA_CURRENT = 1
+ PGTHA_FIRST = 0
+ PGTHA_LAST = 3
+ PGTHA_PROCESS = 0x80
+ PGTHA_CONTTY = 0x40
+ PGTHA_PATH = 0x20
+ PGTHA_COMMAND = 0x10
+ PGTHA_FILEDATA = 0x08
+ PGTHA_THREAD = 0x04
+ PGTHA_PTAG = 0x02
+ PGTHA_COMMANDLONG = 0x01
+ PGTHA_THREADFAST = 0x80
+ PGTHA_FILEPATH = 0x40
+ PGTHA_THDSIGMASK = 0x20
+ // thread quiece mode
+ QUIESCE_TERM int32 = 1
+ QUIESCE_FORCE int32 = 2
+ QUIESCE_QUERY int32 = 3
+ QUIESCE_FREEZE int32 = 4
+ QUIESCE_UNFREEZE int32 = 5
+ FREEZE_THIS_THREAD int32 = 6
+ FREEZE_EXIT int32 = 8
+ QUIESCE_SRB int32 = 9
+)
+
+type Pgtha struct {
+ Pid uint32 // 0
+ Tid0 uint32 // 4
+ Tid1 uint32
+ Accesspid byte // C
+ Accesstid byte // D
+ Accessasid uint16 // E
+ Loginname [8]byte // 10
+ Flag1 byte // 18
+ Flag1b2 byte // 19
+}
+
+type Bpxystat_t struct { // DSECT BPXYSTAT
+ St_id [4]uint8 // 0
+ St_length uint16 // 0x4
+ St_version uint16 // 0x6
+ St_mode uint32 // 0x8
+ St_ino uint32 // 0xc
+ St_dev uint32 // 0x10
+ St_nlink uint32 // 0x14
+ St_uid uint32 // 0x18
+ St_gid uint32 // 0x1c
+ St_size uint64 // 0x20
+ St_atime uint32 // 0x28
+ St_mtime uint32 // 0x2c
+ St_ctime uint32 // 0x30
+ St_rdev uint32 // 0x34
+ St_auditoraudit uint32 // 0x38
+ St_useraudit uint32 // 0x3c
+ St_blksize uint32 // 0x40
+ St_createtime uint32 // 0x44
+ St_auditid [4]uint32 // 0x48
+ St_res01 uint32 // 0x58
+ Ft_ccsid uint16 // 0x5c
+ Ft_flags uint16 // 0x5e
+ St_res01a [2]uint32 // 0x60
+ St_res02 uint32 // 0x68
+ St_blocks uint32 // 0x6c
+ St_opaque [3]uint8 // 0x70
+ St_visible uint8 // 0x73
+ St_reftime uint32 // 0x74
+ St_fid uint64 // 0x78
+ St_filefmt uint8 // 0x80
+ St_fspflag2 uint8 // 0x81
+ St_res03 [2]uint8 // 0x82
+ St_ctimemsec uint32 // 0x84
+ St_seclabel [8]uint8 // 0x88
+ St_res04 [4]uint8 // 0x90
+ // end of version 1
+ _ uint32 // 0x94
+ St_atime64 uint64 // 0x98
+ St_mtime64 uint64 // 0xa0
+ St_ctime64 uint64 // 0xa8
+ St_createtime64 uint64 // 0xb0
+ St_reftime64 uint64 // 0xb8
+ _ uint64 // 0xc0
+ St_res05 [16]uint8 // 0xc8
+ // end of version 2
+}
+
+type BpxFilestatus struct {
+ Oflag1 byte
+ Oflag2 byte
+ Oflag3 byte
+ Oflag4 byte
+}
+
+type BpxMode struct {
+ Ftype byte
+ Mode1 byte
+ Mode2 byte
+ Mode3 byte
+}
+
+// Thr attribute structure for extended attributes
+type Bpxyatt_t struct { // DSECT BPXYATT
+ Att_id [4]uint8
+ Att_version uint16
+ Att_res01 [2]uint8
+ Att_setflags1 uint8
+ Att_setflags2 uint8
+ Att_setflags3 uint8
+ Att_setflags4 uint8
+ Att_mode uint32
+ Att_uid uint32
+ Att_gid uint32
+ Att_opaquemask [3]uint8
+ Att_visblmaskres uint8
+ Att_opaque [3]uint8
+ Att_visibleres uint8
+ Att_size_h uint32
+ Att_size_l uint32
+ Att_atime uint32
+ Att_mtime uint32
+ Att_auditoraudit uint32
+ Att_useraudit uint32
+ Att_ctime uint32
+ Att_reftime uint32
+ // end of version 1
+ Att_filefmt uint8
+ Att_res02 [3]uint8
+ Att_filetag uint32
+ Att_res03 [8]uint8
+ // end of version 2
+ Att_atime64 uint64
+ Att_mtime64 uint64
+ Att_ctime64 uint64
+ Att_reftime64 uint64
+ Att_seclabel [8]uint8
+ Att_ver3res02 [8]uint8
+ // end of version 3
+}
+
+func BpxOpen(name string, options *BpxFilestatus, mode *BpxMode) (rv int32, rc int32, rn int32) {
+ if len(name) < 1024 {
+ var namebuf [1024]byte
+ sz := int32(copy(namebuf[:], name))
+ A2e(namebuf[:sz])
+ var parms [7]unsafe.Pointer
+ parms[0] = unsafe.Pointer(&sz)
+ parms[1] = unsafe.Pointer(&namebuf[0])
+ parms[2] = unsafe.Pointer(options)
+ parms[3] = unsafe.Pointer(mode)
+ parms[4] = unsafe.Pointer(&rv)
+ parms[5] = unsafe.Pointer(&rc)
+ parms[6] = unsafe.Pointer(&rn)
+ bpxcall(parms[:], BPX4OPN)
+ return rv, rc, rn
+ }
+ return -1, -1, -1
+}
+
+func BpxClose(fd int32) (rv int32, rc int32, rn int32) {
+ var parms [4]unsafe.Pointer
+ parms[0] = unsafe.Pointer(&fd)
+ parms[1] = unsafe.Pointer(&rv)
+ parms[2] = unsafe.Pointer(&rc)
+ parms[3] = unsafe.Pointer(&rn)
+ bpxcall(parms[:], BPX4CLO)
+ return rv, rc, rn
+}
+
+func BpxFileFStat(fd int32, st *Bpxystat_t) (rv int32, rc int32, rn int32) {
+ st.St_id = [4]uint8{0xe2, 0xe3, 0xc1, 0xe3}
+ st.St_version = 2
+ stat_sz := uint32(unsafe.Sizeof(*st))
+ var parms [6]unsafe.Pointer
+ parms[0] = unsafe.Pointer(&fd)
+ parms[1] = unsafe.Pointer(&stat_sz)
+ parms[2] = unsafe.Pointer(st)
+ parms[3] = unsafe.Pointer(&rv)
+ parms[4] = unsafe.Pointer(&rc)
+ parms[5] = unsafe.Pointer(&rn)
+ bpxcall(parms[:], BPX4FST)
+ return rv, rc, rn
+}
+
+func BpxFileStat(name string, st *Bpxystat_t) (rv int32, rc int32, rn int32) {
+ if len(name) < 1024 {
+ var namebuf [1024]byte
+ sz := int32(copy(namebuf[:], name))
+ A2e(namebuf[:sz])
+ st.St_id = [4]uint8{0xe2, 0xe3, 0xc1, 0xe3}
+ st.St_version = 2
+ stat_sz := uint32(unsafe.Sizeof(*st))
+ var parms [7]unsafe.Pointer
+ parms[0] = unsafe.Pointer(&sz)
+ parms[1] = unsafe.Pointer(&namebuf[0])
+ parms[2] = unsafe.Pointer(&stat_sz)
+ parms[3] = unsafe.Pointer(st)
+ parms[4] = unsafe.Pointer(&rv)
+ parms[5] = unsafe.Pointer(&rc)
+ parms[6] = unsafe.Pointer(&rn)
+ bpxcall(parms[:], BPX4STA)
+ return rv, rc, rn
+ }
+ return -1, -1, -1
+}
+
+func BpxFileLStat(name string, st *Bpxystat_t) (rv int32, rc int32, rn int32) {
+ if len(name) < 1024 {
+ var namebuf [1024]byte
+ sz := int32(copy(namebuf[:], name))
+ A2e(namebuf[:sz])
+ st.St_id = [4]uint8{0xe2, 0xe3, 0xc1, 0xe3}
+ st.St_version = 2
+ stat_sz := uint32(unsafe.Sizeof(*st))
+ var parms [7]unsafe.Pointer
+ parms[0] = unsafe.Pointer(&sz)
+ parms[1] = unsafe.Pointer(&namebuf[0])
+ parms[2] = unsafe.Pointer(&stat_sz)
+ parms[3] = unsafe.Pointer(st)
+ parms[4] = unsafe.Pointer(&rv)
+ parms[5] = unsafe.Pointer(&rc)
+ parms[6] = unsafe.Pointer(&rn)
+ bpxcall(parms[:], BPX4LST)
+ return rv, rc, rn
+ }
+ return -1, -1, -1
+}
+
+func BpxChattr(path string, attr *Bpxyatt_t) (rv int32, rc int32, rn int32) {
+ if len(path) >= 1024 {
+ return -1, -1, -1
+ }
+ var namebuf [1024]byte
+ sz := int32(copy(namebuf[:], path))
+ A2e(namebuf[:sz])
+ attr_sz := uint32(unsafe.Sizeof(*attr))
+ var parms [7]unsafe.Pointer
+ parms[0] = unsafe.Pointer(&sz)
+ parms[1] = unsafe.Pointer(&namebuf[0])
+ parms[2] = unsafe.Pointer(&attr_sz)
+ parms[3] = unsafe.Pointer(attr)
+ parms[4] = unsafe.Pointer(&rv)
+ parms[5] = unsafe.Pointer(&rc)
+ parms[6] = unsafe.Pointer(&rn)
+ bpxcall(parms[:], BPX4CHR)
+ return rv, rc, rn
+}
+
+func BpxLchattr(path string, attr *Bpxyatt_t) (rv int32, rc int32, rn int32) {
+ if len(path) >= 1024 {
+ return -1, -1, -1
+ }
+ var namebuf [1024]byte
+ sz := int32(copy(namebuf[:], path))
+ A2e(namebuf[:sz])
+ attr_sz := uint32(unsafe.Sizeof(*attr))
+ var parms [7]unsafe.Pointer
+ parms[0] = unsafe.Pointer(&sz)
+ parms[1] = unsafe.Pointer(&namebuf[0])
+ parms[2] = unsafe.Pointer(&attr_sz)
+ parms[3] = unsafe.Pointer(attr)
+ parms[4] = unsafe.Pointer(&rv)
+ parms[5] = unsafe.Pointer(&rc)
+ parms[6] = unsafe.Pointer(&rn)
+ bpxcall(parms[:], BPX4LCR)
+ return rv, rc, rn
+}
+
+func BpxFchattr(fd int32, attr *Bpxyatt_t) (rv int32, rc int32, rn int32) {
+ attr_sz := uint32(unsafe.Sizeof(*attr))
+ var parms [6]unsafe.Pointer
+ parms[0] = unsafe.Pointer(&fd)
+ parms[1] = unsafe.Pointer(&attr_sz)
+ parms[2] = unsafe.Pointer(attr)
+ parms[3] = unsafe.Pointer(&rv)
+ parms[4] = unsafe.Pointer(&rc)
+ parms[5] = unsafe.Pointer(&rn)
+ bpxcall(parms[:], BPX4FCR)
+ return rv, rc, rn
+}
+
+func BpxCondTimedWait(sec uint32, nsec uint32, events uint32, secrem *uint32, nsecrem *uint32) (rv int32, rc int32, rn int32) {
+ var parms [8]unsafe.Pointer
+ parms[0] = unsafe.Pointer(&sec)
+ parms[1] = unsafe.Pointer(&nsec)
+ parms[2] = unsafe.Pointer(&events)
+ parms[3] = unsafe.Pointer(secrem)
+ parms[4] = unsafe.Pointer(nsecrem)
+ parms[5] = unsafe.Pointer(&rv)
+ parms[6] = unsafe.Pointer(&rc)
+ parms[7] = unsafe.Pointer(&rn)
+ bpxcall(parms[:], BPX4CTW)
+ return rv, rc, rn
+}
+func BpxGetthent(in *Pgtha, outlen *uint32, out unsafe.Pointer) (rv int32, rc int32, rn int32) {
+ var parms [7]unsafe.Pointer
+ inlen := uint32(26) // nothing else will work. Go says Pgtha is 28-byte because of alignment, but Pgtha is "packed" and must be 26-byte
+ parms[0] = unsafe.Pointer(&inlen)
+ parms[1] = unsafe.Pointer(&in)
+ parms[2] = unsafe.Pointer(outlen)
+ parms[3] = unsafe.Pointer(&out)
+ parms[4] = unsafe.Pointer(&rv)
+ parms[5] = unsafe.Pointer(&rc)
+ parms[6] = unsafe.Pointer(&rn)
+ bpxcall(parms[:], BPX4GTH)
+ return rv, rc, rn
+}
+func ZosJobname() (jobname string, err error) {
+ var pgtha Pgtha
+ pgtha.Pid = uint32(Getpid())
+ pgtha.Accesspid = PGTHA_CURRENT
+ pgtha.Flag1 = PGTHA_PROCESS
+ var out [256]byte
+ var outlen uint32
+ outlen = 256
+ rv, rc, rn := BpxGetthent(&pgtha, &outlen, unsafe.Pointer(&out[0]))
+ if rv == 0 {
+ gthc := []byte{0x87, 0xa3, 0x88, 0x83} // 'gthc' in ebcdic
+ ix := bytes.Index(out[:], gthc)
+ if ix == -1 {
+ err = fmt.Errorf("BPX4GTH: gthc return data not found")
+ return
+ }
+ jn := out[ix+80 : ix+88] // we didn't declare Pgthc, but jobname is 8-byte at offset 80
+ E2a(jn)
+ jobname = string(bytes.TrimRight(jn, " "))
+
+ } else {
+ err = fmt.Errorf("BPX4GTH: rc=%d errno=%d reason=code=0x%x", rv, rc, rn)
+ }
+ return
+}
+func Bpx4ptq(code int32, data string) (rv int32, rc int32, rn int32) {
+ var userdata [8]byte
+ var parms [5]unsafe.Pointer
+ copy(userdata[:], data+" ")
+ A2e(userdata[:])
+ parms[0] = unsafe.Pointer(&code)
+ parms[1] = unsafe.Pointer(&userdata[0])
+ parms[2] = unsafe.Pointer(&rv)
+ parms[3] = unsafe.Pointer(&rc)
+ parms[4] = unsafe.Pointer(&rn)
+ bpxcall(parms[:], BPX4PTQ)
+ return rv, rc, rn
+}
+
+const (
+ PT_TRACE_ME = 0 // Debug this process
+ PT_READ_I = 1 // Read a full word
+ PT_READ_D = 2 // Read a full word
+ PT_READ_U = 3 // Read control info
+ PT_WRITE_I = 4 //Write a full word
+ PT_WRITE_D = 5 //Write a full word
+ PT_CONTINUE = 7 //Continue the process
+ PT_KILL = 8 //Terminate the process
+ PT_READ_GPR = 11 // Read GPR, CR, PSW
+ PT_READ_FPR = 12 // Read FPR
+ PT_READ_VR = 13 // Read VR
+ PT_WRITE_GPR = 14 // Write GPR, CR, PSW
+ PT_WRITE_FPR = 15 // Write FPR
+ PT_WRITE_VR = 16 // Write VR
+ PT_READ_BLOCK = 17 // Read storage
+ PT_WRITE_BLOCK = 19 // Write storage
+ PT_READ_GPRH = 20 // Read GPRH
+ PT_WRITE_GPRH = 21 // Write GPRH
+ PT_REGHSET = 22 // Read all GPRHs
+ PT_ATTACH = 30 // Attach to a process
+ PT_DETACH = 31 // Detach from a process
+ PT_REGSET = 32 // Read all GPRs
+ PT_REATTACH = 33 // Reattach to a process
+ PT_LDINFO = 34 // Read loader info
+ PT_MULTI = 35 // Multi process mode
+ PT_LD64INFO = 36 // RMODE64 Info Area
+ PT_BLOCKREQ = 40 // Block request
+ PT_THREAD_INFO = 60 // Read thread info
+ PT_THREAD_MODIFY = 61
+ PT_THREAD_READ_FOCUS = 62
+ PT_THREAD_WRITE_FOCUS = 63
+ PT_THREAD_HOLD = 64
+ PT_THREAD_SIGNAL = 65
+ PT_EXPLAIN = 66
+ PT_EVENTS = 67
+ PT_THREAD_INFO_EXTENDED = 68
+ PT_REATTACH2 = 71
+ PT_CAPTURE = 72
+ PT_UNCAPTURE = 73
+ PT_GET_THREAD_TCB = 74
+ PT_GET_ALET = 75
+ PT_SWAPIN = 76
+ PT_EXTENDED_EVENT = 98
+ PT_RECOVER = 99 // Debug a program check
+ PT_GPR0 = 0 // General purpose register 0
+ PT_GPR1 = 1 // General purpose register 1
+ PT_GPR2 = 2 // General purpose register 2
+ PT_GPR3 = 3 // General purpose register 3
+ PT_GPR4 = 4 // General purpose register 4
+ PT_GPR5 = 5 // General purpose register 5
+ PT_GPR6 = 6 // General purpose register 6
+ PT_GPR7 = 7 // General purpose register 7
+ PT_GPR8 = 8 // General purpose register 8
+ PT_GPR9 = 9 // General purpose register 9
+ PT_GPR10 = 10 // General purpose register 10
+ PT_GPR11 = 11 // General purpose register 11
+ PT_GPR12 = 12 // General purpose register 12
+ PT_GPR13 = 13 // General purpose register 13
+ PT_GPR14 = 14 // General purpose register 14
+ PT_GPR15 = 15 // General purpose register 15
+ PT_FPR0 = 16 // Floating point register 0
+ PT_FPR1 = 17 // Floating point register 1
+ PT_FPR2 = 18 // Floating point register 2
+ PT_FPR3 = 19 // Floating point register 3
+ PT_FPR4 = 20 // Floating point register 4
+ PT_FPR5 = 21 // Floating point register 5
+ PT_FPR6 = 22 // Floating point register 6
+ PT_FPR7 = 23 // Floating point register 7
+ PT_FPR8 = 24 // Floating point register 8
+ PT_FPR9 = 25 // Floating point register 9
+ PT_FPR10 = 26 // Floating point register 10
+ PT_FPR11 = 27 // Floating point register 11
+ PT_FPR12 = 28 // Floating point register 12
+ PT_FPR13 = 29 // Floating point register 13
+ PT_FPR14 = 30 // Floating point register 14
+ PT_FPR15 = 31 // Floating point register 15
+ PT_FPC = 32 // Floating point control register
+ PT_PSW = 40 // PSW
+ PT_PSW0 = 40 // Left half of the PSW
+ PT_PSW1 = 41 // Right half of the PSW
+ PT_CR0 = 42 // Control register 0
+ PT_CR1 = 43 // Control register 1
+ PT_CR2 = 44 // Control register 2
+ PT_CR3 = 45 // Control register 3
+ PT_CR4 = 46 // Control register 4
+ PT_CR5 = 47 // Control register 5
+ PT_CR6 = 48 // Control register 6
+ PT_CR7 = 49 // Control register 7
+ PT_CR8 = 50 // Control register 8
+ PT_CR9 = 51 // Control register 9
+ PT_CR10 = 52 // Control register 10
+ PT_CR11 = 53 // Control register 11
+ PT_CR12 = 54 // Control register 12
+ PT_CR13 = 55 // Control register 13
+ PT_CR14 = 56 // Control register 14
+ PT_CR15 = 57 // Control register 15
+ PT_GPRH0 = 58 // GP High register 0
+ PT_GPRH1 = 59 // GP High register 1
+ PT_GPRH2 = 60 // GP High register 2
+ PT_GPRH3 = 61 // GP High register 3
+ PT_GPRH4 = 62 // GP High register 4
+ PT_GPRH5 = 63 // GP High register 5
+ PT_GPRH6 = 64 // GP High register 6
+ PT_GPRH7 = 65 // GP High register 7
+ PT_GPRH8 = 66 // GP High register 8
+ PT_GPRH9 = 67 // GP High register 9
+ PT_GPRH10 = 68 // GP High register 10
+ PT_GPRH11 = 69 // GP High register 11
+ PT_GPRH12 = 70 // GP High register 12
+ PT_GPRH13 = 71 // GP High register 13
+ PT_GPRH14 = 72 // GP High register 14
+ PT_GPRH15 = 73 // GP High register 15
+ PT_VR0 = 74 // Vector register 0
+ PT_VR1 = 75 // Vector register 1
+ PT_VR2 = 76 // Vector register 2
+ PT_VR3 = 77 // Vector register 3
+ PT_VR4 = 78 // Vector register 4
+ PT_VR5 = 79 // Vector register 5
+ PT_VR6 = 80 // Vector register 6
+ PT_VR7 = 81 // Vector register 7
+ PT_VR8 = 82 // Vector register 8
+ PT_VR9 = 83 // Vector register 9
+ PT_VR10 = 84 // Vector register 10
+ PT_VR11 = 85 // Vector register 11
+ PT_VR12 = 86 // Vector register 12
+ PT_VR13 = 87 // Vector register 13
+ PT_VR14 = 88 // Vector register 14
+ PT_VR15 = 89 // Vector register 15
+ PT_VR16 = 90 // Vector register 16
+ PT_VR17 = 91 // Vector register 17
+ PT_VR18 = 92 // Vector register 18
+ PT_VR19 = 93 // Vector register 19
+ PT_VR20 = 94 // Vector register 20
+ PT_VR21 = 95 // Vector register 21
+ PT_VR22 = 96 // Vector register 22
+ PT_VR23 = 97 // Vector register 23
+ PT_VR24 = 98 // Vector register 24
+ PT_VR25 = 99 // Vector register 25
+ PT_VR26 = 100 // Vector register 26
+ PT_VR27 = 101 // Vector register 27
+ PT_VR28 = 102 // Vector register 28
+ PT_VR29 = 103 // Vector register 29
+ PT_VR30 = 104 // Vector register 30
+ PT_VR31 = 105 // Vector register 31
+ PT_PSWG = 106 // PSWG
+ PT_PSWG0 = 106 // Bytes 0-3
+ PT_PSWG1 = 107 // Bytes 4-7
+ PT_PSWG2 = 108 // Bytes 8-11 (IA high word)
+ PT_PSWG3 = 109 // Bytes 12-15 (IA low word)
+)
+
+func Bpx4ptr(request int32, pid int32, addr unsafe.Pointer, data unsafe.Pointer, buffer unsafe.Pointer) (rv int32, rc int32, rn int32) {
+ var parms [8]unsafe.Pointer
+ parms[0] = unsafe.Pointer(&request)
+ parms[1] = unsafe.Pointer(&pid)
+ parms[2] = unsafe.Pointer(&addr)
+ parms[3] = unsafe.Pointer(&data)
+ parms[4] = unsafe.Pointer(&buffer)
+ parms[5] = unsafe.Pointer(&rv)
+ parms[6] = unsafe.Pointer(&rc)
+ parms[7] = unsafe.Pointer(&rn)
+ bpxcall(parms[:], BPX4PTR)
+ return rv, rc, rn
+}
+
+func copyU8(val uint8, dest []uint8) int {
+ if len(dest) < 1 {
+ return 0
+ }
+ dest[0] = val
+ return 1
+}
+
+func copyU8Arr(src, dest []uint8) int {
+ if len(dest) < len(src) {
+ return 0
+ }
+ for i, v := range src {
+ dest[i] = v
+ }
+ return len(src)
+}
+
+func copyU16(val uint16, dest []uint16) int {
+ if len(dest) < 1 {
+ return 0
+ }
+ dest[0] = val
+ return 1
+}
+
+func copyU32(val uint32, dest []uint32) int {
+ if len(dest) < 1 {
+ return 0
+ }
+ dest[0] = val
+ return 1
+}
+
+func copyU32Arr(src, dest []uint32) int {
+ if len(dest) < len(src) {
+ return 0
+ }
+ for i, v := range src {
+ dest[i] = v
+ }
+ return len(src)
+}
+
+func copyU64(val uint64, dest []uint64) int {
+ if len(dest) < 1 {
+ return 0
+ }
+ dest[0] = val
+ return 1
+}
diff --git a/vendor/golang.org/x/sys/unix/bpxsvc_zos.s b/vendor/golang.org/x/sys/unix/bpxsvc_zos.s
new file mode 100644
index 0000000000..4bd4a17982
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/bpxsvc_zos.s
@@ -0,0 +1,192 @@
+// Copyright 2024 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+#include "go_asm.h"
+#include "textflag.h"
+
+// function to call USS assembly language services
+//
+// doc: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_3.1.0/com.ibm.zos.v3r1.bpxb100/bit64env.htm
+//
+// arg1 unsafe.Pointer array that ressembles an OS PLIST
+//
+// arg2 function offset as in
+// doc: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_3.1.0/com.ibm.zos.v3r1.bpxb100/bpx2cr_List_of_offsets.htm
+//
+// func bpxcall(plist []unsafe.Pointer, bpx_offset int64)
+
+TEXT ·bpxcall(SB), NOSPLIT|NOFRAME, $0
+ MOVD plist_base+0(FP), R1 // r1 points to plist
+ MOVD bpx_offset+24(FP), R2 // r2 offset to BPX vector table
+ MOVD R14, R7 // save r14
+ MOVD R15, R8 // save r15
+ MOVWZ 16(R0), R9
+ MOVWZ 544(R9), R9
+ MOVWZ 24(R9), R9 // call vector in r9
+ ADD R2, R9 // add offset to vector table
+ MOVWZ (R9), R9 // r9 points to entry point
+ BYTE $0x0D // BL R14,R9 --> basr r14,r9
+ BYTE $0xE9 // clobbers 0,1,14,15
+ MOVD R8, R15 // restore 15
+ JMP R7 // return via saved return address
+
+// func A2e(arr [] byte)
+// code page conversion from 819 to 1047
+TEXT ·A2e(SB), NOSPLIT|NOFRAME, $0
+ MOVD arg_base+0(FP), R2 // pointer to arry of characters
+ MOVD arg_len+8(FP), R3 // count
+ XOR R0, R0
+ XOR R1, R1
+ BYTE $0xA7; BYTE $0x15; BYTE $0x00; BYTE $0x82 // BRAS 1,(2+(256/2))
+
+ // ASCII -> EBCDIC conversion table:
+ BYTE $0x00; BYTE $0x01; BYTE $0x02; BYTE $0x03
+ BYTE $0x37; BYTE $0x2d; BYTE $0x2e; BYTE $0x2f
+ BYTE $0x16; BYTE $0x05; BYTE $0x15; BYTE $0x0b
+ BYTE $0x0c; BYTE $0x0d; BYTE $0x0e; BYTE $0x0f
+ BYTE $0x10; BYTE $0x11; BYTE $0x12; BYTE $0x13
+ BYTE $0x3c; BYTE $0x3d; BYTE $0x32; BYTE $0x26
+ BYTE $0x18; BYTE $0x19; BYTE $0x3f; BYTE $0x27
+ BYTE $0x1c; BYTE $0x1d; BYTE $0x1e; BYTE $0x1f
+ BYTE $0x40; BYTE $0x5a; BYTE $0x7f; BYTE $0x7b
+ BYTE $0x5b; BYTE $0x6c; BYTE $0x50; BYTE $0x7d
+ BYTE $0x4d; BYTE $0x5d; BYTE $0x5c; BYTE $0x4e
+ BYTE $0x6b; BYTE $0x60; BYTE $0x4b; BYTE $0x61
+ BYTE $0xf0; BYTE $0xf1; BYTE $0xf2; BYTE $0xf3
+ BYTE $0xf4; BYTE $0xf5; BYTE $0xf6; BYTE $0xf7
+ BYTE $0xf8; BYTE $0xf9; BYTE $0x7a; BYTE $0x5e
+ BYTE $0x4c; BYTE $0x7e; BYTE $0x6e; BYTE $0x6f
+ BYTE $0x7c; BYTE $0xc1; BYTE $0xc2; BYTE $0xc3
+ BYTE $0xc4; BYTE $0xc5; BYTE $0xc6; BYTE $0xc7
+ BYTE $0xc8; BYTE $0xc9; BYTE $0xd1; BYTE $0xd2
+ BYTE $0xd3; BYTE $0xd4; BYTE $0xd5; BYTE $0xd6
+ BYTE $0xd7; BYTE $0xd8; BYTE $0xd9; BYTE $0xe2
+ BYTE $0xe3; BYTE $0xe4; BYTE $0xe5; BYTE $0xe6
+ BYTE $0xe7; BYTE $0xe8; BYTE $0xe9; BYTE $0xad
+ BYTE $0xe0; BYTE $0xbd; BYTE $0x5f; BYTE $0x6d
+ BYTE $0x79; BYTE $0x81; BYTE $0x82; BYTE $0x83
+ BYTE $0x84; BYTE $0x85; BYTE $0x86; BYTE $0x87
+ BYTE $0x88; BYTE $0x89; BYTE $0x91; BYTE $0x92
+ BYTE $0x93; BYTE $0x94; BYTE $0x95; BYTE $0x96
+ BYTE $0x97; BYTE $0x98; BYTE $0x99; BYTE $0xa2
+ BYTE $0xa3; BYTE $0xa4; BYTE $0xa5; BYTE $0xa6
+ BYTE $0xa7; BYTE $0xa8; BYTE $0xa9; BYTE $0xc0
+ BYTE $0x4f; BYTE $0xd0; BYTE $0xa1; BYTE $0x07
+ BYTE $0x20; BYTE $0x21; BYTE $0x22; BYTE $0x23
+ BYTE $0x24; BYTE $0x25; BYTE $0x06; BYTE $0x17
+ BYTE $0x28; BYTE $0x29; BYTE $0x2a; BYTE $0x2b
+ BYTE $0x2c; BYTE $0x09; BYTE $0x0a; BYTE $0x1b
+ BYTE $0x30; BYTE $0x31; BYTE $0x1a; BYTE $0x33
+ BYTE $0x34; BYTE $0x35; BYTE $0x36; BYTE $0x08
+ BYTE $0x38; BYTE $0x39; BYTE $0x3a; BYTE $0x3b
+ BYTE $0x04; BYTE $0x14; BYTE $0x3e; BYTE $0xff
+ BYTE $0x41; BYTE $0xaa; BYTE $0x4a; BYTE $0xb1
+ BYTE $0x9f; BYTE $0xb2; BYTE $0x6a; BYTE $0xb5
+ BYTE $0xbb; BYTE $0xb4; BYTE $0x9a; BYTE $0x8a
+ BYTE $0xb0; BYTE $0xca; BYTE $0xaf; BYTE $0xbc
+ BYTE $0x90; BYTE $0x8f; BYTE $0xea; BYTE $0xfa
+ BYTE $0xbe; BYTE $0xa0; BYTE $0xb6; BYTE $0xb3
+ BYTE $0x9d; BYTE $0xda; BYTE $0x9b; BYTE $0x8b
+ BYTE $0xb7; BYTE $0xb8; BYTE $0xb9; BYTE $0xab
+ BYTE $0x64; BYTE $0x65; BYTE $0x62; BYTE $0x66
+ BYTE $0x63; BYTE $0x67; BYTE $0x9e; BYTE $0x68
+ BYTE $0x74; BYTE $0x71; BYTE $0x72; BYTE $0x73
+ BYTE $0x78; BYTE $0x75; BYTE $0x76; BYTE $0x77
+ BYTE $0xac; BYTE $0x69; BYTE $0xed; BYTE $0xee
+ BYTE $0xeb; BYTE $0xef; BYTE $0xec; BYTE $0xbf
+ BYTE $0x80; BYTE $0xfd; BYTE $0xfe; BYTE $0xfb
+ BYTE $0xfc; BYTE $0xba; BYTE $0xae; BYTE $0x59
+ BYTE $0x44; BYTE $0x45; BYTE $0x42; BYTE $0x46
+ BYTE $0x43; BYTE $0x47; BYTE $0x9c; BYTE $0x48
+ BYTE $0x54; BYTE $0x51; BYTE $0x52; BYTE $0x53
+ BYTE $0x58; BYTE $0x55; BYTE $0x56; BYTE $0x57
+ BYTE $0x8c; BYTE $0x49; BYTE $0xcd; BYTE $0xce
+ BYTE $0xcb; BYTE $0xcf; BYTE $0xcc; BYTE $0xe1
+ BYTE $0x70; BYTE $0xdd; BYTE $0xde; BYTE $0xdb
+ BYTE $0xdc; BYTE $0x8d; BYTE $0x8e; BYTE $0xdf
+
+retry:
+ WORD $0xB9931022 // TROO 2,2,b'0001'
+ BVS retry
+ RET
+
+// func e2a(arr [] byte)
+// code page conversion from 1047 to 819
+TEXT ·E2a(SB), NOSPLIT|NOFRAME, $0
+ MOVD arg_base+0(FP), R2 // pointer to arry of characters
+ MOVD arg_len+8(FP), R3 // count
+ XOR R0, R0
+ XOR R1, R1
+ BYTE $0xA7; BYTE $0x15; BYTE $0x00; BYTE $0x82 // BRAS 1,(2+(256/2))
+
+ // EBCDIC -> ASCII conversion table:
+ BYTE $0x00; BYTE $0x01; BYTE $0x02; BYTE $0x03
+ BYTE $0x9c; BYTE $0x09; BYTE $0x86; BYTE $0x7f
+ BYTE $0x97; BYTE $0x8d; BYTE $0x8e; BYTE $0x0b
+ BYTE $0x0c; BYTE $0x0d; BYTE $0x0e; BYTE $0x0f
+ BYTE $0x10; BYTE $0x11; BYTE $0x12; BYTE $0x13
+ BYTE $0x9d; BYTE $0x0a; BYTE $0x08; BYTE $0x87
+ BYTE $0x18; BYTE $0x19; BYTE $0x92; BYTE $0x8f
+ BYTE $0x1c; BYTE $0x1d; BYTE $0x1e; BYTE $0x1f
+ BYTE $0x80; BYTE $0x81; BYTE $0x82; BYTE $0x83
+ BYTE $0x84; BYTE $0x85; BYTE $0x17; BYTE $0x1b
+ BYTE $0x88; BYTE $0x89; BYTE $0x8a; BYTE $0x8b
+ BYTE $0x8c; BYTE $0x05; BYTE $0x06; BYTE $0x07
+ BYTE $0x90; BYTE $0x91; BYTE $0x16; BYTE $0x93
+ BYTE $0x94; BYTE $0x95; BYTE $0x96; BYTE $0x04
+ BYTE $0x98; BYTE $0x99; BYTE $0x9a; BYTE $0x9b
+ BYTE $0x14; BYTE $0x15; BYTE $0x9e; BYTE $0x1a
+ BYTE $0x20; BYTE $0xa0; BYTE $0xe2; BYTE $0xe4
+ BYTE $0xe0; BYTE $0xe1; BYTE $0xe3; BYTE $0xe5
+ BYTE $0xe7; BYTE $0xf1; BYTE $0xa2; BYTE $0x2e
+ BYTE $0x3c; BYTE $0x28; BYTE $0x2b; BYTE $0x7c
+ BYTE $0x26; BYTE $0xe9; BYTE $0xea; BYTE $0xeb
+ BYTE $0xe8; BYTE $0xed; BYTE $0xee; BYTE $0xef
+ BYTE $0xec; BYTE $0xdf; BYTE $0x21; BYTE $0x24
+ BYTE $0x2a; BYTE $0x29; BYTE $0x3b; BYTE $0x5e
+ BYTE $0x2d; BYTE $0x2f; BYTE $0xc2; BYTE $0xc4
+ BYTE $0xc0; BYTE $0xc1; BYTE $0xc3; BYTE $0xc5
+ BYTE $0xc7; BYTE $0xd1; BYTE $0xa6; BYTE $0x2c
+ BYTE $0x25; BYTE $0x5f; BYTE $0x3e; BYTE $0x3f
+ BYTE $0xf8; BYTE $0xc9; BYTE $0xca; BYTE $0xcb
+ BYTE $0xc8; BYTE $0xcd; BYTE $0xce; BYTE $0xcf
+ BYTE $0xcc; BYTE $0x60; BYTE $0x3a; BYTE $0x23
+ BYTE $0x40; BYTE $0x27; BYTE $0x3d; BYTE $0x22
+ BYTE $0xd8; BYTE $0x61; BYTE $0x62; BYTE $0x63
+ BYTE $0x64; BYTE $0x65; BYTE $0x66; BYTE $0x67
+ BYTE $0x68; BYTE $0x69; BYTE $0xab; BYTE $0xbb
+ BYTE $0xf0; BYTE $0xfd; BYTE $0xfe; BYTE $0xb1
+ BYTE $0xb0; BYTE $0x6a; BYTE $0x6b; BYTE $0x6c
+ BYTE $0x6d; BYTE $0x6e; BYTE $0x6f; BYTE $0x70
+ BYTE $0x71; BYTE $0x72; BYTE $0xaa; BYTE $0xba
+ BYTE $0xe6; BYTE $0xb8; BYTE $0xc6; BYTE $0xa4
+ BYTE $0xb5; BYTE $0x7e; BYTE $0x73; BYTE $0x74
+ BYTE $0x75; BYTE $0x76; BYTE $0x77; BYTE $0x78
+ BYTE $0x79; BYTE $0x7a; BYTE $0xa1; BYTE $0xbf
+ BYTE $0xd0; BYTE $0x5b; BYTE $0xde; BYTE $0xae
+ BYTE $0xac; BYTE $0xa3; BYTE $0xa5; BYTE $0xb7
+ BYTE $0xa9; BYTE $0xa7; BYTE $0xb6; BYTE $0xbc
+ BYTE $0xbd; BYTE $0xbe; BYTE $0xdd; BYTE $0xa8
+ BYTE $0xaf; BYTE $0x5d; BYTE $0xb4; BYTE $0xd7
+ BYTE $0x7b; BYTE $0x41; BYTE $0x42; BYTE $0x43
+ BYTE $0x44; BYTE $0x45; BYTE $0x46; BYTE $0x47
+ BYTE $0x48; BYTE $0x49; BYTE $0xad; BYTE $0xf4
+ BYTE $0xf6; BYTE $0xf2; BYTE $0xf3; BYTE $0xf5
+ BYTE $0x7d; BYTE $0x4a; BYTE $0x4b; BYTE $0x4c
+ BYTE $0x4d; BYTE $0x4e; BYTE $0x4f; BYTE $0x50
+ BYTE $0x51; BYTE $0x52; BYTE $0xb9; BYTE $0xfb
+ BYTE $0xfc; BYTE $0xf9; BYTE $0xfa; BYTE $0xff
+ BYTE $0x5c; BYTE $0xf7; BYTE $0x53; BYTE $0x54
+ BYTE $0x55; BYTE $0x56; BYTE $0x57; BYTE $0x58
+ BYTE $0x59; BYTE $0x5a; BYTE $0xb2; BYTE $0xd4
+ BYTE $0xd6; BYTE $0xd2; BYTE $0xd3; BYTE $0xd5
+ BYTE $0x30; BYTE $0x31; BYTE $0x32; BYTE $0x33
+ BYTE $0x34; BYTE $0x35; BYTE $0x36; BYTE $0x37
+ BYTE $0x38; BYTE $0x39; BYTE $0xb3; BYTE $0xdb
+ BYTE $0xdc; BYTE $0xd9; BYTE $0xda; BYTE $0x9f
+
+retry:
+ WORD $0xB9931022 // TROO 2,2,b'0001'
+ BVS retry
+ RET
diff --git a/vendor/golang.org/x/sys/unix/epoll_zos.go b/vendor/golang.org/x/sys/unix/epoll_zos.go
deleted file mode 100644
index 7753fddea8..0000000000
--- a/vendor/golang.org/x/sys/unix/epoll_zos.go
+++ /dev/null
@@ -1,220 +0,0 @@
-// Copyright 2020 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build zos && s390x
-
-package unix
-
-import (
- "sync"
-)
-
-// This file simulates epoll on z/OS using poll.
-
-// Analogous to epoll_event on Linux.
-// TODO(neeilan): Pad is because the Linux kernel expects a 96-bit struct. We never pass this to the kernel; remove?
-type EpollEvent struct {
- Events uint32
- Fd int32
- Pad int32
-}
-
-const (
- EPOLLERR = 0x8
- EPOLLHUP = 0x10
- EPOLLIN = 0x1
- EPOLLMSG = 0x400
- EPOLLOUT = 0x4
- EPOLLPRI = 0x2
- EPOLLRDBAND = 0x80
- EPOLLRDNORM = 0x40
- EPOLLWRBAND = 0x200
- EPOLLWRNORM = 0x100
- EPOLL_CTL_ADD = 0x1
- EPOLL_CTL_DEL = 0x2
- EPOLL_CTL_MOD = 0x3
- // The following constants are part of the epoll API, but represent
- // currently unsupported functionality on z/OS.
- // EPOLL_CLOEXEC = 0x80000
- // EPOLLET = 0x80000000
- // EPOLLONESHOT = 0x40000000
- // EPOLLRDHUP = 0x2000 // Typically used with edge-triggered notis
- // EPOLLEXCLUSIVE = 0x10000000 // Exclusive wake-up mode
- // EPOLLWAKEUP = 0x20000000 // Relies on Linux's BLOCK_SUSPEND capability
-)
-
-// TODO(neeilan): We can eliminate these epToPoll / pToEpoll calls by using identical mask values for POLL/EPOLL
-// constants where possible The lower 16 bits of epoll events (uint32) can fit any system poll event (int16).
-
-// epToPollEvt converts epoll event field to poll equivalent.
-// In epoll, Events is a 32-bit field, while poll uses 16 bits.
-func epToPollEvt(events uint32) int16 {
- var ep2p = map[uint32]int16{
- EPOLLIN: POLLIN,
- EPOLLOUT: POLLOUT,
- EPOLLHUP: POLLHUP,
- EPOLLPRI: POLLPRI,
- EPOLLERR: POLLERR,
- }
-
- var pollEvts int16 = 0
- for epEvt, pEvt := range ep2p {
- if (events & epEvt) != 0 {
- pollEvts |= pEvt
- }
- }
-
- return pollEvts
-}
-
-// pToEpollEvt converts 16 bit poll event bitfields to 32-bit epoll event fields.
-func pToEpollEvt(revents int16) uint32 {
- var p2ep = map[int16]uint32{
- POLLIN: EPOLLIN,
- POLLOUT: EPOLLOUT,
- POLLHUP: EPOLLHUP,
- POLLPRI: EPOLLPRI,
- POLLERR: EPOLLERR,
- }
-
- var epollEvts uint32 = 0
- for pEvt, epEvt := range p2ep {
- if (revents & pEvt) != 0 {
- epollEvts |= epEvt
- }
- }
-
- return epollEvts
-}
-
-// Per-process epoll implementation.
-type epollImpl struct {
- mu sync.Mutex
- epfd2ep map[int]*eventPoll
- nextEpfd int
-}
-
-// eventPoll holds a set of file descriptors being watched by the process. A process can have multiple epoll instances.
-// On Linux, this is an in-kernel data structure accessed through a fd.
-type eventPoll struct {
- mu sync.Mutex
- fds map[int]*EpollEvent
-}
-
-// epoll impl for this process.
-var impl epollImpl = epollImpl{
- epfd2ep: make(map[int]*eventPoll),
- nextEpfd: 0,
-}
-
-func (e *epollImpl) epollcreate(size int) (epfd int, err error) {
- e.mu.Lock()
- defer e.mu.Unlock()
- epfd = e.nextEpfd
- e.nextEpfd++
-
- e.epfd2ep[epfd] = &eventPoll{
- fds: make(map[int]*EpollEvent),
- }
- return epfd, nil
-}
-
-func (e *epollImpl) epollcreate1(flag int) (fd int, err error) {
- return e.epollcreate(4)
-}
-
-func (e *epollImpl) epollctl(epfd int, op int, fd int, event *EpollEvent) (err error) {
- e.mu.Lock()
- defer e.mu.Unlock()
-
- ep, ok := e.epfd2ep[epfd]
- if !ok {
-
- return EBADF
- }
-
- switch op {
- case EPOLL_CTL_ADD:
- // TODO(neeilan): When we make epfds and fds disjoint, detect epoll
- // loops here (instances watching each other) and return ELOOP.
- if _, ok := ep.fds[fd]; ok {
- return EEXIST
- }
- ep.fds[fd] = event
- case EPOLL_CTL_MOD:
- if _, ok := ep.fds[fd]; !ok {
- return ENOENT
- }
- ep.fds[fd] = event
- case EPOLL_CTL_DEL:
- if _, ok := ep.fds[fd]; !ok {
- return ENOENT
- }
- delete(ep.fds, fd)
-
- }
- return nil
-}
-
-// Must be called while holding ep.mu
-func (ep *eventPoll) getFds() []int {
- fds := make([]int, len(ep.fds))
- for fd := range ep.fds {
- fds = append(fds, fd)
- }
- return fds
-}
-
-func (e *epollImpl) epollwait(epfd int, events []EpollEvent, msec int) (n int, err error) {
- e.mu.Lock() // in [rare] case of concurrent epollcreate + epollwait
- ep, ok := e.epfd2ep[epfd]
-
- if !ok {
- e.mu.Unlock()
- return 0, EBADF
- }
-
- pollfds := make([]PollFd, 4)
- for fd, epollevt := range ep.fds {
- pollfds = append(pollfds, PollFd{Fd: int32(fd), Events: epToPollEvt(epollevt.Events)})
- }
- e.mu.Unlock()
-
- n, err = Poll(pollfds, msec)
- if err != nil {
- return n, err
- }
-
- i := 0
- for _, pFd := range pollfds {
- if pFd.Revents != 0 {
- events[i] = EpollEvent{Fd: pFd.Fd, Events: pToEpollEvt(pFd.Revents)}
- i++
- }
-
- if i == n {
- break
- }
- }
-
- return n, nil
-}
-
-func EpollCreate(size int) (fd int, err error) {
- return impl.epollcreate(size)
-}
-
-func EpollCreate1(flag int) (fd int, err error) {
- return impl.epollcreate1(flag)
-}
-
-func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
- return impl.epollctl(epfd, op, fd, event)
-}
-
-// Because EpollWait mutates events, the caller is expected to coordinate
-// concurrent access if calling with the same epfd from multiple goroutines.
-func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
- return impl.epollwait(epfd, events, msec)
-}
diff --git a/vendor/golang.org/x/sys/unix/fstatfs_zos.go b/vendor/golang.org/x/sys/unix/fstatfs_zos.go
deleted file mode 100644
index c8bde601e7..0000000000
--- a/vendor/golang.org/x/sys/unix/fstatfs_zos.go
+++ /dev/null
@@ -1,163 +0,0 @@
-// Copyright 2020 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build zos && s390x
-
-package unix
-
-import (
- "unsafe"
-)
-
-// This file simulates fstatfs on z/OS using fstatvfs and w_getmntent.
-
-func Fstatfs(fd int, stat *Statfs_t) (err error) {
- var stat_v Statvfs_t
- err = Fstatvfs(fd, &stat_v)
- if err == nil {
- // populate stat
- stat.Type = 0
- stat.Bsize = stat_v.Bsize
- stat.Blocks = stat_v.Blocks
- stat.Bfree = stat_v.Bfree
- stat.Bavail = stat_v.Bavail
- stat.Files = stat_v.Files
- stat.Ffree = stat_v.Ffree
- stat.Fsid = stat_v.Fsid
- stat.Namelen = stat_v.Namemax
- stat.Frsize = stat_v.Frsize
- stat.Flags = stat_v.Flag
- for passn := 0; passn < 5; passn++ {
- switch passn {
- case 0:
- err = tryGetmntent64(stat)
- break
- case 1:
- err = tryGetmntent128(stat)
- break
- case 2:
- err = tryGetmntent256(stat)
- break
- case 3:
- err = tryGetmntent512(stat)
- break
- case 4:
- err = tryGetmntent1024(stat)
- break
- default:
- break
- }
- //proceed to return if: err is nil (found), err is nonnil but not ERANGE (another error occurred)
- if err == nil || err != nil && err != ERANGE {
- break
- }
- }
- }
- return err
-}
-
-func tryGetmntent64(stat *Statfs_t) (err error) {
- var mnt_ent_buffer struct {
- header W_Mnth
- filesys_info [64]W_Mntent
- }
- var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer))
- fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size)
- if err != nil {
- return err
- }
- err = ERANGE //return ERANGE if no match is found in this batch
- for i := 0; i < fs_count; i++ {
- if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) {
- stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0])
- err = nil
- break
- }
- }
- return err
-}
-
-func tryGetmntent128(stat *Statfs_t) (err error) {
- var mnt_ent_buffer struct {
- header W_Mnth
- filesys_info [128]W_Mntent
- }
- var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer))
- fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size)
- if err != nil {
- return err
- }
- err = ERANGE //return ERANGE if no match is found in this batch
- for i := 0; i < fs_count; i++ {
- if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) {
- stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0])
- err = nil
- break
- }
- }
- return err
-}
-
-func tryGetmntent256(stat *Statfs_t) (err error) {
- var mnt_ent_buffer struct {
- header W_Mnth
- filesys_info [256]W_Mntent
- }
- var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer))
- fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size)
- if err != nil {
- return err
- }
- err = ERANGE //return ERANGE if no match is found in this batch
- for i := 0; i < fs_count; i++ {
- if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) {
- stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0])
- err = nil
- break
- }
- }
- return err
-}
-
-func tryGetmntent512(stat *Statfs_t) (err error) {
- var mnt_ent_buffer struct {
- header W_Mnth
- filesys_info [512]W_Mntent
- }
- var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer))
- fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size)
- if err != nil {
- return err
- }
- err = ERANGE //return ERANGE if no match is found in this batch
- for i := 0; i < fs_count; i++ {
- if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) {
- stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0])
- err = nil
- break
- }
- }
- return err
-}
-
-func tryGetmntent1024(stat *Statfs_t) (err error) {
- var mnt_ent_buffer struct {
- header W_Mnth
- filesys_info [1024]W_Mntent
- }
- var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer))
- fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size)
- if err != nil {
- return err
- }
- err = ERANGE //return ERANGE if no match is found in this batch
- for i := 0; i < fs_count; i++ {
- if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) {
- stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0])
- err = nil
- break
- }
- }
- return err
-}
diff --git a/vendor/golang.org/x/sys/unix/pagesize_unix.go b/vendor/golang.org/x/sys/unix/pagesize_unix.go
index 4d0a3430ed..0482408d7c 100644
--- a/vendor/golang.org/x/sys/unix/pagesize_unix.go
+++ b/vendor/golang.org/x/sys/unix/pagesize_unix.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
// For Unix, get the pagesize from the runtime.
diff --git a/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go b/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go
index 130398b6b7..b903c00604 100644
--- a/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go
+++ b/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build darwin
+//go:build darwin || zos
package unix
diff --git a/vendor/golang.org/x/sys/unix/sockcmsg_zos.go b/vendor/golang.org/x/sys/unix/sockcmsg_zos.go
new file mode 100644
index 0000000000..3e53dbc028
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/sockcmsg_zos.go
@@ -0,0 +1,58 @@
+// Copyright 2024 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Socket control messages
+
+package unix
+
+import "unsafe"
+
+// UnixCredentials encodes credentials into a socket control message
+// for sending to another process. This can be used for
+// authentication.
+func UnixCredentials(ucred *Ucred) []byte {
+ b := make([]byte, CmsgSpace(SizeofUcred))
+ h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
+ h.Level = SOL_SOCKET
+ h.Type = SCM_CREDENTIALS
+ h.SetLen(CmsgLen(SizeofUcred))
+ *(*Ucred)(h.data(0)) = *ucred
+ return b
+}
+
+// ParseUnixCredentials decodes a socket control message that contains
+// credentials in a Ucred structure. To receive such a message, the
+// SO_PASSCRED option must be enabled on the socket.
+func ParseUnixCredentials(m *SocketControlMessage) (*Ucred, error) {
+ if m.Header.Level != SOL_SOCKET {
+ return nil, EINVAL
+ }
+ if m.Header.Type != SCM_CREDENTIALS {
+ return nil, EINVAL
+ }
+ ucred := *(*Ucred)(unsafe.Pointer(&m.Data[0]))
+ return &ucred, nil
+}
+
+// PktInfo4 encodes Inet4Pktinfo into a socket control message of type IP_PKTINFO.
+func PktInfo4(info *Inet4Pktinfo) []byte {
+ b := make([]byte, CmsgSpace(SizeofInet4Pktinfo))
+ h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
+ h.Level = SOL_IP
+ h.Type = IP_PKTINFO
+ h.SetLen(CmsgLen(SizeofInet4Pktinfo))
+ *(*Inet4Pktinfo)(h.data(0)) = *info
+ return b
+}
+
+// PktInfo6 encodes Inet6Pktinfo into a socket control message of type IPV6_PKTINFO.
+func PktInfo6(info *Inet6Pktinfo) []byte {
+ b := make([]byte, CmsgSpace(SizeofInet6Pktinfo))
+ h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
+ h.Level = SOL_IPV6
+ h.Type = IPV6_PKTINFO
+ h.SetLen(CmsgLen(SizeofInet6Pktinfo))
+ *(*Inet6Pktinfo)(h.data(0)) = *info
+ return b
+}
diff --git a/vendor/golang.org/x/sys/unix/symaddr_zos_s390x.s b/vendor/golang.org/x/sys/unix/symaddr_zos_s390x.s
new file mode 100644
index 0000000000..3c4f33cb6a
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/symaddr_zos_s390x.s
@@ -0,0 +1,75 @@
+// Copyright 2024 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build zos && s390x && gc
+
+#include "textflag.h"
+
+// provide the address of function variable to be fixed up.
+
+TEXT ·getPipe2Addr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Pipe2(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+TEXT ·get_FlockAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Flock(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+TEXT ·get_GetxattrAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Getxattr(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+TEXT ·get_NanosleepAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Nanosleep(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+TEXT ·get_SetxattrAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Setxattr(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+TEXT ·get_Wait4Addr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Wait4(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+TEXT ·get_MountAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Mount(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+TEXT ·get_UnmountAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Unmount(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+TEXT ·get_UtimesNanoAtAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·UtimesNanoAt(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+TEXT ·get_UtimesNanoAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·UtimesNano(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+TEXT ·get_MkfifoatAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Mkfifoat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+TEXT ·get_ChtagAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Chtag(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+TEXT ·get_ReadlinkatAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Readlinkat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
diff --git a/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go b/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
index 27c41b6f0a..312ae6ac1d 100644
--- a/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
+++ b/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
@@ -4,11 +4,21 @@
//go:build zos && s390x
+// Many of the following syscalls are not available on all versions of z/OS.
+// Some missing calls have legacy implementations/simulations but others
+// will be missing completely. To achieve consistent failing behaviour on
+// legacy systems, we first test the function pointer via a safeloading
+// mechanism to see if the function exists on a given system. Then execution
+// is branched to either continue the function call, or return an error.
+
package unix
import (
"bytes"
"fmt"
+ "os"
+ "reflect"
+ "regexp"
"runtime"
"sort"
"strings"
@@ -17,17 +27,205 @@ import (
"unsafe"
)
+//go:noescape
+func initZosLibVec()
+
+//go:noescape
+func GetZosLibVec() uintptr
+
+func init() {
+ initZosLibVec()
+ r0, _, _ := CallLeFuncWithPtrReturn(GetZosLibVec()+SYS_____GETENV_A<<4, uintptr(unsafe.Pointer(&([]byte("__ZOS_XSYSTRACE\x00"))[0])))
+ if r0 != 0 {
+ n, _, _ := CallLeFuncWithPtrReturn(GetZosLibVec()+SYS___ATOI_A<<4, r0)
+ ZosTraceLevel = int(n)
+ r0, _, _ := CallLeFuncWithPtrReturn(GetZosLibVec()+SYS_____GETENV_A<<4, uintptr(unsafe.Pointer(&([]byte("__ZOS_XSYSTRACEFD\x00"))[0])))
+ if r0 != 0 {
+ fd, _, _ := CallLeFuncWithPtrReturn(GetZosLibVec()+SYS___ATOI_A<<4, r0)
+ f := os.NewFile(fd, "zostracefile")
+ if f != nil {
+ ZosTracefile = f
+ }
+ }
+
+ }
+}
+
+//go:noescape
+func CallLeFuncWithErr(funcdesc uintptr, parms ...uintptr) (ret, errno2 uintptr, err Errno)
+
+//go:noescape
+func CallLeFuncWithPtrReturn(funcdesc uintptr, parms ...uintptr) (ret, errno2 uintptr, err Errno)
+
+// -------------------------------
+// pointer validity test
+// good pointer returns 0
+// bad pointer returns 1
+//
+//go:nosplit
+func ptrtest(uintptr) uint64
+
+// Load memory at ptr location with error handling if the location is invalid
+//
+//go:noescape
+func safeload(ptr uintptr) (value uintptr, error uintptr)
+
const (
- O_CLOEXEC = 0 // Dummy value (not supported).
- AF_LOCAL = AF_UNIX // AF_LOCAL is an alias for AF_UNIX
+ entrypointLocationOffset = 8 // From function descriptor
+
+ xplinkEyecatcher = 0x00c300c500c500f1 // ".C.E.E.1"
+ eyecatcherOffset = 16 // From function entrypoint (negative)
+ ppa1LocationOffset = 8 // From function entrypoint (negative)
+
+ nameLenOffset = 0x14 // From PPA1 start
+ nameOffset = 0x16 // From PPA1 start
)
-func syscall_syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
-func syscall_rawsyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
-func syscall_syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
-func syscall_rawsyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
-func syscall_syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno)
-func syscall_rawsyscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno)
+func getPpaOffset(funcptr uintptr) int64 {
+ entrypoint, err := safeload(funcptr + entrypointLocationOffset)
+ if err != 0 {
+ return -1
+ }
+
+ // XPLink functions have ".C.E.E.1" as the first 8 bytes (EBCDIC)
+ val, err := safeload(entrypoint - eyecatcherOffset)
+ if err != 0 {
+ return -1
+ }
+ if val != xplinkEyecatcher {
+ return -1
+ }
+
+ ppaoff, err := safeload(entrypoint - ppa1LocationOffset)
+ if err != 0 {
+ return -1
+ }
+
+ ppaoff >>= 32
+ return int64(ppaoff)
+}
+
+//-------------------------------
+// function descriptor pointer validity test
+// good pointer returns 0
+// bad pointer returns 1
+
+// TODO: currently mksyscall_zos_s390x.go generate empty string for funcName
+// have correct funcName pass to the funcptrtest function
+func funcptrtest(funcptr uintptr, funcName string) uint64 {
+ entrypoint, err := safeload(funcptr + entrypointLocationOffset)
+ if err != 0 {
+ return 1
+ }
+
+ ppaoff := getPpaOffset(funcptr)
+ if ppaoff == -1 {
+ return 1
+ }
+
+ // PPA1 offset value is from the start of the entire function block, not the entrypoint
+ ppa1 := (entrypoint - eyecatcherOffset) + uintptr(ppaoff)
+
+ nameLen, err := safeload(ppa1 + nameLenOffset)
+ if err != 0 {
+ return 1
+ }
+
+ nameLen >>= 48
+ if nameLen > 128 {
+ return 1
+ }
+
+ // no function name input to argument end here
+ if funcName == "" {
+ return 0
+ }
+
+ var funcname [128]byte
+ for i := 0; i < int(nameLen); i += 8 {
+ v, err := safeload(ppa1 + nameOffset + uintptr(i))
+ if err != 0 {
+ return 1
+ }
+ funcname[i] = byte(v >> 56)
+ funcname[i+1] = byte(v >> 48)
+ funcname[i+2] = byte(v >> 40)
+ funcname[i+3] = byte(v >> 32)
+ funcname[i+4] = byte(v >> 24)
+ funcname[i+5] = byte(v >> 16)
+ funcname[i+6] = byte(v >> 8)
+ funcname[i+7] = byte(v)
+ }
+
+ runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___E2A_L<<4, // __e2a_l
+ []uintptr{uintptr(unsafe.Pointer(&funcname[0])), nameLen})
+
+ name := string(funcname[:nameLen])
+ if name != funcName {
+ return 1
+ }
+
+ return 0
+}
+
+// For detection of capabilities on a system.
+// Is function descriptor f a valid function?
+func isValidLeFunc(f uintptr) error {
+ ret := funcptrtest(f, "")
+ if ret != 0 {
+ return fmt.Errorf("Bad pointer, not an LE function ")
+ }
+ return nil
+}
+
+// Retrieve function name from descriptor
+func getLeFuncName(f uintptr) (string, error) {
+ // assume it has been checked, only check ppa1 validity here
+ entry := ((*[2]uintptr)(unsafe.Pointer(f)))[1]
+ preamp := ((*[4]uint32)(unsafe.Pointer(entry - eyecatcherOffset)))
+
+ offsetPpa1 := preamp[2]
+ if offsetPpa1 > 0x0ffff {
+ return "", fmt.Errorf("PPA1 offset seems too big 0x%x\n", offsetPpa1)
+ }
+
+ ppa1 := uintptr(unsafe.Pointer(preamp)) + uintptr(offsetPpa1)
+ res := ptrtest(ppa1)
+ if res != 0 {
+ return "", fmt.Errorf("PPA1 address not valid")
+ }
+
+ size := *(*uint16)(unsafe.Pointer(ppa1 + nameLenOffset))
+ if size > 128 {
+ return "", fmt.Errorf("Function name seems too long, length=%d\n", size)
+ }
+
+ var name [128]byte
+ funcname := (*[128]byte)(unsafe.Pointer(ppa1 + nameOffset))
+ copy(name[0:size], funcname[0:size])
+
+ runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___E2A_L<<4, // __e2a_l
+ []uintptr{uintptr(unsafe.Pointer(&name[0])), uintptr(size)})
+
+ return string(name[:size]), nil
+}
+
+// Check z/OS version
+func zosLeVersion() (version, release uint32) {
+ p1 := (*(*uintptr)(unsafe.Pointer(uintptr(1208)))) >> 32
+ p1 = *(*uintptr)(unsafe.Pointer(uintptr(p1 + 88)))
+ p1 = *(*uintptr)(unsafe.Pointer(uintptr(p1 + 8)))
+ p1 = *(*uintptr)(unsafe.Pointer(uintptr(p1 + 984)))
+ vrm := *(*uint32)(unsafe.Pointer(p1 + 80))
+ version = (vrm & 0x00ff0000) >> 16
+ release = (vrm & 0x0000ff00) >> 8
+ return
+}
+
+// returns a zos C FILE * for stdio fd 0, 1, 2
+func ZosStdioFilep(fd int32) uintptr {
+ return uintptr(*(*uint64)(unsafe.Pointer(uintptr(*(*uint64)(unsafe.Pointer(uintptr(*(*uint64)(unsafe.Pointer(uintptr(uint64(*(*uint32)(unsafe.Pointer(uintptr(1208)))) + 80))) + uint64((fd+2)<<3))))))))
+}
func copyStat(stat *Stat_t, statLE *Stat_LE_t) {
stat.Dev = uint64(statLE.Dev)
@@ -65,6 +263,21 @@ func (d *Dirent) NameString() string {
}
}
+func DecodeData(dest []byte, sz int, val uint64) {
+ for i := 0; i < sz; i++ {
+ dest[sz-1-i] = byte((val >> (uint64(i * 8))) & 0xff)
+ }
+}
+
+func EncodeData(data []byte) uint64 {
+ var value uint64
+ sz := len(data)
+ for i := 0; i < sz; i++ {
+ value |= uint64(data[i]) << uint64(((sz - i - 1) * 8))
+ }
+ return value
+}
+
func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
if sa.Port < 0 || sa.Port > 0xFFFF {
return nil, 0, EINVAL
@@ -74,7 +287,9 @@ func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
p[0] = byte(sa.Port >> 8)
p[1] = byte(sa.Port)
- sa.raw.Addr = sa.Addr
+ for i := 0; i < len(sa.Addr); i++ {
+ sa.raw.Addr[i] = sa.Addr[i]
+ }
return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil
}
@@ -88,7 +303,9 @@ func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) {
p[0] = byte(sa.Port >> 8)
p[1] = byte(sa.Port)
sa.raw.Scope_id = sa.ZoneId
- sa.raw.Addr = sa.Addr
+ for i := 0; i < len(sa.Addr); i++ {
+ sa.raw.Addr[i] = sa.Addr[i]
+ }
return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil
}
@@ -146,7 +363,9 @@ func anyToSockaddr(_ int, rsa *RawSockaddrAny) (Sockaddr, error) {
sa := new(SockaddrInet4)
p := (*[2]byte)(unsafe.Pointer(&pp.Port))
sa.Port = int(p[0])<<8 + int(p[1])
- sa.Addr = pp.Addr
+ for i := 0; i < len(sa.Addr); i++ {
+ sa.Addr[i] = pp.Addr[i]
+ }
return sa, nil
case AF_INET6:
@@ -155,7 +374,9 @@ func anyToSockaddr(_ int, rsa *RawSockaddrAny) (Sockaddr, error) {
p := (*[2]byte)(unsafe.Pointer(&pp.Port))
sa.Port = int(p[0])<<8 + int(p[1])
sa.ZoneId = pp.Scope_id
- sa.Addr = pp.Addr
+ for i := 0; i < len(sa.Addr); i++ {
+ sa.Addr[i] = pp.Addr[i]
+ }
return sa, nil
}
return nil, EAFNOSUPPORT
@@ -177,6 +398,43 @@ func Accept(fd int) (nfd int, sa Sockaddr, err error) {
return
}
+func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) {
+ var rsa RawSockaddrAny
+ var len _Socklen = SizeofSockaddrAny
+ nfd, err = accept4(fd, &rsa, &len, flags)
+ if err != nil {
+ return
+ }
+ if len > SizeofSockaddrAny {
+ panic("RawSockaddrAny too small")
+ }
+ // TODO(neeilan): Remove 0 in call
+ sa, err = anyToSockaddr(0, &rsa)
+ if err != nil {
+ Close(nfd)
+ nfd = 0
+ }
+ return
+}
+
+func Ctermid() (tty string, err error) {
+ var termdev [1025]byte
+ runtime.EnterSyscall()
+ r0, err2, err1 := CallLeFuncWithPtrReturn(GetZosLibVec()+SYS___CTERMID_A<<4, uintptr(unsafe.Pointer(&termdev[0])))
+ runtime.ExitSyscall()
+ if r0 == 0 {
+ return "", fmt.Errorf("%s (errno2=0x%x)\n", err1.Error(), err2)
+ }
+ s := string(termdev[:])
+ idx := strings.Index(s, string(rune(0)))
+ if idx == -1 {
+ tty = s
+ } else {
+ tty = s[:idx]
+ }
+ return
+}
+
func (iov *Iovec) SetLen(length int) {
iov.Len = uint64(length)
}
@@ -190,10 +448,16 @@ func (cmsg *Cmsghdr) SetLen(length int) {
}
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
+//sys Flistxattr(fd int, dest []byte) (sz int, err error) = SYS___FLISTXATTR_A
+//sys Fremovexattr(fd int, attr string) (err error) = SYS___FREMOVEXATTR_A
//sys read(fd int, p []byte) (n int, err error)
//sys write(fd int, p []byte) (n int, err error)
+//sys Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) = SYS___FGETXATTR_A
+//sys Fsetxattr(fd int, attr string, data []byte, flag int) (err error) = SYS___FSETXATTR_A
+
//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) = SYS___ACCEPT_A
+//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) = SYS___ACCEPT4_A
//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = SYS___BIND_A
//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = SYS___CONNECT_A
//sysnb getgroups(n int, list *_Gid_t) (nn int, err error)
@@ -204,6 +468,7 @@ func (cmsg *Cmsghdr) SetLen(length int) {
//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) = SYS___GETPEERNAME_A
//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) = SYS___GETSOCKNAME_A
+//sys Removexattr(path string, attr string) (err error) = SYS___REMOVEXATTR_A
//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) = SYS___RECVFROM_A
//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) = SYS___SENDTO_A
//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) = SYS___RECVMSG_A
@@ -212,6 +477,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
//sys munmap(addr uintptr, length uintptr) (err error) = SYS_MUNMAP
//sys ioctl(fd int, req int, arg uintptr) (err error) = SYS_IOCTL
//sys ioctlPtr(fd int, req int, arg unsafe.Pointer) (err error) = SYS_IOCTL
+//sys shmat(id int, addr uintptr, flag int) (ret uintptr, err error) = SYS_SHMAT
+//sys shmctl(id int, cmd int, buf *SysvShmDesc) (result int, err error) = SYS_SHMCTL64
+//sys shmdt(addr uintptr) (err error) = SYS_SHMDT
+//sys shmget(key int, size int, flag int) (id int, err error) = SYS_SHMGET
//sys Access(path string, mode uint32) (err error) = SYS___ACCESS_A
//sys Chdir(path string) (err error) = SYS___CHDIR_A
@@ -220,14 +489,31 @@ func (cmsg *Cmsghdr) SetLen(length int) {
//sys Creat(path string, mode uint32) (fd int, err error) = SYS___CREAT_A
//sys Dup(oldfd int) (fd int, err error)
//sys Dup2(oldfd int, newfd int) (err error)
+//sys Dup3(oldfd int, newfd int, flags int) (err error) = SYS_DUP3
+//sys Dirfd(dirp uintptr) (fd int, err error) = SYS_DIRFD
+//sys EpollCreate(size int) (fd int, err error) = SYS_EPOLL_CREATE
+//sys EpollCreate1(flags int) (fd int, err error) = SYS_EPOLL_CREATE1
+//sys EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) = SYS_EPOLL_CTL
+//sys EpollPwait(epfd int, events []EpollEvent, msec int, sigmask *int) (n int, err error) = SYS_EPOLL_PWAIT
+//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_WAIT
//sys Errno2() (er2 int) = SYS___ERRNO2
-//sys Err2ad() (eadd *int) = SYS___ERR2AD
+//sys Eventfd(initval uint, flags int) (fd int, err error) = SYS_EVENTFD
//sys Exit(code int)
+//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error) = SYS___FACCESSAT_A
+
+func Faccessat2(dirfd int, path string, mode uint32, flags int) (err error) {
+ return Faccessat(dirfd, path, mode, flags)
+}
+
//sys Fchdir(fd int) (err error)
//sys Fchmod(fd int, mode uint32) (err error)
+//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) = SYS___FCHMODAT_A
//sys Fchown(fd int, uid int, gid int) (err error)
+//sys Fchownat(fd int, path string, uid int, gid int, flags int) (err error) = SYS___FCHOWNAT_A
//sys FcntlInt(fd uintptr, cmd int, arg int) (retval int, err error) = SYS_FCNTL
+//sys Fdatasync(fd int) (err error) = SYS_FDATASYNC
//sys fstat(fd int, stat *Stat_LE_t) (err error)
+//sys fstatat(dirfd int, path string, stat *Stat_LE_t, flags int) (err error) = SYS___FSTATAT_A
func Fstat(fd int, stat *Stat_t) (err error) {
var statLE Stat_LE_t
@@ -236,28 +522,208 @@ func Fstat(fd int, stat *Stat_t) (err error) {
return
}
+func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
+ var statLE Stat_LE_t
+ err = fstatat(dirfd, path, &statLE, flags)
+ copyStat(stat, &statLE)
+ return
+}
+
+func impl_Getxattr(path string, attr string, dest []byte) (sz int, err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ var _p1 *byte
+ _p1, err = BytePtrFromString(attr)
+ if err != nil {
+ return
+ }
+ var _p2 unsafe.Pointer
+ if len(dest) > 0 {
+ _p2 = unsafe.Pointer(&dest[0])
+ } else {
+ _p2 = unsafe.Pointer(&_zero)
+ }
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___GETXATTR_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)))
+ sz = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_GetxattrAddr() *(func(path string, attr string, dest []byte) (sz int, err error))
+
+var Getxattr = enter_Getxattr
+
+func enter_Getxattr(path string, attr string, dest []byte) (sz int, err error) {
+ funcref := get_GetxattrAddr()
+ if validGetxattr() {
+ *funcref = impl_Getxattr
+ } else {
+ *funcref = error_Getxattr
+ }
+ return (*funcref)(path, attr, dest)
+}
+
+func error_Getxattr(path string, attr string, dest []byte) (sz int, err error) {
+ return -1, ENOSYS
+}
+
+func validGetxattr() bool {
+ if funcptrtest(GetZosLibVec()+SYS___GETXATTR_A<<4, "") == 0 {
+ if name, err := getLeFuncName(GetZosLibVec() + SYS___GETXATTR_A<<4); err == nil {
+ return name == "__getxattr_a"
+ }
+ }
+ return false
+}
+
+//sys Lgetxattr(link string, attr string, dest []byte) (sz int, err error) = SYS___LGETXATTR_A
+//sys Lsetxattr(path string, attr string, data []byte, flags int) (err error) = SYS___LSETXATTR_A
+
+func impl_Setxattr(path string, attr string, data []byte, flags int) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ var _p1 *byte
+ _p1, err = BytePtrFromString(attr)
+ if err != nil {
+ return
+ }
+ var _p2 unsafe.Pointer
+ if len(data) > 0 {
+ _p2 = unsafe.Pointer(&data[0])
+ } else {
+ _p2 = unsafe.Pointer(&_zero)
+ }
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___SETXATTR_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_SetxattrAddr() *(func(path string, attr string, data []byte, flags int) (err error))
+
+var Setxattr = enter_Setxattr
+
+func enter_Setxattr(path string, attr string, data []byte, flags int) (err error) {
+ funcref := get_SetxattrAddr()
+ if validSetxattr() {
+ *funcref = impl_Setxattr
+ } else {
+ *funcref = error_Setxattr
+ }
+ return (*funcref)(path, attr, data, flags)
+}
+
+func error_Setxattr(path string, attr string, data []byte, flags int) (err error) {
+ return ENOSYS
+}
+
+func validSetxattr() bool {
+ if funcptrtest(GetZosLibVec()+SYS___SETXATTR_A<<4, "") == 0 {
+ if name, err := getLeFuncName(GetZosLibVec() + SYS___SETXATTR_A<<4); err == nil {
+ return name == "__setxattr_a"
+ }
+ }
+ return false
+}
+
+//sys Fstatfs(fd int, buf *Statfs_t) (err error) = SYS_FSTATFS
//sys Fstatvfs(fd int, stat *Statvfs_t) (err error) = SYS_FSTATVFS
//sys Fsync(fd int) (err error)
+//sys Futimes(fd int, tv []Timeval) (err error) = SYS_FUTIMES
+//sys Futimesat(dirfd int, path string, tv []Timeval) (err error) = SYS___FUTIMESAT_A
//sys Ftruncate(fd int, length int64) (err error)
-//sys Getpagesize() (pgsize int) = SYS_GETPAGESIZE
+//sys Getrandom(buf []byte, flags int) (n int, err error) = SYS_GETRANDOM
+//sys InotifyInit() (fd int, err error) = SYS_INOTIFY_INIT
+//sys InotifyInit1(flags int) (fd int, err error) = SYS_INOTIFY_INIT1
+//sys InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) = SYS___INOTIFY_ADD_WATCH_A
+//sys InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) = SYS_INOTIFY_RM_WATCH
+//sys Listxattr(path string, dest []byte) (sz int, err error) = SYS___LISTXATTR_A
+//sys Llistxattr(path string, dest []byte) (sz int, err error) = SYS___LLISTXATTR_A
+//sys Lremovexattr(path string, attr string) (err error) = SYS___LREMOVEXATTR_A
+//sys Lutimes(path string, tv []Timeval) (err error) = SYS___LUTIMES_A
//sys Mprotect(b []byte, prot int) (err error) = SYS_MPROTECT
//sys Msync(b []byte, flags int) (err error) = SYS_MSYNC
+//sys Console2(cmsg *ConsMsg2, modstr *byte, concmd *uint32) (err error) = SYS___CONSOLE2
+
+// Pipe2 begin
+
+//go:nosplit
+func getPipe2Addr() *(func([]int, int) error)
+
+var Pipe2 = pipe2Enter
+
+func pipe2Enter(p []int, flags int) (err error) {
+ if funcptrtest(GetZosLibVec()+SYS_PIPE2<<4, "") == 0 {
+ *getPipe2Addr() = pipe2Impl
+ } else {
+ *getPipe2Addr() = pipe2Error
+ }
+ return (*getPipe2Addr())(p, flags)
+}
+
+func pipe2Impl(p []int, flags int) (err error) {
+ var pp [2]_C_int
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_PIPE2<<4, uintptr(unsafe.Pointer(&pp[0])), uintptr(flags))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ } else {
+ p[0] = int(pp[0])
+ p[1] = int(pp[1])
+ }
+ return
+}
+func pipe2Error(p []int, flags int) (err error) {
+ return fmt.Errorf("Pipe2 is not available on this system")
+}
+
+// Pipe2 end
+
//sys Poll(fds []PollFd, timeout int) (n int, err error) = SYS_POLL
+
+func Readdir(dir uintptr) (dirent *Dirent, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___READDIR_A<<4, uintptr(dir))
+ runtime.ExitSyscall()
+ dirent = (*Dirent)(unsafe.Pointer(r0))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//sys Readdir_r(dirp uintptr, entry *direntLE, result **direntLE) (err error) = SYS___READDIR_R_A
+//sys Statfs(path string, buf *Statfs_t) (err error) = SYS___STATFS_A
+//sys Syncfs(fd int) (err error) = SYS_SYNCFS
//sys Times(tms *Tms) (ticks uintptr, err error) = SYS_TIMES
//sys W_Getmntent(buff *byte, size int) (lastsys int, err error) = SYS_W_GETMNTENT
//sys W_Getmntent_A(buff *byte, size int) (lastsys int, err error) = SYS___W_GETMNTENT_A
//sys mount_LE(path string, filesystem string, fstype string, mtm uint32, parmlen int32, parm string) (err error) = SYS___MOUNT_A
-//sys unmount(filesystem string, mtm int) (err error) = SYS___UMOUNT_A
+//sys unmount_LE(filesystem string, mtm int) (err error) = SYS___UMOUNT_A
//sys Chroot(path string) (err error) = SYS___CHROOT_A
//sys Select(nmsgsfds int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (ret int, err error) = SYS_SELECT
-//sysnb Uname(buf *Utsname) (err error) = SYS___UNAME_A
+//sysnb Uname(buf *Utsname) (err error) = SYS_____OSNAME_A
+//sys Unshare(flags int) (err error) = SYS_UNSHARE
func Ptsname(fd int) (name string, err error) {
- r0, _, e1 := syscall_syscall(SYS___PTSNAME_A, uintptr(fd), 0, 0)
- name = u2s(unsafe.Pointer(r0))
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithPtrReturn(GetZosLibVec()+SYS___PTSNAME_A<<4, uintptr(fd))
+ runtime.ExitSyscall()
+ if r0 == 0 {
+ err = errnoErr2(e1, e2)
+ } else {
+ name = u2s(unsafe.Pointer(r0))
}
return
}
@@ -272,13 +738,19 @@ func u2s(cstr unsafe.Pointer) string {
}
func Close(fd int) (err error) {
- _, _, e1 := syscall_syscall(SYS_CLOSE, uintptr(fd), 0, 0)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_CLOSE<<4, uintptr(fd))
+ runtime.ExitSyscall()
for i := 0; e1 == EAGAIN && i < 10; i++ {
- _, _, _ = syscall_syscall(SYS_USLEEP, uintptr(10), 0, 0)
- _, _, e1 = syscall_syscall(SYS_CLOSE, uintptr(fd), 0, 0)
+ runtime.EnterSyscall()
+ CallLeFuncWithErr(GetZosLibVec()+SYS_USLEEP<<4, uintptr(10))
+ runtime.ExitSyscall()
+ runtime.EnterSyscall()
+ r0, e2, e1 = CallLeFuncWithErr(GetZosLibVec()+SYS_CLOSE<<4, uintptr(fd))
+ runtime.ExitSyscall()
}
- if e1 != 0 {
- err = errnoErr(e1)
+ if r0 != 0 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -288,9 +760,15 @@ func Madvise(b []byte, advice int) (err error) {
return
}
+func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
+ return mapper.Mmap(fd, offset, length, prot, flags)
+}
+
+func Munmap(b []byte) (err error) {
+ return mapper.Munmap(b)
+}
+
//sys Gethostname(buf []byte) (err error) = SYS___GETHOSTNAME_A
-//sysnb Getegid() (egid int)
-//sysnb Geteuid() (uid int)
//sysnb Getgid() (gid int)
//sysnb Getpid() (pid int)
//sysnb Getpgid(pid int) (pgid int, err error) = SYS_GETPGID
@@ -317,11 +795,14 @@ func Getrusage(who int, rusage *Rusage) (err error) {
return
}
+//sys Getegid() (egid int) = SYS_GETEGID
+//sys Geteuid() (euid int) = SYS_GETEUID
//sysnb Getsid(pid int) (sid int, err error) = SYS_GETSID
//sysnb Getuid() (uid int)
//sysnb Kill(pid int, sig Signal) (err error)
//sys Lchown(path string, uid int, gid int) (err error) = SYS___LCHOWN_A
//sys Link(path string, link string) (err error) = SYS___LINK_A
+//sys Linkat(oldDirFd int, oldPath string, newDirFd int, newPath string, flags int) (err error) = SYS___LINKAT_A
//sys Listen(s int, n int) (err error)
//sys lstat(path string, stat *Stat_LE_t) (err error) = SYS___LSTAT_A
@@ -332,15 +813,150 @@ func Lstat(path string, stat *Stat_t) (err error) {
return
}
+// for checking symlinks begins with $VERSION/ $SYSNAME/ $SYSSYMR/ $SYSSYMA/
+func isSpecialPath(path []byte) (v bool) {
+ var special = [4][8]byte{
+ [8]byte{'V', 'E', 'R', 'S', 'I', 'O', 'N', '/'},
+ [8]byte{'S', 'Y', 'S', 'N', 'A', 'M', 'E', '/'},
+ [8]byte{'S', 'Y', 'S', 'S', 'Y', 'M', 'R', '/'},
+ [8]byte{'S', 'Y', 'S', 'S', 'Y', 'M', 'A', '/'}}
+
+ var i, j int
+ for i = 0; i < len(special); i++ {
+ for j = 0; j < len(special[i]); j++ {
+ if path[j] != special[i][j] {
+ break
+ }
+ }
+ if j == len(special[i]) {
+ return true
+ }
+ }
+ return false
+}
+
+func realpath(srcpath string, abspath []byte) (pathlen int, errno int) {
+ var source [1024]byte
+ copy(source[:], srcpath)
+ source[len(srcpath)] = 0
+ ret := runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___REALPATH_A<<4, //__realpath_a()
+ []uintptr{uintptr(unsafe.Pointer(&source[0])),
+ uintptr(unsafe.Pointer(&abspath[0]))})
+ if ret != 0 {
+ index := bytes.IndexByte(abspath[:], byte(0))
+ if index != -1 {
+ return index, 0
+ }
+ } else {
+ errptr := (*int)(unsafe.Pointer(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO<<4, []uintptr{}))) //__errno()
+ return 0, *errptr
+ }
+ return 0, 245 // EBADDATA 245
+}
+
+func Readlink(path string, buf []byte) (n int, err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ var _p1 unsafe.Pointer
+ if len(buf) > 0 {
+ _p1 = unsafe.Pointer(&buf[0])
+ } else {
+ _p1 = unsafe.Pointer(&_zero)
+ }
+ n = int(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___READLINK_A<<4,
+ []uintptr{uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))}))
+ runtime.KeepAlive(unsafe.Pointer(_p0))
+ if n == -1 {
+ value := *(*int32)(unsafe.Pointer(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO<<4, []uintptr{})))
+ err = errnoErr(Errno(value))
+ } else {
+ if buf[0] == '$' {
+ if isSpecialPath(buf[1:9]) {
+ cnt, err1 := realpath(path, buf)
+ if err1 == 0 {
+ n = cnt
+ }
+ }
+ }
+ }
+ return
+}
+
+func impl_Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ var _p1 unsafe.Pointer
+ if len(buf) > 0 {
+ _p1 = unsafe.Pointer(&buf[0])
+ } else {
+ _p1 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___READLINKAT_A<<4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
+ runtime.ExitSyscall()
+ n = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ return n, err
+ } else {
+ if buf[0] == '$' {
+ if isSpecialPath(buf[1:9]) {
+ cnt, err1 := realpath(path, buf)
+ if err1 == 0 {
+ n = cnt
+ }
+ }
+ }
+ }
+ return
+}
+
+//go:nosplit
+func get_ReadlinkatAddr() *(func(dirfd int, path string, buf []byte) (n int, err error))
+
+var Readlinkat = enter_Readlinkat
+
+func enter_Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
+ funcref := get_ReadlinkatAddr()
+ if funcptrtest(GetZosLibVec()+SYS___READLINKAT_A<<4, "") == 0 {
+ *funcref = impl_Readlinkat
+ } else {
+ *funcref = error_Readlinkat
+ }
+ return (*funcref)(dirfd, path, buf)
+}
+
+func error_Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
+ n = -1
+ err = ENOSYS
+ return
+}
+
//sys Mkdir(path string, mode uint32) (err error) = SYS___MKDIR_A
+//sys Mkdirat(dirfd int, path string, mode uint32) (err error) = SYS___MKDIRAT_A
//sys Mkfifo(path string, mode uint32) (err error) = SYS___MKFIFO_A
//sys Mknod(path string, mode uint32, dev int) (err error) = SYS___MKNOD_A
+//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error) = SYS___MKNODAT_A
+//sys PivotRoot(newroot string, oldroot string) (err error) = SYS___PIVOT_ROOT_A
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
-//sys Readlink(path string, buf []byte) (n int, err error) = SYS___READLINK_A
+//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) = SYS___PRCTL_A
+//sysnb Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT
//sys Rename(from string, to string) (err error) = SYS___RENAME_A
+//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) = SYS___RENAMEAT_A
+//sys Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) = SYS___RENAMEAT2_A
//sys Rmdir(path string) (err error) = SYS___RMDIR_A
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
+//sys Setegid(egid int) (err error) = SYS_SETEGID
+//sys Seteuid(euid int) (err error) = SYS_SETEUID
+//sys Sethostname(p []byte) (err error) = SYS___SETHOSTNAME_A
+//sys Setns(fd int, nstype int) (err error) = SYS_SETNS
//sys Setpriority(which int, who int, prio int) (err error)
//sysnb Setpgid(pid int, pgid int) (err error) = SYS_SETPGID
//sysnb Setrlimit(resource int, lim *Rlimit) (err error)
@@ -360,32 +976,57 @@ func Stat(path string, sta *Stat_t) (err error) {
}
//sys Symlink(path string, link string) (err error) = SYS___SYMLINK_A
+//sys Symlinkat(oldPath string, dirfd int, newPath string) (err error) = SYS___SYMLINKAT_A
//sys Sync() = SYS_SYNC
//sys Truncate(path string, length int64) (err error) = SYS___TRUNCATE_A
//sys Tcgetattr(fildes int, termptr *Termios) (err error) = SYS_TCGETATTR
//sys Tcsetattr(fildes int, when int, termptr *Termios) (err error) = SYS_TCSETATTR
//sys Umask(mask int) (oldmask int)
//sys Unlink(path string) (err error) = SYS___UNLINK_A
+//sys Unlinkat(dirfd int, path string, flags int) (err error) = SYS___UNLINKAT_A
//sys Utime(path string, utim *Utimbuf) (err error) = SYS___UTIME_A
//sys open(path string, mode int, perm uint32) (fd int, err error) = SYS___OPEN_A
func Open(path string, mode int, perm uint32) (fd int, err error) {
+ if mode&O_ACCMODE == 0 {
+ mode |= O_RDONLY
+ }
return open(path, mode, perm)
}
-func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
- wd, err := Getwd()
- if err != nil {
- return err
+//sys openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) = SYS___OPENAT_A
+
+func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
+ if flags&O_ACCMODE == 0 {
+ flags |= O_RDONLY
}
+ return openat(dirfd, path, flags, mode)
+}
- if err := Fchdir(dirfd); err != nil {
- return err
+//sys openat2(dirfd int, path string, open_how *OpenHow, size int) (fd int, err error) = SYS___OPENAT2_A
+
+func Openat2(dirfd int, path string, how *OpenHow) (fd int, err error) {
+ if how.Flags&O_ACCMODE == 0 {
+ how.Flags |= O_RDONLY
}
- defer Chdir(wd)
+ return openat2(dirfd, path, how, SizeofOpenHow)
+}
- return Mkfifo(path, mode)
+func ZosFdToPath(dirfd int) (path string, err error) {
+ var buffer [1024]byte
+ runtime.EnterSyscall()
+ ret, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_W_IOCTL<<4, uintptr(dirfd), 17, 1024, uintptr(unsafe.Pointer(&buffer[0])))
+ runtime.ExitSyscall()
+ if ret == 0 {
+ zb := bytes.IndexByte(buffer[:], 0)
+ if zb == -1 {
+ zb = len(buffer)
+ }
+ CallLeFuncWithErr(GetZosLibVec()+SYS___E2A_L<<4, uintptr(unsafe.Pointer(&buffer[0])), uintptr(zb))
+ return string(buffer[:zb]), nil
+ }
+ return "", errnoErr2(e1, e2)
}
//sys remove(path string) (err error)
@@ -403,10 +1044,12 @@ func Getcwd(buf []byte) (n int, err error) {
} else {
p = unsafe.Pointer(&_zero)
}
- _, _, e := syscall_syscall(SYS___GETCWD_A, uintptr(p), uintptr(len(buf)), 0)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithPtrReturn(GetZosLibVec()+SYS___GETCWD_A<<4, uintptr(p), uintptr(len(buf)))
+ runtime.ExitSyscall()
n = clen(buf) + 1
- if e != 0 {
- err = errnoErr(e)
+ if r0 == 0 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -520,9 +1163,41 @@ func (w WaitStatus) StopSignal() Signal {
func (w WaitStatus) TrapCause() int { return -1 }
+//sys waitid(idType int, id int, info *Siginfo, options int) (err error)
+
+func Waitid(idType int, id int, info *Siginfo, options int, rusage *Rusage) (err error) {
+ return waitid(idType, id, info, options)
+}
+
//sys waitpid(pid int, wstatus *_C_int, options int) (wpid int, err error)
-func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) {
+func impl_Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_WAIT4<<4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)))
+ runtime.ExitSyscall()
+ wpid = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_Wait4Addr() *(func(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error))
+
+var Wait4 = enter_Wait4
+
+func enter_Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) {
+ funcref := get_Wait4Addr()
+ if funcptrtest(GetZosLibVec()+SYS_WAIT4<<4, "") == 0 {
+ *funcref = impl_Wait4
+ } else {
+ *funcref = legacyWait4
+ }
+ return (*funcref)(pid, wstatus, options, rusage)
+}
+
+func legacyWait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) {
// TODO(mundaym): z/OS doesn't have wait4. I don't think getrusage does what we want.
// At the moment rusage will not be touched.
var status _C_int
@@ -571,23 +1246,62 @@ func Pipe(p []int) (err error) {
}
var pp [2]_C_int
err = pipe(&pp)
- if err == nil {
- p[0] = int(pp[0])
- p[1] = int(pp[1])
- }
+ p[0] = int(pp[0])
+ p[1] = int(pp[1])
return
}
//sys utimes(path string, timeval *[2]Timeval) (err error) = SYS___UTIMES_A
func Utimes(path string, tv []Timeval) (err error) {
+ if tv == nil {
+ return utimes(path, nil)
+ }
if len(tv) != 2 {
return EINVAL
}
return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
}
-func UtimesNano(path string, ts []Timespec) error {
+//sys utimensat(dirfd int, path string, ts *[2]Timespec, flags int) (err error) = SYS___UTIMENSAT_A
+
+func validUtimensat() bool {
+ if funcptrtest(GetZosLibVec()+SYS___UTIMENSAT_A<<4, "") == 0 {
+ if name, err := getLeFuncName(GetZosLibVec() + SYS___UTIMENSAT_A<<4); err == nil {
+ return name == "__utimensat_a"
+ }
+ }
+ return false
+}
+
+// Begin UtimesNano
+
+//go:nosplit
+func get_UtimesNanoAddr() *(func(path string, ts []Timespec) (err error))
+
+var UtimesNano = enter_UtimesNano
+
+func enter_UtimesNano(path string, ts []Timespec) (err error) {
+ funcref := get_UtimesNanoAddr()
+ if validUtimensat() {
+ *funcref = utimesNanoImpl
+ } else {
+ *funcref = legacyUtimesNano
+ }
+ return (*funcref)(path, ts)
+}
+
+func utimesNanoImpl(path string, ts []Timespec) (err error) {
+ if ts == nil {
+ return utimensat(AT_FDCWD, path, nil, 0)
+ }
+ if len(ts) != 2 {
+ return EINVAL
+ }
+ return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
+}
+
+func legacyUtimesNano(path string, ts []Timespec) (err error) {
if len(ts) != 2 {
return EINVAL
}
@@ -600,6 +1314,70 @@ func UtimesNano(path string, ts []Timespec) error {
return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
}
+// End UtimesNano
+
+// Begin UtimesNanoAt
+
+//go:nosplit
+func get_UtimesNanoAtAddr() *(func(dirfd int, path string, ts []Timespec, flags int) (err error))
+
+var UtimesNanoAt = enter_UtimesNanoAt
+
+func enter_UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) (err error) {
+ funcref := get_UtimesNanoAtAddr()
+ if validUtimensat() {
+ *funcref = utimesNanoAtImpl
+ } else {
+ *funcref = legacyUtimesNanoAt
+ }
+ return (*funcref)(dirfd, path, ts, flags)
+}
+
+func utimesNanoAtImpl(dirfd int, path string, ts []Timespec, flags int) (err error) {
+ if ts == nil {
+ return utimensat(dirfd, path, nil, flags)
+ }
+ if len(ts) != 2 {
+ return EINVAL
+ }
+ return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags)
+}
+
+func legacyUtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) (err error) {
+ if path[0] != '/' {
+ dirPath, err := ZosFdToPath(dirfd)
+ if err != nil {
+ return err
+ }
+ path = dirPath + "/" + path
+ }
+ if flags == AT_SYMLINK_NOFOLLOW {
+ if len(ts) != 2 {
+ return EINVAL
+ }
+
+ if ts[0].Nsec >= 5e8 {
+ ts[0].Sec++
+ }
+ ts[0].Nsec = 0
+ if ts[1].Nsec >= 5e8 {
+ ts[1].Sec++
+ }
+ ts[1].Nsec = 0
+
+ // Not as efficient as it could be because Timespec and
+ // Timeval have different types in the different OSes
+ tv := []Timeval{
+ NsecToTimeval(TimespecToNsec(ts[0])),
+ NsecToTimeval(TimespecToNsec(ts[1])),
+ }
+ return Lutimes(path, tv)
+ }
+ return UtimesNano(path, ts)
+}
+
+// End UtimesNanoAt
+
func Getsockname(fd int) (sa Sockaddr, err error) {
var rsa RawSockaddrAny
var len _Socklen = SizeofSockaddrAny
@@ -1191,62 +1969,41 @@ func Opendir(name string) (uintptr, error) {
if err != nil {
return 0, err
}
- dir, _, e := syscall_syscall(SYS___OPENDIR_A, uintptr(unsafe.Pointer(p)), 0, 0)
- runtime.KeepAlive(unsafe.Pointer(p))
- if e != 0 {
- err = errnoErr(e)
- }
- return dir, err
-}
-
-// clearsyscall.Errno resets the errno value to 0.
-func clearErrno()
-
-func Readdir(dir uintptr) (*Dirent, error) {
- var ent Dirent
- var res uintptr
- // __readdir_r_a returns errno at the end of the directory stream, rather than 0.
- // Therefore to avoid false positives we clear errno before calling it.
-
- // TODO(neeilan): Commented this out to get sys/unix compiling on z/OS. Uncomment and fix. Error: "undefined: clearsyscall"
- //clearsyscall.Errno() // TODO(mundaym): check pre-emption rules.
-
- e, _, _ := syscall_syscall(SYS___READDIR_R_A, dir, uintptr(unsafe.Pointer(&ent)), uintptr(unsafe.Pointer(&res)))
- var err error
- if e != 0 {
- err = errnoErr(Errno(e))
- }
- if res == 0 {
- return nil, err
- }
- return &ent, err
-}
-
-func readdir_r(dirp uintptr, entry *direntLE, result **direntLE) (err error) {
- r0, _, e1 := syscall_syscall(SYS___READDIR_R_A, dirp, uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
- if int64(r0) == -1 {
- err = errnoErr(Errno(e1))
+ err = nil
+ runtime.EnterSyscall()
+ dir, e2, e1 := CallLeFuncWithPtrReturn(GetZosLibVec()+SYS___OPENDIR_A<<4, uintptr(unsafe.Pointer(p)))
+ runtime.ExitSyscall()
+ runtime.KeepAlive(unsafe.Pointer(p))
+ if dir == 0 {
+ err = errnoErr2(e1, e2)
}
- return
+ return dir, err
}
+// clearsyscall.Errno resets the errno value to 0.
+func clearErrno()
+
func Closedir(dir uintptr) error {
- _, _, e := syscall_syscall(SYS_CLOSEDIR, dir, 0, 0)
- if e != 0 {
- return errnoErr(e)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_CLOSEDIR<<4, dir)
+ runtime.ExitSyscall()
+ if r0 != 0 {
+ return errnoErr2(e1, e2)
}
return nil
}
func Seekdir(dir uintptr, pos int) {
- _, _, _ = syscall_syscall(SYS_SEEKDIR, dir, uintptr(pos), 0)
+ runtime.EnterSyscall()
+ CallLeFuncWithErr(GetZosLibVec()+SYS_SEEKDIR<<4, dir, uintptr(pos))
+ runtime.ExitSyscall()
}
func Telldir(dir uintptr) (int, error) {
- p, _, e := syscall_syscall(SYS_TELLDIR, dir, 0, 0)
+ p, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_TELLDIR<<4, dir)
pos := int(p)
- if pos == -1 {
- return pos, errnoErr(e)
+ if int64(p) == -1 {
+ return pos, errnoErr2(e1, e2)
}
return pos, nil
}
@@ -1261,19 +2018,55 @@ func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
*(*int64)(unsafe.Pointer(&flock[4])) = lk.Start
*(*int64)(unsafe.Pointer(&flock[12])) = lk.Len
*(*int32)(unsafe.Pointer(&flock[20])) = lk.Pid
- _, _, errno := syscall_syscall(SYS_FCNTL, fd, uintptr(cmd), uintptr(unsafe.Pointer(&flock)))
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FCNTL<<4, fd, uintptr(cmd), uintptr(unsafe.Pointer(&flock)))
+ runtime.ExitSyscall()
lk.Type = *(*int16)(unsafe.Pointer(&flock[0]))
lk.Whence = *(*int16)(unsafe.Pointer(&flock[2]))
lk.Start = *(*int64)(unsafe.Pointer(&flock[4]))
lk.Len = *(*int64)(unsafe.Pointer(&flock[12]))
lk.Pid = *(*int32)(unsafe.Pointer(&flock[20]))
- if errno == 0 {
+ if r0 == 0 {
return nil
}
- return errno
+ return errnoErr2(e1, e2)
+}
+
+func impl_Flock(fd int, how int) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FLOCK<<4, uintptr(fd), uintptr(how))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_FlockAddr() *(func(fd int, how int) (err error))
+
+var Flock = enter_Flock
+
+func validFlock(fp uintptr) bool {
+ if funcptrtest(GetZosLibVec()+SYS_FLOCK<<4, "") == 0 {
+ if name, err := getLeFuncName(GetZosLibVec() + SYS_FLOCK<<4); err == nil {
+ return name == "flock"
+ }
+ }
+ return false
+}
+
+func enter_Flock(fd int, how int) (err error) {
+ funcref := get_FlockAddr()
+ if validFlock(GetZosLibVec() + SYS_FLOCK<<4) {
+ *funcref = impl_Flock
+ } else {
+ *funcref = legacyFlock
+ }
+ return (*funcref)(fd, how)
}
-func Flock(fd int, how int) error {
+func legacyFlock(fd int, how int) error {
var flock_type int16
var fcntl_cmd int
@@ -1307,41 +2100,51 @@ func Flock(fd int, how int) error {
}
func Mlock(b []byte) (err error) {
- _, _, e1 := syscall_syscall(SYS___MLOCKALL, _BPX_NONSWAP, 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___MLOCKALL<<4, _BPX_NONSWAP)
+ runtime.ExitSyscall()
+ if r0 != 0 {
+ err = errnoErr2(e1, e2)
}
return
}
func Mlock2(b []byte, flags int) (err error) {
- _, _, e1 := syscall_syscall(SYS___MLOCKALL, _BPX_NONSWAP, 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___MLOCKALL<<4, _BPX_NONSWAP)
+ runtime.ExitSyscall()
+ if r0 != 0 {
+ err = errnoErr2(e1, e2)
}
return
}
func Mlockall(flags int) (err error) {
- _, _, e1 := syscall_syscall(SYS___MLOCKALL, _BPX_NONSWAP, 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___MLOCKALL<<4, _BPX_NONSWAP)
+ runtime.ExitSyscall()
+ if r0 != 0 {
+ err = errnoErr2(e1, e2)
}
return
}
func Munlock(b []byte) (err error) {
- _, _, e1 := syscall_syscall(SYS___MLOCKALL, _BPX_SWAP, 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___MLOCKALL<<4, _BPX_SWAP)
+ runtime.ExitSyscall()
+ if r0 != 0 {
+ err = errnoErr2(e1, e2)
}
return
}
func Munlockall() (err error) {
- _, _, e1 := syscall_syscall(SYS___MLOCKALL, _BPX_SWAP, 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___MLOCKALL<<4, _BPX_SWAP)
+ runtime.ExitSyscall()
+ if r0 != 0 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1372,15 +2175,104 @@ func ClockGettime(clockid int32, ts *Timespec) error {
return nil
}
-func Statfs(path string, stat *Statfs_t) (err error) {
- fd, err := open(path, O_RDONLY, 0)
- defer Close(fd)
- if err != nil {
- return err
+// Chtag
+
+//go:nosplit
+func get_ChtagAddr() *(func(path string, ccsid uint64, textbit uint64) error)
+
+var Chtag = enter_Chtag
+
+func enter_Chtag(path string, ccsid uint64, textbit uint64) error {
+ funcref := get_ChtagAddr()
+ if validSetxattr() {
+ *funcref = impl_Chtag
+ } else {
+ *funcref = legacy_Chtag
+ }
+ return (*funcref)(path, ccsid, textbit)
+}
+
+func legacy_Chtag(path string, ccsid uint64, textbit uint64) error {
+ tag := ccsid<<16 | textbit<<15
+ var tag_buff [8]byte
+ DecodeData(tag_buff[:], 8, tag)
+ return Setxattr(path, "filetag", tag_buff[:], XATTR_REPLACE)
+}
+
+func impl_Chtag(path string, ccsid uint64, textbit uint64) error {
+ tag := ccsid<<16 | textbit<<15
+ var tag_buff [4]byte
+ DecodeData(tag_buff[:], 4, tag)
+ return Setxattr(path, "system.filetag", tag_buff[:], XATTR_REPLACE)
+}
+
+// End of Chtag
+
+// Nanosleep
+
+//go:nosplit
+func get_NanosleepAddr() *(func(time *Timespec, leftover *Timespec) error)
+
+var Nanosleep = enter_Nanosleep
+
+func enter_Nanosleep(time *Timespec, leftover *Timespec) error {
+ funcref := get_NanosleepAddr()
+ if funcptrtest(GetZosLibVec()+SYS_NANOSLEEP<<4, "") == 0 {
+ *funcref = impl_Nanosleep
+ } else {
+ *funcref = legacyNanosleep
+ }
+ return (*funcref)(time, leftover)
+}
+
+func impl_Nanosleep(time *Timespec, leftover *Timespec) error {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_NANOSLEEP<<4, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ return errnoErr2(e1, e2)
+ }
+ return nil
+}
+
+func legacyNanosleep(time *Timespec, leftover *Timespec) error {
+ t0 := runtime.Nanotime1()
+ var secrem uint32
+ var nsecrem uint32
+ total := time.Sec*1000000000 + time.Nsec
+ elapsed := runtime.Nanotime1() - t0
+ var rv int32
+ var rc int32
+ var err error
+ // repeatedly sleep for 1 second until less than 1 second left
+ for total-elapsed > 1000000000 {
+ rv, rc, _ = BpxCondTimedWait(uint32(1), uint32(0), uint32(CW_CONDVAR), &secrem, &nsecrem)
+ if rv != 0 && rc != 112 { // 112 is EAGAIN
+ if leftover != nil && rc == 120 { // 120 is EINTR
+ leftover.Sec = int64(secrem)
+ leftover.Nsec = int64(nsecrem)
+ }
+ err = Errno(rc)
+ return err
+ }
+ elapsed = runtime.Nanotime1() - t0
+ }
+ // sleep the remainder
+ if total > elapsed {
+ rv, rc, _ = BpxCondTimedWait(uint32(0), uint32(total-elapsed), uint32(CW_CONDVAR), &secrem, &nsecrem)
+ }
+ if leftover != nil && rc == 120 {
+ leftover.Sec = int64(secrem)
+ leftover.Nsec = int64(nsecrem)
}
- return Fstatfs(fd, stat)
+ if rv != 0 && rc != 112 {
+ err = Errno(rc)
+ }
+ return err
}
+// End of Nanosleep
+
var (
Stdin = 0
Stdout = 1
@@ -1395,6 +2287,9 @@ var (
errENOENT error = syscall.ENOENT
)
+var ZosTraceLevel int
+var ZosTracefile *os.File
+
var (
signalNameMapOnce sync.Once
signalNameMap map[string]syscall.Signal
@@ -1416,6 +2311,56 @@ func errnoErr(e Errno) error {
return e
}
+var reg *regexp.Regexp
+
+// enhanced with zos specific errno2
+func errnoErr2(e Errno, e2 uintptr) error {
+ switch e {
+ case 0:
+ return nil
+ case EAGAIN:
+ return errEAGAIN
+ /*
+ Allow the retrieval of errno2 for EINVAL and ENOENT on zos
+ case EINVAL:
+ return errEINVAL
+ case ENOENT:
+ return errENOENT
+ */
+ }
+ if ZosTraceLevel > 0 {
+ var name string
+ if reg == nil {
+ reg = regexp.MustCompile("(^unix\\.[^/]+$|.*\\/unix\\.[^/]+$)")
+ }
+ i := 1
+ pc, file, line, ok := runtime.Caller(i)
+ if ok {
+ name = runtime.FuncForPC(pc).Name()
+ }
+ for ok && reg.MatchString(runtime.FuncForPC(pc).Name()) {
+ i += 1
+ pc, file, line, ok = runtime.Caller(i)
+ }
+ if ok {
+ if ZosTracefile == nil {
+ ZosConsolePrintf("From %s:%d\n", file, line)
+ ZosConsolePrintf("%s: %s (errno2=0x%x)\n", name, e.Error(), e2)
+ } else {
+ fmt.Fprintf(ZosTracefile, "From %s:%d\n", file, line)
+ fmt.Fprintf(ZosTracefile, "%s: %s (errno2=0x%x)\n", name, e.Error(), e2)
+ }
+ } else {
+ if ZosTracefile == nil {
+ ZosConsolePrintf("%s (errno2=0x%x)\n", e.Error(), e2)
+ } else {
+ fmt.Fprintf(ZosTracefile, "%s (errno2=0x%x)\n", e.Error(), e2)
+ }
+ }
+ }
+ return e
+}
+
// ErrnoName returns the error name for error number e.
func ErrnoName(e Errno) string {
i := sort.Search(len(errorList), func(i int) bool {
@@ -1474,6 +2419,9 @@ func (m *mmapper) Mmap(fd int, offset int64, length int, prot int, flags int) (d
return nil, EINVAL
}
+ // Set __MAP_64 by default
+ flags |= __MAP_64
+
// Map the requested memory.
addr, errno := m.mmap(0, uintptr(length), prot, flags, fd, offset)
if errno != nil {
@@ -1520,14 +2468,6 @@ func (m *mmapper) Munmap(data []byte) (err error) {
return nil
}
-func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
- return mapper.Mmap(fd, offset, length, prot, flags)
-}
-
-func Munmap(b []byte) (err error) {
- return mapper.Munmap(b)
-}
-
func Read(fd int, p []byte) (n int, err error) {
n, err = read(fd, p)
if raceenabled {
@@ -1786,83 +2726,170 @@ func Exec(argv0 string, argv []string, envv []string) error {
return syscall.Exec(argv0, argv, envv)
}
-func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
+func Getag(path string) (ccsid uint16, flag uint16, err error) {
+ var val [8]byte
+ sz, err := Getxattr(path, "ccsid", val[:])
+ if err != nil {
+ return
+ }
+ ccsid = uint16(EncodeData(val[0:sz]))
+ sz, err = Getxattr(path, "flags", val[:])
+ if err != nil {
+ return
+ }
+ flag = uint16(EncodeData(val[0:sz]) >> 15)
+ return
+}
+
+// Mount begin
+func impl_Mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(source)
+ if err != nil {
+ return
+ }
+ var _p1 *byte
+ _p1, err = BytePtrFromString(target)
+ if err != nil {
+ return
+ }
+ var _p2 *byte
+ _p2, err = BytePtrFromString(fstype)
+ if err != nil {
+ return
+ }
+ var _p3 *byte
+ _p3, err = BytePtrFromString(data)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___MOUNT1_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(_p3)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_MountAddr() *(func(source string, target string, fstype string, flags uintptr, data string) (err error))
+
+var Mount = enter_Mount
+
+func enter_Mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
+ funcref := get_MountAddr()
+ if validMount() {
+ *funcref = impl_Mount
+ } else {
+ *funcref = legacyMount
+ }
+ return (*funcref)(source, target, fstype, flags, data)
+}
+
+func legacyMount(source string, target string, fstype string, flags uintptr, data string) (err error) {
if needspace := 8 - len(fstype); needspace <= 0 {
- fstype = fstype[:8]
+ fstype = fstype[0:8]
} else {
- fstype += " "[:needspace]
+ fstype += " "[0:needspace]
}
return mount_LE(target, source, fstype, uint32(flags), int32(len(data)), data)
}
-func Unmount(name string, mtm int) (err error) {
+func validMount() bool {
+ if funcptrtest(GetZosLibVec()+SYS___MOUNT1_A<<4, "") == 0 {
+ if name, err := getLeFuncName(GetZosLibVec() + SYS___MOUNT1_A<<4); err == nil {
+ return name == "__mount1_a"
+ }
+ }
+ return false
+}
+
+// Mount end
+
+// Unmount begin
+func impl_Unmount(target string, flags int) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(target)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___UMOUNT2_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(flags))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_UnmountAddr() *(func(target string, flags int) (err error))
+
+var Unmount = enter_Unmount
+
+func enter_Unmount(target string, flags int) (err error) {
+ funcref := get_UnmountAddr()
+ if funcptrtest(GetZosLibVec()+SYS___UMOUNT2_A<<4, "") == 0 {
+ *funcref = impl_Unmount
+ } else {
+ *funcref = legacyUnmount
+ }
+ return (*funcref)(target, flags)
+}
+
+func legacyUnmount(name string, mtm int) (err error) {
// mountpoint is always a full path and starts with a '/'
// check if input string is not a mountpoint but a filesystem name
if name[0] != '/' {
- return unmount(name, mtm)
+ return unmount_LE(name, mtm)
}
// treat name as mountpoint
b2s := func(arr []byte) string {
- nulli := bytes.IndexByte(arr, 0)
- if nulli == -1 {
- return string(arr)
- } else {
- return string(arr[:nulli])
+ var str string
+ for i := 0; i < len(arr); i++ {
+ if arr[i] == 0 {
+ str = string(arr[:i])
+ break
+ }
}
+ return str
}
var buffer struct {
header W_Mnth
fsinfo [64]W_Mntent
}
- fsCount, err := W_Getmntent_A((*byte)(unsafe.Pointer(&buffer)), int(unsafe.Sizeof(buffer)))
- if err != nil {
- return err
- }
- if fsCount == 0 {
- return EINVAL
- }
- for i := 0; i < fsCount; i++ {
- if b2s(buffer.fsinfo[i].Mountpoint[:]) == name {
- err = unmount(b2s(buffer.fsinfo[i].Fsname[:]), mtm)
- break
+ fs_count, err := W_Getmntent_A((*byte)(unsafe.Pointer(&buffer)), int(unsafe.Sizeof(buffer)))
+ if err == nil {
+ err = EINVAL
+ for i := 0; i < fs_count; i++ {
+ if b2s(buffer.fsinfo[i].Mountpoint[:]) == name {
+ err = unmount_LE(b2s(buffer.fsinfo[i].Fsname[:]), mtm)
+ break
+ }
}
+ } else if fs_count == 0 {
+ err = EINVAL
}
return err
}
-func fdToPath(dirfd int) (path string, err error) {
- var buffer [1024]byte
- // w_ctrl()
- ret := runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS_W_IOCTL<<4,
- []uintptr{uintptr(dirfd), 17, 1024, uintptr(unsafe.Pointer(&buffer[0]))})
- if ret == 0 {
- zb := bytes.IndexByte(buffer[:], 0)
- if zb == -1 {
- zb = len(buffer)
- }
- // __e2a_l()
- runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___E2A_L<<4,
- []uintptr{uintptr(unsafe.Pointer(&buffer[0])), uintptr(zb)})
- return string(buffer[:zb]), nil
- }
- // __errno()
- errno := int(*(*int32)(unsafe.Pointer(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO<<4,
- []uintptr{}))))
- // __errno2()
- errno2 := int(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO2<<4,
- []uintptr{}))
- // strerror_r()
- ret = runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS_STRERROR_R<<4,
- []uintptr{uintptr(errno), uintptr(unsafe.Pointer(&buffer[0])), 1024})
- if ret == 0 {
- zb := bytes.IndexByte(buffer[:], 0)
- if zb == -1 {
- zb = len(buffer)
- }
- return "", fmt.Errorf("%s (errno2=0x%x)", buffer[:zb], errno2)
- } else {
- return "", fmt.Errorf("fdToPath errno %d (errno2=0x%x)", errno, errno2)
+// Unmount end
+
+func direntIno(buf []byte) (uint64, bool) {
+ return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
+}
+
+func direntReclen(buf []byte) (uint64, bool) {
+ return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
+}
+
+func direntNamlen(buf []byte) (uint64, bool) {
+ reclen, ok := direntReclen(buf)
+ if !ok {
+ return 0, false
}
+ return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
}
func direntLeToDirentUnix(dirent *direntLE, dir uintptr, path string) (Dirent, error) {
@@ -1904,7 +2931,7 @@ func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
}
// Get path from fd to avoid unavailable call (fdopendir)
- path, err := fdToPath(fd)
+ path, err := ZosFdToPath(fd)
if err != nil {
return 0, err
}
@@ -1918,7 +2945,7 @@ func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
for {
var entryLE direntLE
var entrypLE *direntLE
- e := readdir_r(d, &entryLE, &entrypLE)
+ e := Readdir_r(d, &entryLE, &entrypLE)
if e != nil {
return n, e
}
@@ -1964,23 +2991,127 @@ func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
return n, nil
}
-func ReadDirent(fd int, buf []byte) (n int, err error) {
- var base = (*uintptr)(unsafe.Pointer(new(uint64)))
- return Getdirentries(fd, buf, base)
+func Err2ad() (eadd *int) {
+ r0, _, _ := CallLeFuncWithErr(GetZosLibVec() + SYS___ERR2AD<<4)
+ eadd = (*int)(unsafe.Pointer(r0))
+ return
}
-func direntIno(buf []byte) (uint64, bool) {
- return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
+func ZosConsolePrintf(format string, v ...interface{}) (int, error) {
+ type __cmsg struct {
+ _ uint16
+ _ [2]uint8
+ __msg_length uint32
+ __msg uintptr
+ _ [4]uint8
+ }
+ msg := fmt.Sprintf(format, v...)
+ strptr := unsafe.Pointer((*reflect.StringHeader)(unsafe.Pointer(&msg)).Data)
+ len := (*reflect.StringHeader)(unsafe.Pointer(&msg)).Len
+ cmsg := __cmsg{__msg_length: uint32(len), __msg: uintptr(strptr)}
+ cmd := uint32(0)
+ runtime.EnterSyscall()
+ rc, err2, err1 := CallLeFuncWithErr(GetZosLibVec()+SYS_____CONSOLE_A<<4, uintptr(unsafe.Pointer(&cmsg)), 0, uintptr(unsafe.Pointer(&cmd)))
+ runtime.ExitSyscall()
+ if rc != 0 {
+ return 0, fmt.Errorf("%s (errno2=0x%x)\n", err1.Error(), err2)
+ }
+ return 0, nil
+}
+func ZosStringToEbcdicBytes(str string, nullterm bool) (ebcdicBytes []byte) {
+ if nullterm {
+ ebcdicBytes = []byte(str + "\x00")
+ } else {
+ ebcdicBytes = []byte(str)
+ }
+ A2e(ebcdicBytes)
+ return
+}
+func ZosEbcdicBytesToString(b []byte, trimRight bool) (str string) {
+ res := make([]byte, len(b))
+ copy(res, b)
+ E2a(res)
+ if trimRight {
+ str = string(bytes.TrimRight(res, " \x00"))
+ } else {
+ str = string(res)
+ }
+ return
}
-func direntReclen(buf []byte) (uint64, bool) {
- return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
+func fdToPath(dirfd int) (path string, err error) {
+ var buffer [1024]byte
+ // w_ctrl()
+ ret := runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS_W_IOCTL<<4,
+ []uintptr{uintptr(dirfd), 17, 1024, uintptr(unsafe.Pointer(&buffer[0]))})
+ if ret == 0 {
+ zb := bytes.IndexByte(buffer[:], 0)
+ if zb == -1 {
+ zb = len(buffer)
+ }
+ // __e2a_l()
+ runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___E2A_L<<4,
+ []uintptr{uintptr(unsafe.Pointer(&buffer[0])), uintptr(zb)})
+ return string(buffer[:zb]), nil
+ }
+ // __errno()
+ errno := int(*(*int32)(unsafe.Pointer(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO<<4,
+ []uintptr{}))))
+ // __errno2()
+ errno2 := int(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO2<<4,
+ []uintptr{}))
+ // strerror_r()
+ ret = runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS_STRERROR_R<<4,
+ []uintptr{uintptr(errno), uintptr(unsafe.Pointer(&buffer[0])), 1024})
+ if ret == 0 {
+ zb := bytes.IndexByte(buffer[:], 0)
+ if zb == -1 {
+ zb = len(buffer)
+ }
+ return "", fmt.Errorf("%s (errno2=0x%x)", buffer[:zb], errno2)
+ } else {
+ return "", fmt.Errorf("fdToPath errno %d (errno2=0x%x)", errno, errno2)
+ }
}
-func direntNamlen(buf []byte) (uint64, bool) {
- reclen, ok := direntReclen(buf)
- if !ok {
- return 0, false
+func impl_Mkfifoat(dirfd int, path string, mode uint32) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
}
- return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___MKFIFOAT_A<<4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_MkfifoatAddr() *(func(dirfd int, path string, mode uint32) (err error))
+
+var Mkfifoat = enter_Mkfifoat
+
+func enter_Mkfifoat(dirfd int, path string, mode uint32) (err error) {
+ funcref := get_MkfifoatAddr()
+ if funcptrtest(GetZosLibVec()+SYS___MKFIFOAT_A<<4, "") == 0 {
+ *funcref = impl_Mkfifoat
+ } else {
+ *funcref = legacy_Mkfifoat
+ }
+ return (*funcref)(dirfd, path, mode)
+}
+
+func legacy_Mkfifoat(dirfd int, path string, mode uint32) (err error) {
+ dirname, err := ZosFdToPath(dirfd)
+ if err != nil {
+ return err
+ }
+ return Mkfifo(dirname+"/"+path, mode)
}
+
+//sys Posix_openpt(oflag int) (fd int, err error) = SYS_POSIX_OPENPT
+//sys Grantpt(fildes int) (rc int, err error) = SYS_GRANTPT
+//sys Unlockpt(fildes int) (rc int, err error) = SYS_UNLOCKPT
diff --git a/vendor/golang.org/x/sys/unix/sysvshm_unix.go b/vendor/golang.org/x/sys/unix/sysvshm_unix.go
index 79a84f18b4..672d6b0a88 100644
--- a/vendor/golang.org/x/sys/unix/sysvshm_unix.go
+++ b/vendor/golang.org/x/sys/unix/sysvshm_unix.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build (darwin && !ios) || linux
+//go:build (darwin && !ios) || linux || zos
package unix
diff --git a/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go b/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go
index 9eb0db664c..8b7977a28c 100644
--- a/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go
+++ b/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build darwin && !ios
+//go:build (darwin && !ios) || zos
package unix
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux.go b/vendor/golang.org/x/sys/unix/zerrors_linux.go
index 36bf8399f4..93a38a97d9 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux.go
@@ -491,6 +491,7 @@ const (
BPF_F_REPLACE = 0x4
BPF_F_SLEEPABLE = 0x10
BPF_F_STRICT_ALIGNMENT = 0x1
+ BPF_F_TEST_REG_INVARIANTS = 0x80
BPF_F_TEST_RND_HI32 = 0x4
BPF_F_TEST_RUN_ON_CPU = 0x1
BPF_F_TEST_STATE_FREQ = 0x8
@@ -1697,6 +1698,7 @@ const (
KEXEC_ARCH_S390 = 0x160000
KEXEC_ARCH_SH = 0x2a0000
KEXEC_ARCH_X86_64 = 0x3e0000
+ KEXEC_FILE_DEBUG = 0x8
KEXEC_FILE_NO_INITRAMFS = 0x4
KEXEC_FILE_ON_CRASH = 0x2
KEXEC_FILE_UNLOAD = 0x1
@@ -1898,6 +1900,7 @@ const (
MNT_DETACH = 0x2
MNT_EXPIRE = 0x4
MNT_FORCE = 0x1
+ MNT_ID_REQ_SIZE_VER0 = 0x18
MODULE_INIT_COMPRESSED_FILE = 0x4
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
MODULE_INIT_IGNORE_VERMAGIC = 0x2
@@ -2302,6 +2305,7 @@ const (
PERF_AUX_FLAG_PARTIAL = 0x4
PERF_AUX_FLAG_PMU_FORMAT_TYPE_MASK = 0xff00
PERF_AUX_FLAG_TRUNCATED = 0x1
+ PERF_BRANCH_ENTRY_INFO_BITS_MAX = 0x21
PERF_BR_ARM64_DEBUG_DATA = 0x7
PERF_BR_ARM64_DEBUG_EXIT = 0x5
PERF_BR_ARM64_DEBUG_HALT = 0x4
@@ -3168,6 +3172,7 @@ const (
STATX_GID = 0x10
STATX_INO = 0x100
STATX_MNT_ID = 0x1000
+ STATX_MNT_ID_UNIQUE = 0x4000
STATX_MODE = 0x2
STATX_MTIME = 0x40
STATX_NLINK = 0x4
@@ -3562,12 +3567,16 @@ const (
XDP_RX_RING = 0x2
XDP_SHARED_UMEM = 0x1
XDP_STATISTICS = 0x7
+ XDP_TXMD_FLAGS_CHECKSUM = 0x2
+ XDP_TXMD_FLAGS_TIMESTAMP = 0x1
+ XDP_TX_METADATA = 0x2
XDP_TX_RING = 0x3
XDP_UMEM_COMPLETION_RING = 0x6
XDP_UMEM_FILL_RING = 0x5
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
XDP_UMEM_REG = 0x4
+ XDP_UMEM_TX_SW_CSUM = 0x2
XDP_UMEM_UNALIGNED_CHUNK_FLAG = 0x1
XDP_USE_NEED_WAKEUP = 0x8
XDP_USE_SG = 0x10
diff --git a/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go b/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go
index 4dfd2e051d..da08b2ab3d 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go
@@ -10,41 +10,99 @@
package unix
const (
- BRKINT = 0x0001
- CLOCK_MONOTONIC = 0x1
- CLOCK_PROCESS_CPUTIME_ID = 0x2
- CLOCK_REALTIME = 0x0
- CLOCK_THREAD_CPUTIME_ID = 0x3
- CS8 = 0x0030
- CSIZE = 0x0030
- ECHO = 0x00000008
- ECHONL = 0x00000001
- FD_CLOEXEC = 0x01
- FD_CLOFORK = 0x02
- FNDELAY = 0x04
- F_CLOSFD = 9
- F_CONTROL_CVT = 13
- F_DUPFD = 0
- F_DUPFD2 = 8
- F_GETFD = 1
- F_GETFL = 259
- F_GETLK = 5
- F_GETOWN = 10
- F_OK = 0x0
- F_RDLCK = 1
- F_SETFD = 2
- F_SETFL = 4
- F_SETLK = 6
- F_SETLKW = 7
- F_SETOWN = 11
- F_SETTAG = 12
- F_UNLCK = 3
- F_WRLCK = 2
- FSTYPE_ZFS = 0xe9 //"Z"
- FSTYPE_HFS = 0xc8 //"H"
- FSTYPE_NFS = 0xd5 //"N"
- FSTYPE_TFS = 0xe3 //"T"
- FSTYPE_AUTOMOUNT = 0xc1 //"A"
+ BRKINT = 0x0001
+ CLOCAL = 0x1
+ CLOCK_MONOTONIC = 0x1
+ CLOCK_PROCESS_CPUTIME_ID = 0x2
+ CLOCK_REALTIME = 0x0
+ CLOCK_THREAD_CPUTIME_ID = 0x3
+ CLONE_NEWIPC = 0x08000000
+ CLONE_NEWNET = 0x40000000
+ CLONE_NEWNS = 0x00020000
+ CLONE_NEWPID = 0x20000000
+ CLONE_NEWUTS = 0x04000000
+ CLONE_PARENT = 0x00008000
+ CS8 = 0x0030
+ CSIZE = 0x0030
+ ECHO = 0x00000008
+ ECHONL = 0x00000001
+ EFD_SEMAPHORE = 0x00002000
+ EFD_CLOEXEC = 0x00001000
+ EFD_NONBLOCK = 0x00000004
+ EPOLL_CLOEXEC = 0x00001000
+ EPOLL_CTL_ADD = 0
+ EPOLL_CTL_MOD = 1
+ EPOLL_CTL_DEL = 2
+ EPOLLRDNORM = 0x0001
+ EPOLLRDBAND = 0x0002
+ EPOLLIN = 0x0003
+ EPOLLOUT = 0x0004
+ EPOLLWRBAND = 0x0008
+ EPOLLPRI = 0x0010
+ EPOLLERR = 0x0020
+ EPOLLHUP = 0x0040
+ EPOLLEXCLUSIVE = 0x20000000
+ EPOLLONESHOT = 0x40000000
+ FD_CLOEXEC = 0x01
+ FD_CLOFORK = 0x02
+ FD_SETSIZE = 0x800
+ FNDELAY = 0x04
+ F_CLOSFD = 9
+ F_CONTROL_CVT = 13
+ F_DUPFD = 0
+ F_DUPFD2 = 8
+ F_GETFD = 1
+ F_GETFL = 259
+ F_GETLK = 5
+ F_GETOWN = 10
+ F_OK = 0x0
+ F_RDLCK = 1
+ F_SETFD = 2
+ F_SETFL = 4
+ F_SETLK = 6
+ F_SETLKW = 7
+ F_SETOWN = 11
+ F_SETTAG = 12
+ F_UNLCK = 3
+ F_WRLCK = 2
+ FSTYPE_ZFS = 0xe9 //"Z"
+ FSTYPE_HFS = 0xc8 //"H"
+ FSTYPE_NFS = 0xd5 //"N"
+ FSTYPE_TFS = 0xe3 //"T"
+ FSTYPE_AUTOMOUNT = 0xc1 //"A"
+ GRND_NONBLOCK = 1
+ GRND_RANDOM = 2
+ HUPCL = 0x0100 // Hang up on last close
+ IN_CLOEXEC = 0x00001000
+ IN_NONBLOCK = 0x00000004
+ IN_ACCESS = 0x00000001
+ IN_MODIFY = 0x00000002
+ IN_ATTRIB = 0x00000004
+ IN_CLOSE_WRITE = 0x00000008
+ IN_CLOSE_NOWRITE = 0x00000010
+ IN_OPEN = 0x00000020
+ IN_MOVED_FROM = 0x00000040
+ IN_MOVED_TO = 0x00000080
+ IN_CREATE = 0x00000100
+ IN_DELETE = 0x00000200
+ IN_DELETE_SELF = 0x00000400
+ IN_MOVE_SELF = 0x00000800
+ IN_UNMOUNT = 0x00002000
+ IN_Q_OVERFLOW = 0x00004000
+ IN_IGNORED = 0x00008000
+ IN_CLOSE = (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE)
+ IN_MOVE = (IN_MOVED_FROM | IN_MOVED_TO)
+ IN_ALL_EVENTS = (IN_ACCESS | IN_MODIFY | IN_ATTRIB |
+ IN_CLOSE | IN_OPEN | IN_MOVE |
+ IN_CREATE | IN_DELETE | IN_DELETE_SELF |
+ IN_MOVE_SELF)
+ IN_ONLYDIR = 0x01000000
+ IN_DONT_FOLLOW = 0x02000000
+ IN_EXCL_UNLINK = 0x04000000
+ IN_MASK_CREATE = 0x10000000
+ IN_MASK_ADD = 0x20000000
+ IN_ISDIR = 0x40000000
+ IN_ONESHOT = 0x80000000
IP6F_MORE_FRAG = 0x0001
IP6F_OFF_MASK = 0xfff8
IP6F_RESERVED_MASK = 0x0006
@@ -152,10 +210,18 @@ const (
IP_PKTINFO = 101
IP_RECVPKTINFO = 102
IP_TOS = 2
- IP_TTL = 3
+ IP_TTL = 14
IP_UNBLOCK_SOURCE = 11
+ ICMP6_FILTER = 1
+ MCAST_INCLUDE = 0
+ MCAST_EXCLUDE = 1
+ MCAST_JOIN_GROUP = 40
+ MCAST_LEAVE_GROUP = 41
+ MCAST_JOIN_SOURCE_GROUP = 42
+ MCAST_LEAVE_SOURCE_GROUP = 43
+ MCAST_BLOCK_SOURCE = 44
+ MCAST_UNBLOCK_SOURCE = 46
ICANON = 0x0010
- ICMP6_FILTER = 0x26
ICRNL = 0x0002
IEXTEN = 0x0020
IGNBRK = 0x0004
@@ -165,10 +231,10 @@ const (
ISTRIP = 0x0080
IXON = 0x0200
IXOFF = 0x0100
- LOCK_SH = 0x1 // Not exist on zOS
- LOCK_EX = 0x2 // Not exist on zOS
- LOCK_NB = 0x4 // Not exist on zOS
- LOCK_UN = 0x8 // Not exist on zOS
+ LOCK_SH = 0x1
+ LOCK_EX = 0x2
+ LOCK_NB = 0x4
+ LOCK_UN = 0x8
POLLIN = 0x0003
POLLOUT = 0x0004
POLLPRI = 0x0010
@@ -182,15 +248,29 @@ const (
MAP_PRIVATE = 0x1 // changes are private
MAP_SHARED = 0x2 // changes are shared
MAP_FIXED = 0x4 // place exactly
- MCAST_JOIN_GROUP = 40
- MCAST_LEAVE_GROUP = 41
- MCAST_JOIN_SOURCE_GROUP = 42
- MCAST_LEAVE_SOURCE_GROUP = 43
- MCAST_BLOCK_SOURCE = 44
- MCAST_UNBLOCK_SOURCE = 45
+ __MAP_MEGA = 0x8
+ __MAP_64 = 0x10
+ MAP_ANON = 0x20
+ MAP_ANONYMOUS = 0x20
MS_SYNC = 0x1 // msync - synchronous writes
MS_ASYNC = 0x2 // asynchronous writes
MS_INVALIDATE = 0x4 // invalidate mappings
+ MS_BIND = 0x00001000
+ MS_MOVE = 0x00002000
+ MS_NOSUID = 0x00000002
+ MS_PRIVATE = 0x00040000
+ MS_REC = 0x00004000
+ MS_REMOUNT = 0x00008000
+ MS_RDONLY = 0x00000001
+ MS_UNBINDABLE = 0x00020000
+ MNT_DETACH = 0x00000004
+ ZOSDSFS_SUPER_MAGIC = 0x44534653 // zOS DSFS
+ NFS_SUPER_MAGIC = 0x6969 // NFS
+ NSFS_MAGIC = 0x6e736673 // PROCNS
+ PROC_SUPER_MAGIC = 0x9fa0 // proc FS
+ ZOSTFS_SUPER_MAGIC = 0x544653 // zOS TFS
+ ZOSUFS_SUPER_MAGIC = 0x554653 // zOS UFS
+ ZOSZFS_SUPER_MAGIC = 0x5A4653 // zOS ZFS
MTM_RDONLY = 0x80000000
MTM_RDWR = 0x40000000
MTM_UMOUNT = 0x10000000
@@ -205,13 +285,20 @@ const (
MTM_REMOUNT = 0x00000100
MTM_NOSECURITY = 0x00000080
NFDBITS = 0x20
+ ONLRET = 0x0020 // NL performs CR function
O_ACCMODE = 0x03
O_APPEND = 0x08
O_ASYNCSIG = 0x0200
O_CREAT = 0x80
+ O_DIRECT = 0x00002000
+ O_NOFOLLOW = 0x00004000
+ O_DIRECTORY = 0x00008000
+ O_PATH = 0x00080000
+ O_CLOEXEC = 0x00001000
O_EXCL = 0x40
O_GETFL = 0x0F
O_LARGEFILE = 0x0400
+ O_NDELAY = 0x4
O_NONBLOCK = 0x04
O_RDONLY = 0x02
O_RDWR = 0x03
@@ -248,6 +335,7 @@ const (
AF_IUCV = 17
AF_LAT = 14
AF_LINK = 18
+ AF_LOCAL = AF_UNIX // AF_LOCAL is an alias for AF_UNIX
AF_MAX = 30
AF_NBS = 7
AF_NDD = 23
@@ -285,15 +373,33 @@ const (
RLIMIT_AS = 5
RLIMIT_NOFILE = 6
RLIMIT_MEMLIMIT = 7
+ RLIMIT_MEMLOCK = 0x8
RLIM_INFINITY = 2147483647
+ SCHED_FIFO = 0x2
+ SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x01
SF_CLOSE = 0x00000002
SF_REUSE = 0x00000001
+ SHM_RND = 0x2
+ SHM_RDONLY = 0x1
+ SHMLBA = 0x1000
+ IPC_STAT = 0x3
+ IPC_SET = 0x2
+ IPC_RMID = 0x1
+ IPC_PRIVATE = 0x0
+ IPC_CREAT = 0x1000000
+ __IPC_MEGA = 0x4000000
+ __IPC_SHAREAS = 0x20000000
+ __IPC_BELOWBAR = 0x10000000
+ IPC_EXCL = 0x2000000
+ __IPC_GIGA = 0x8000000
SHUT_RD = 0
SHUT_RDWR = 2
SHUT_WR = 1
+ SOCK_CLOEXEC = 0x00001000
SOCK_CONN_DGRAM = 6
SOCK_DGRAM = 2
+ SOCK_NONBLOCK = 0x800
SOCK_RAW = 3
SOCK_RDM = 4
SOCK_SEQPACKET = 5
@@ -378,8 +484,6 @@ const (
S_IFMST = 0x00FF0000
TCP_KEEPALIVE = 0x8
TCP_NODELAY = 0x1
- TCP_INFO = 0xb
- TCP_USER_TIMEOUT = 0x1
TIOCGWINSZ = 0x4008a368
TIOCSWINSZ = 0x8008a367
TIOCSBRK = 0x2000a77b
@@ -427,7 +531,10 @@ const (
VSUSP = 9
VTIME = 10
WCONTINUED = 0x4
+ WEXITED = 0x8
WNOHANG = 0x1
+ WNOWAIT = 0x20
+ WSTOPPED = 0x10
WUNTRACED = 0x2
_BPX_SWAP = 1
_BPX_NONSWAP = 2
@@ -452,8 +559,28 @@ const (
MADV_FREE = 15 // for Linux compatibility -- no zos semantics
MADV_WIPEONFORK = 16 // for Linux compatibility -- no zos semantics
MADV_KEEPONFORK = 17 // for Linux compatibility -- no zos semantics
- AT_SYMLINK_NOFOLLOW = 1 // for Unix compatibility -- no zos semantics
- AT_FDCWD = 2 // for Unix compatibility -- no zos semantics
+ AT_SYMLINK_FOLLOW = 0x400
+ AT_SYMLINK_NOFOLLOW = 0x100
+ XATTR_CREATE = 0x1
+ XATTR_REPLACE = 0x2
+ P_PID = 0
+ P_PGID = 1
+ P_ALL = 2
+ PR_SET_NAME = 15
+ PR_GET_NAME = 16
+ PR_SET_NO_NEW_PRIVS = 38
+ PR_GET_NO_NEW_PRIVS = 39
+ PR_SET_DUMPABLE = 4
+ PR_GET_DUMPABLE = 3
+ PR_SET_PDEATHSIG = 1
+ PR_GET_PDEATHSIG = 2
+ PR_SET_CHILD_SUBREAPER = 36
+ PR_GET_CHILD_SUBREAPER = 37
+ AT_FDCWD = -100
+ AT_EACCESS = 0x200
+ AT_EMPTY_PATH = 0x1000
+ AT_REMOVEDIR = 0x200
+ RENAME_NOREPLACE = 1 << 0
)
const (
@@ -476,6 +603,7 @@ const (
EMLINK = Errno(125)
ENAMETOOLONG = Errno(126)
ENFILE = Errno(127)
+ ENOATTR = Errno(265)
ENODEV = Errno(128)
ENOENT = Errno(129)
ENOEXEC = Errno(130)
@@ -700,7 +828,7 @@ var errorList = [...]struct {
{145, "EDC5145I", "The parameter list is too long, or the message to receive was too large for the buffer."},
{146, "EDC5146I", "Too many levels of symbolic links."},
{147, "EDC5147I", "Illegal byte sequence."},
- {148, "", ""},
+ {148, "EDC5148I", "The named attribute or data not available."},
{149, "EDC5149I", "Value Overflow Error."},
{150, "EDC5150I", "UNIX System Services is not active."},
{151, "EDC5151I", "Dynamic allocation error."},
@@ -743,6 +871,7 @@ var errorList = [...]struct {
{259, "EDC5259I", "A CUN_RS_NO_CONVERSION error was issued by Unicode Services."},
{260, "EDC5260I", "A CUN_RS_TABLE_NOT_ALIGNED error was issued by Unicode Services."},
{262, "EDC5262I", "An iconv() function encountered an unexpected error while using Unicode Services."},
+ {265, "EDC5265I", "The named attribute not available."},
{1000, "EDC8000I", "A bad socket-call constant was found in the IUCV header."},
{1001, "EDC8001I", "An error was found in the IUCV header."},
{1002, "EDC8002I", "A socket descriptor is out of range."},
diff --git a/vendor/golang.org/x/sys/unix/zsymaddr_zos_s390x.s b/vendor/golang.org/x/sys/unix/zsymaddr_zos_s390x.s
new file mode 100644
index 0000000000..b77ff5db90
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/zsymaddr_zos_s390x.s
@@ -0,0 +1,364 @@
+// go run mksyscall_zos_s390x.go -o_sysnum zsysnum_zos_s390x.go -o_syscall zsyscall_zos_s390x.go -i_syscall syscall_zos_s390x.go -o_asm zsymaddr_zos_s390x.s
+// Code generated by the command above; see README.md. DO NOT EDIT.
+
+//go:build zos && s390x
+#include "textflag.h"
+
+// provide the address of function variable to be fixed up.
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_FlistxattrAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Flistxattr(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_FremovexattrAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Fremovexattr(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_FgetxattrAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Fgetxattr(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_FsetxattrAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Fsetxattr(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_accept4Addr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·accept4(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_RemovexattrAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Removexattr(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_Dup3Addr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Dup3(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_DirfdAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Dirfd(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_EpollCreateAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·EpollCreate(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_EpollCreate1Addr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·EpollCreate1(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_EpollCtlAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·EpollCtl(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_EpollPwaitAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·EpollPwait(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_EpollWaitAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·EpollWait(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_EventfdAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Eventfd(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_FaccessatAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Faccessat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_FchmodatAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Fchmodat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_FchownatAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Fchownat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_FdatasyncAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Fdatasync(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_fstatatAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·fstatat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_LgetxattrAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Lgetxattr(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_LsetxattrAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Lsetxattr(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_FstatfsAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Fstatfs(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_FutimesAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Futimes(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_FutimesatAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Futimesat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_GetrandomAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Getrandom(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_InotifyInitAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·InotifyInit(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_InotifyInit1Addr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·InotifyInit1(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_InotifyAddWatchAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·InotifyAddWatch(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_InotifyRmWatchAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·InotifyRmWatch(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_ListxattrAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Listxattr(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_LlistxattrAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Llistxattr(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_LremovexattrAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Lremovexattr(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_LutimesAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Lutimes(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_StatfsAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Statfs(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_SyncfsAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Syncfs(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_UnshareAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Unshare(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_LinkatAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Linkat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_MkdiratAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Mkdirat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_MknodatAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Mknodat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_PivotRootAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·PivotRoot(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_PrctlAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Prctl(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_PrlimitAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Prlimit(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_RenameatAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Renameat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_Renameat2Addr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Renameat2(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_SethostnameAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Sethostname(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_SetnsAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Setns(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_SymlinkatAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Symlinkat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_UnlinkatAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·Unlinkat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_openatAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·openat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_openat2Addr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·openat2(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+TEXT ·get_utimensatAddr(SB), NOSPLIT|NOFRAME, $0-8
+ MOVD $·utimensat(SB), R8
+ MOVD R8, ret+0(FP)
+ RET
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go b/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go
index 94f0112383..7ccf66b7ee 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go
@@ -1,4 +1,4 @@
-// go run mksyscall.go -tags zos,s390x syscall_zos_s390x.go
+// go run mksyscall_zos_s390x.go -o_sysnum zsysnum_zos_s390x.go -o_syscall zsyscall_zos_s390x.go -i_syscall syscall_zos_s390x.go -o_asm zsymaddr_zos_s390x.s
// Code generated by the command above; see README.md. DO NOT EDIT.
//go:build zos && s390x
@@ -6,17 +6,100 @@
package unix
import (
+ "runtime"
+ "syscall"
"unsafe"
)
+var _ syscall.Errno
+
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func fcntl(fd int, cmd int, arg int) (val int, err error) {
- r0, _, e1 := syscall_syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FCNTL<<4, uintptr(fd), uintptr(cmd), uintptr(arg))
+ runtime.ExitSyscall()
val = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Flistxattr(fd int, dest []byte) (sz int, err error) {
+ var _p0 unsafe.Pointer
+ if len(dest) > 0 {
+ _p0 = unsafe.Pointer(&dest[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___FLISTXATTR_A<<4, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
+ runtime.ExitSyscall()
+ sz = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_FlistxattrAddr() *(func(fd int, dest []byte) (sz int, err error))
+
+var Flistxattr = enter_Flistxattr
+
+func enter_Flistxattr(fd int, dest []byte) (sz int, err error) {
+ funcref := get_FlistxattrAddr()
+ if funcptrtest(GetZosLibVec()+SYS___FLISTXATTR_A<<4, "") == 0 {
+ *funcref = impl_Flistxattr
+ } else {
+ *funcref = error_Flistxattr
+ }
+ return (*funcref)(fd, dest)
+}
+
+func error_Flistxattr(fd int, dest []byte) (sz int, err error) {
+ sz = -1
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Fremovexattr(fd int, attr string) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(attr)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___FREMOVEXATTR_A<<4, uintptr(fd), uintptr(unsafe.Pointer(_p0)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_FremovexattrAddr() *(func(fd int, attr string) (err error))
+
+var Fremovexattr = enter_Fremovexattr
+
+func enter_Fremovexattr(fd int, attr string) (err error) {
+ funcref := get_FremovexattrAddr()
+ if funcptrtest(GetZosLibVec()+SYS___FREMOVEXATTR_A<<4, "") == 0 {
+ *funcref = impl_Fremovexattr
+ } else {
+ *funcref = error_Fremovexattr
}
+ return (*funcref)(fd, attr)
+}
+
+func error_Fremovexattr(fd int, attr string) (err error) {
+ err = ENOSYS
return
}
@@ -29,10 +112,12 @@ func read(fd int, p []byte) (n int, err error) {
} else {
_p0 = unsafe.Pointer(&_zero)
}
- r0, _, e1 := syscall_syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_READ<<4, uintptr(fd), uintptr(_p0), uintptr(len(p)))
+ runtime.ExitSyscall()
n = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -46,31 +131,159 @@ func write(fd int, p []byte) (n int, err error) {
} else {
_p0 = unsafe.Pointer(&_zero)
}
- r0, _, e1 := syscall_syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_WRITE<<4, uintptr(fd), uintptr(_p0), uintptr(len(p)))
+ runtime.ExitSyscall()
n = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(attr)
+ if err != nil {
+ return
+ }
+ var _p1 unsafe.Pointer
+ if len(dest) > 0 {
+ _p1 = unsafe.Pointer(&dest[0])
+ } else {
+ _p1 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___FGETXATTR_A<<4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
+ runtime.ExitSyscall()
+ sz = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_FgetxattrAddr() *(func(fd int, attr string, dest []byte) (sz int, err error))
+
+var Fgetxattr = enter_Fgetxattr
+
+func enter_Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
+ funcref := get_FgetxattrAddr()
+ if funcptrtest(GetZosLibVec()+SYS___FGETXATTR_A<<4, "") == 0 {
+ *funcref = impl_Fgetxattr
+ } else {
+ *funcref = error_Fgetxattr
+ }
+ return (*funcref)(fd, attr, dest)
+}
+
+func error_Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
+ sz = -1
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Fsetxattr(fd int, attr string, data []byte, flag int) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(attr)
+ if err != nil {
+ return
+ }
+ var _p1 unsafe.Pointer
+ if len(data) > 0 {
+ _p1 = unsafe.Pointer(&data[0])
+ } else {
+ _p1 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___FSETXATTR_A<<4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(data)), uintptr(flag))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_FsetxattrAddr() *(func(fd int, attr string, data []byte, flag int) (err error))
+
+var Fsetxattr = enter_Fsetxattr
+
+func enter_Fsetxattr(fd int, attr string, data []byte, flag int) (err error) {
+ funcref := get_FsetxattrAddr()
+ if funcptrtest(GetZosLibVec()+SYS___FSETXATTR_A<<4, "") == 0 {
+ *funcref = impl_Fsetxattr
+ } else {
+ *funcref = error_Fsetxattr
}
+ return (*funcref)(fd, attr, data, flag)
+}
+
+func error_Fsetxattr(fd int, attr string, data []byte, flag int) (err error) {
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
- r0, _, e1 := syscall_syscall(SYS___ACCEPT_A, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___ACCEPT_A<<4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
+ runtime.ExitSyscall()
+ fd = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___ACCEPT4_A<<4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags))
+ runtime.ExitSyscall()
fd = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_accept4Addr() *(func(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error))
+
+var accept4 = enter_accept4
+
+func enter_accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
+ funcref := get_accept4Addr()
+ if funcptrtest(GetZosLibVec()+SYS___ACCEPT4_A<<4, "") == 0 {
+ *funcref = impl_accept4
+ } else {
+ *funcref = error_accept4
}
+ return (*funcref)(s, rsa, addrlen, flags)
+}
+
+func error_accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
+ fd = -1
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
- _, _, e1 := syscall_syscall(SYS___BIND_A, uintptr(s), uintptr(addr), uintptr(addrlen))
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___BIND_A<<4, uintptr(s), uintptr(addr), uintptr(addrlen))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -78,9 +291,11 @@ func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
- _, _, e1 := syscall_syscall(SYS___CONNECT_A, uintptr(s), uintptr(addr), uintptr(addrlen))
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___CONNECT_A<<4, uintptr(s), uintptr(addr), uintptr(addrlen))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -88,10 +303,10 @@ func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func getgroups(n int, list *_Gid_t) (nn int, err error) {
- r0, _, e1 := syscall_rawsyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_GETGROUPS<<4, uintptr(n), uintptr(unsafe.Pointer(list)))
nn = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -99,9 +314,9 @@ func getgroups(n int, list *_Gid_t) (nn int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func setgroups(n int, list *_Gid_t) (err error) {
- _, _, e1 := syscall_rawsyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SETGROUPS<<4, uintptr(n), uintptr(unsafe.Pointer(list)))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -109,9 +324,11 @@ func setgroups(n int, list *_Gid_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
- _, _, e1 := syscall_syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_GETSOCKOPT<<4, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -119,9 +336,11 @@ func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
- _, _, e1 := syscall_syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SETSOCKOPT<<4, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -129,10 +348,10 @@ func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr)
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func socket(domain int, typ int, proto int) (fd int, err error) {
- r0, _, e1 := syscall_rawsyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SOCKET<<4, uintptr(domain), uintptr(typ), uintptr(proto))
fd = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -140,9 +359,9 @@ func socket(domain int, typ int, proto int) (fd int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
- _, _, e1 := syscall_rawsyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SOCKETPAIR<<4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -150,9 +369,9 @@ func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
- _, _, e1 := syscall_rawsyscall(SYS___GETPEERNAME_A, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
- if e1 != 0 {
- err = errnoErr(e1)
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___GETPEERNAME_A<<4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -160,10 +379,52 @@ func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
- _, _, e1 := syscall_rawsyscall(SYS___GETSOCKNAME_A, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
- if e1 != 0 {
- err = errnoErr(e1)
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___GETSOCKNAME_A<<4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Removexattr(path string, attr string) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ var _p1 *byte
+ _p1, err = BytePtrFromString(attr)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___REMOVEXATTR_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_RemovexattrAddr() *(func(path string, attr string) (err error))
+
+var Removexattr = enter_Removexattr
+
+func enter_Removexattr(path string, attr string) (err error) {
+ funcref := get_RemovexattrAddr()
+ if funcptrtest(GetZosLibVec()+SYS___REMOVEXATTR_A<<4, "") == 0 {
+ *funcref = impl_Removexattr
+ } else {
+ *funcref = error_Removexattr
}
+ return (*funcref)(path, attr)
+}
+
+func error_Removexattr(path string, attr string) (err error) {
+ err = ENOSYS
return
}
@@ -176,10 +437,12 @@ func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Sockl
} else {
_p0 = unsafe.Pointer(&_zero)
}
- r0, _, e1 := syscall_syscall6(SYS___RECVFROM_A, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___RECVFROM_A<<4, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
+ runtime.ExitSyscall()
n = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -193,9 +456,11 @@ func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (
} else {
_p0 = unsafe.Pointer(&_zero)
}
- _, _, e1 := syscall_syscall6(SYS___SENDTO_A, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___SENDTO_A<<4, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -203,10 +468,12 @@ func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
- r0, _, e1 := syscall_syscall(SYS___RECVMSG_A, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___RECVMSG_A<<4, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
+ runtime.ExitSyscall()
n = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -214,10 +481,12 @@ func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
- r0, _, e1 := syscall_syscall(SYS___SENDMSG_A, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___SENDMSG_A<<4, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
+ runtime.ExitSyscall()
n = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -225,10 +494,12 @@ func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
- r0, _, e1 := syscall_syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_MMAP<<4, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
+ runtime.ExitSyscall()
ret = uintptr(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -236,9 +507,11 @@ func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func munmap(addr uintptr, length uintptr) (err error) {
- _, _, e1 := syscall_syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_MUNMAP<<4, uintptr(addr), uintptr(length))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -246,9 +519,11 @@ func munmap(addr uintptr, length uintptr) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func ioctl(fd int, req int, arg uintptr) (err error) {
- _, _, e1 := syscall_syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_IOCTL<<4, uintptr(fd), uintptr(req), uintptr(arg))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -256,9 +531,62 @@ func ioctl(fd int, req int, arg uintptr) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func ioctlPtr(fd int, req int, arg unsafe.Pointer) (err error) {
- _, _, e1 := syscall_syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_IOCTL<<4, uintptr(fd), uintptr(req), uintptr(arg))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func shmat(id int, addr uintptr, flag int) (ret uintptr, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SHMAT<<4, uintptr(id), uintptr(addr), uintptr(flag))
+ runtime.ExitSyscall()
+ ret = uintptr(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func shmctl(id int, cmd int, buf *SysvShmDesc) (result int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SHMCTL64<<4, uintptr(id), uintptr(cmd), uintptr(unsafe.Pointer(buf)))
+ runtime.ExitSyscall()
+ result = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func shmdt(addr uintptr) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SHMDT<<4, uintptr(addr))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func shmget(key int, size int, flag int) (id int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SHMGET<<4, uintptr(key), uintptr(size), uintptr(flag))
+ runtime.ExitSyscall()
+ id = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -271,9 +599,11 @@ func Access(path string, mode uint32) (err error) {
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___ACCESS_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___ACCESS_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(mode))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -286,9 +616,11 @@ func Chdir(path string) (err error) {
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___CHDIR_A, uintptr(unsafe.Pointer(_p0)), 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___CHDIR_A<<4, uintptr(unsafe.Pointer(_p0)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -301,9 +633,11 @@ func Chown(path string, uid int, gid int) (err error) {
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___CHOWN_A, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___CHOWN_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -316,9 +650,11 @@ func Chmod(path string, mode uint32) (err error) {
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___CHMOD_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___CHMOD_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(mode))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -331,10 +667,12 @@ func Creat(path string, mode uint32) (fd int, err error) {
if err != nil {
return
}
- r0, _, e1 := syscall_syscall(SYS___CREAT_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___CREAT_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(mode))
+ runtime.ExitSyscall()
fd = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -342,10 +680,12 @@ func Creat(path string, mode uint32) (fd int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Dup(oldfd int) (fd int, err error) {
- r0, _, e1 := syscall_syscall(SYS_DUP, uintptr(oldfd), 0, 0)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_DUP<<4, uintptr(oldfd))
+ runtime.ExitSyscall()
fd = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -353,617 +693,2216 @@ func Dup(oldfd int) (fd int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Dup2(oldfd int, newfd int) (err error) {
- _, _, e1 := syscall_syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_DUP2<<4, uintptr(oldfd), uintptr(newfd))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Errno2() (er2 int) {
- uer2, _, _ := syscall_syscall(SYS___ERRNO2, 0, 0, 0)
- er2 = int(uer2)
+func impl_Dup3(oldfd int, newfd int, flags int) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_DUP3<<4, uintptr(oldfd), uintptr(newfd), uintptr(flags))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_Dup3Addr() *(func(oldfd int, newfd int, flags int) (err error))
-func Err2ad() (eadd *int) {
- ueadd, _, _ := syscall_syscall(SYS___ERR2AD, 0, 0, 0)
- eadd = (*int)(unsafe.Pointer(ueadd))
- return
-}
+var Dup3 = enter_Dup3
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func enter_Dup3(oldfd int, newfd int, flags int) (err error) {
+ funcref := get_Dup3Addr()
+ if funcptrtest(GetZosLibVec()+SYS_DUP3<<4, "") == 0 {
+ *funcref = impl_Dup3
+ } else {
+ *funcref = error_Dup3
+ }
+ return (*funcref)(oldfd, newfd, flags)
+}
-func Exit(code int) {
- syscall_syscall(SYS_EXIT, uintptr(code), 0, 0)
+func error_Dup3(oldfd int, newfd int, flags int) (err error) {
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Fchdir(fd int) (err error) {
- _, _, e1 := syscall_syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+func impl_Dirfd(dirp uintptr) (fd int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_DIRFD<<4, uintptr(dirp))
+ runtime.ExitSyscall()
+ fd = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_DirfdAddr() *(func(dirp uintptr) (fd int, err error))
-func Fchmod(fd int, mode uint32) (err error) {
- _, _, e1 := syscall_syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+var Dirfd = enter_Dirfd
+
+func enter_Dirfd(dirp uintptr) (fd int, err error) {
+ funcref := get_DirfdAddr()
+ if funcptrtest(GetZosLibVec()+SYS_DIRFD<<4, "") == 0 {
+ *funcref = impl_Dirfd
+ } else {
+ *funcref = error_Dirfd
}
+ return (*funcref)(dirp)
+}
+
+func error_Dirfd(dirp uintptr) (fd int, err error) {
+ fd = -1
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Fchown(fd int, uid int, gid int) (err error) {
- _, _, e1 := syscall_syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
- if e1 != 0 {
- err = errnoErr(e1)
+func impl_EpollCreate(size int) (fd int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_EPOLL_CREATE<<4, uintptr(size))
+ runtime.ExitSyscall()
+ fd = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_EpollCreateAddr() *(func(size int) (fd int, err error))
-func FcntlInt(fd uintptr, cmd int, arg int) (retval int, err error) {
- r0, _, e1 := syscall_syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
- retval = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+var EpollCreate = enter_EpollCreate
+
+func enter_EpollCreate(size int) (fd int, err error) {
+ funcref := get_EpollCreateAddr()
+ if funcptrtest(GetZosLibVec()+SYS_EPOLL_CREATE<<4, "") == 0 {
+ *funcref = impl_EpollCreate
+ } else {
+ *funcref = error_EpollCreate
}
+ return (*funcref)(size)
+}
+
+func error_EpollCreate(size int) (fd int, err error) {
+ fd = -1
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func fstat(fd int, stat *Stat_LE_t) (err error) {
- _, _, e1 := syscall_syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+func impl_EpollCreate1(flags int) (fd int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_EPOLL_CREATE1<<4, uintptr(flags))
+ runtime.ExitSyscall()
+ fd = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_EpollCreate1Addr() *(func(flags int) (fd int, err error))
-func Fstatvfs(fd int, stat *Statvfs_t) (err error) {
- _, _, e1 := syscall_syscall(SYS_FSTATVFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+var EpollCreate1 = enter_EpollCreate1
+
+func enter_EpollCreate1(flags int) (fd int, err error) {
+ funcref := get_EpollCreate1Addr()
+ if funcptrtest(GetZosLibVec()+SYS_EPOLL_CREATE1<<4, "") == 0 {
+ *funcref = impl_EpollCreate1
+ } else {
+ *funcref = error_EpollCreate1
}
+ return (*funcref)(flags)
+}
+
+func error_EpollCreate1(flags int) (fd int, err error) {
+ fd = -1
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Fsync(fd int) (err error) {
- _, _, e1 := syscall_syscall(SYS_FSYNC, uintptr(fd), 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+func impl_EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_EPOLL_CTL<<4, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_EpollCtlAddr() *(func(epfd int, op int, fd int, event *EpollEvent) (err error))
-func Ftruncate(fd int, length int64) (err error) {
- _, _, e1 := syscall_syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+var EpollCtl = enter_EpollCtl
+
+func enter_EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
+ funcref := get_EpollCtlAddr()
+ if funcptrtest(GetZosLibVec()+SYS_EPOLL_CTL<<4, "") == 0 {
+ *funcref = impl_EpollCtl
+ } else {
+ *funcref = error_EpollCtl
}
- return
+ return (*funcref)(epfd, op, fd, event)
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
-func Getpagesize() (pgsize int) {
- r0, _, _ := syscall_syscall(SYS_GETPAGESIZE, 0, 0, 0)
- pgsize = int(r0)
+func error_EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Mprotect(b []byte, prot int) (err error) {
+func impl_EpollPwait(epfd int, events []EpollEvent, msec int, sigmask *int) (n int, err error) {
var _p0 unsafe.Pointer
- if len(b) > 0 {
- _p0 = unsafe.Pointer(&b[0])
+ if len(events) > 0 {
+ _p0 = unsafe.Pointer(&events[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
- _, _, e1 := syscall_syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_EPOLL_PWAIT<<4, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), uintptr(unsafe.Pointer(sigmask)))
+ runtime.ExitSyscall()
+ n = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_EpollPwaitAddr() *(func(epfd int, events []EpollEvent, msec int, sigmask *int) (n int, err error))
-func Msync(b []byte, flags int) (err error) {
- var _p0 unsafe.Pointer
- if len(b) > 0 {
- _p0 = unsafe.Pointer(&b[0])
+var EpollPwait = enter_EpollPwait
+
+func enter_EpollPwait(epfd int, events []EpollEvent, msec int, sigmask *int) (n int, err error) {
+ funcref := get_EpollPwaitAddr()
+ if funcptrtest(GetZosLibVec()+SYS_EPOLL_PWAIT<<4, "") == 0 {
+ *funcref = impl_EpollPwait
} else {
- _p0 = unsafe.Pointer(&_zero)
- }
- _, _, e1 := syscall_syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
- if e1 != 0 {
- err = errnoErr(e1)
+ *funcref = error_EpollPwait
}
+ return (*funcref)(epfd, events, msec, sigmask)
+}
+
+func error_EpollPwait(epfd int, events []EpollEvent, msec int, sigmask *int) (n int, err error) {
+ n = -1
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Poll(fds []PollFd, timeout int) (n int, err error) {
+func impl_EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
var _p0 unsafe.Pointer
- if len(fds) > 0 {
- _p0 = unsafe.Pointer(&fds[0])
+ if len(events) > 0 {
+ _p0 = unsafe.Pointer(&events[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
- r0, _, e1 := syscall_syscall(SYS_POLL, uintptr(_p0), uintptr(len(fds)), uintptr(timeout))
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_EPOLL_WAIT<<4, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec))
+ runtime.ExitSyscall()
n = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_EpollWaitAddr() *(func(epfd int, events []EpollEvent, msec int) (n int, err error))
-func Times(tms *Tms) (ticks uintptr, err error) {
- r0, _, e1 := syscall_syscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
- ticks = uintptr(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+var EpollWait = enter_EpollWait
+
+func enter_EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
+ funcref := get_EpollWaitAddr()
+ if funcptrtest(GetZosLibVec()+SYS_EPOLL_WAIT<<4, "") == 0 {
+ *funcref = impl_EpollWait
+ } else {
+ *funcref = error_EpollWait
}
+ return (*funcref)(epfd, events, msec)
+}
+
+func error_EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
+ n = -1
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func W_Getmntent(buff *byte, size int) (lastsys int, err error) {
- r0, _, e1 := syscall_syscall(SYS_W_GETMNTENT, uintptr(unsafe.Pointer(buff)), uintptr(size), 0)
- lastsys = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
+func Errno2() (er2 int) {
+ runtime.EnterSyscall()
+ r0, _, _ := CallLeFuncWithErr(GetZosLibVec() + SYS___ERRNO2<<4)
+ runtime.ExitSyscall()
+ er2 = int(r0)
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func W_Getmntent_A(buff *byte, size int) (lastsys int, err error) {
- r0, _, e1 := syscall_syscall(SYS___W_GETMNTENT_A, uintptr(unsafe.Pointer(buff)), uintptr(size), 0)
- lastsys = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+func impl_Eventfd(initval uint, flags int) (fd int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_EVENTFD<<4, uintptr(initval), uintptr(flags))
+ runtime.ExitSyscall()
+ fd = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
+//go:nosplit
+func get_EventfdAddr() *(func(initval uint, flags int) (fd int, err error))
+
+var Eventfd = enter_Eventfd
+
+func enter_Eventfd(initval uint, flags int) (fd int, err error) {
+ funcref := get_EventfdAddr()
+ if funcptrtest(GetZosLibVec()+SYS_EVENTFD<<4, "") == 0 {
+ *funcref = impl_Eventfd
+ } else {
+ *funcref = error_Eventfd
+ }
+ return (*funcref)(initval, flags)
+}
+
+func error_Eventfd(initval uint, flags int) (fd int, err error) {
+ fd = -1
+ err = ENOSYS
+ return
+}
+
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func mount_LE(path string, filesystem string, fstype string, mtm uint32, parmlen int32, parm string) (err error) {
+func Exit(code int) {
+ runtime.EnterSyscall()
+ CallLeFuncWithErr(GetZosLibVec()+SYS_EXIT<<4, uintptr(code))
+ runtime.ExitSyscall()
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
- var _p1 *byte
- _p1, err = BytePtrFromString(filesystem)
- if err != nil {
- return
- }
- var _p2 *byte
- _p2, err = BytePtrFromString(fstype)
- if err != nil {
- return
- }
- var _p3 *byte
- _p3, err = BytePtrFromString(parm)
- if err != nil {
- return
- }
- _, _, e1 := syscall_syscall6(SYS___MOUNT_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(mtm), uintptr(parmlen), uintptr(unsafe.Pointer(_p3)))
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___FACCESSAT_A<<4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_FaccessatAddr() *(func(dirfd int, path string, mode uint32, flags int) (err error))
-func unmount(filesystem string, mtm int) (err error) {
+var Faccessat = enter_Faccessat
+
+func enter_Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
+ funcref := get_FaccessatAddr()
+ if funcptrtest(GetZosLibVec()+SYS___FACCESSAT_A<<4, "") == 0 {
+ *funcref = impl_Faccessat
+ } else {
+ *funcref = error_Faccessat
+ }
+ return (*funcref)(dirfd, path, mode, flags)
+}
+
+func error_Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Fchdir(fd int) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FCHDIR<<4, uintptr(fd))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Fchmod(fd int, mode uint32) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FCHMOD<<4, uintptr(fd), uintptr(mode))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
var _p0 *byte
- _p0, err = BytePtrFromString(filesystem)
+ _p0, err = BytePtrFromString(path)
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___UMOUNT_A, uintptr(unsafe.Pointer(_p0)), uintptr(mtm), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___FCHMODAT_A<<4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_FchmodatAddr() *(func(dirfd int, path string, mode uint32, flags int) (err error))
+
+var Fchmodat = enter_Fchmodat
+
+func enter_Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
+ funcref := get_FchmodatAddr()
+ if funcptrtest(GetZosLibVec()+SYS___FCHMODAT_A<<4, "") == 0 {
+ *funcref = impl_Fchmodat
+ } else {
+ *funcref = error_Fchmodat
+ }
+ return (*funcref)(dirfd, path, mode, flags)
+}
+
+func error_Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Fchown(fd int, uid int, gid int) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FCHOWN<<4, uintptr(fd), uintptr(uid), uintptr(gid))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Chroot(path string) (err error) {
+func impl_Fchownat(fd int, path string, uid int, gid int, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___CHROOT_A, uintptr(unsafe.Pointer(_p0)), 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___FCHOWNAT_A<<4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_FchownatAddr() *(func(fd int, path string, uid int, gid int, flags int) (err error))
+
+var Fchownat = enter_Fchownat
+
+func enter_Fchownat(fd int, path string, uid int, gid int, flags int) (err error) {
+ funcref := get_FchownatAddr()
+ if funcptrtest(GetZosLibVec()+SYS___FCHOWNAT_A<<4, "") == 0 {
+ *funcref = impl_Fchownat
+ } else {
+ *funcref = error_Fchownat
}
+ return (*funcref)(fd, path, uid, gid, flags)
+}
+
+func error_Fchownat(fd int, path string, uid int, gid int, flags int) (err error) {
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Uname(buf *Utsname) (err error) {
- _, _, e1 := syscall_rawsyscall(SYS___UNAME_A, uintptr(unsafe.Pointer(buf)), 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+func FcntlInt(fd uintptr, cmd int, arg int) (retval int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FCNTL<<4, uintptr(fd), uintptr(cmd), uintptr(arg))
+ runtime.ExitSyscall()
+ retval = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Gethostname(buf []byte) (err error) {
+func impl_Fdatasync(fd int) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FDATASYNC<<4, uintptr(fd))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_FdatasyncAddr() *(func(fd int) (err error))
+
+var Fdatasync = enter_Fdatasync
+
+func enter_Fdatasync(fd int) (err error) {
+ funcref := get_FdatasyncAddr()
+ if funcptrtest(GetZosLibVec()+SYS_FDATASYNC<<4, "") == 0 {
+ *funcref = impl_Fdatasync
+ } else {
+ *funcref = error_Fdatasync
+ }
+ return (*funcref)(fd)
+}
+
+func error_Fdatasync(fd int) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func fstat(fd int, stat *Stat_LE_t) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FSTAT<<4, uintptr(fd), uintptr(unsafe.Pointer(stat)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_fstatat(dirfd int, path string, stat *Stat_LE_t, flags int) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___FSTATAT_A<<4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_fstatatAddr() *(func(dirfd int, path string, stat *Stat_LE_t, flags int) (err error))
+
+var fstatat = enter_fstatat
+
+func enter_fstatat(dirfd int, path string, stat *Stat_LE_t, flags int) (err error) {
+ funcref := get_fstatatAddr()
+ if funcptrtest(GetZosLibVec()+SYS___FSTATAT_A<<4, "") == 0 {
+ *funcref = impl_fstatat
+ } else {
+ *funcref = error_fstatat
+ }
+ return (*funcref)(dirfd, path, stat, flags)
+}
+
+func error_fstatat(dirfd int, path string, stat *Stat_LE_t, flags int) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(link)
+ if err != nil {
+ return
+ }
+ var _p1 *byte
+ _p1, err = BytePtrFromString(attr)
+ if err != nil {
+ return
+ }
+ var _p2 unsafe.Pointer
+ if len(dest) > 0 {
+ _p2 = unsafe.Pointer(&dest[0])
+ } else {
+ _p2 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___LGETXATTR_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)))
+ runtime.ExitSyscall()
+ sz = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_LgetxattrAddr() *(func(link string, attr string, dest []byte) (sz int, err error))
+
+var Lgetxattr = enter_Lgetxattr
+
+func enter_Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
+ funcref := get_LgetxattrAddr()
+ if funcptrtest(GetZosLibVec()+SYS___LGETXATTR_A<<4, "") == 0 {
+ *funcref = impl_Lgetxattr
+ } else {
+ *funcref = error_Lgetxattr
+ }
+ return (*funcref)(link, attr, dest)
+}
+
+func error_Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
+ sz = -1
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ var _p1 *byte
+ _p1, err = BytePtrFromString(attr)
+ if err != nil {
+ return
+ }
+ var _p2 unsafe.Pointer
+ if len(data) > 0 {
+ _p2 = unsafe.Pointer(&data[0])
+ } else {
+ _p2 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___LSETXATTR_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_LsetxattrAddr() *(func(path string, attr string, data []byte, flags int) (err error))
+
+var Lsetxattr = enter_Lsetxattr
+
+func enter_Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
+ funcref := get_LsetxattrAddr()
+ if funcptrtest(GetZosLibVec()+SYS___LSETXATTR_A<<4, "") == 0 {
+ *funcref = impl_Lsetxattr
+ } else {
+ *funcref = error_Lsetxattr
+ }
+ return (*funcref)(path, attr, data, flags)
+}
+
+func error_Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Fstatfs(fd int, buf *Statfs_t) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FSTATFS<<4, uintptr(fd), uintptr(unsafe.Pointer(buf)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_FstatfsAddr() *(func(fd int, buf *Statfs_t) (err error))
+
+var Fstatfs = enter_Fstatfs
+
+func enter_Fstatfs(fd int, buf *Statfs_t) (err error) {
+ funcref := get_FstatfsAddr()
+ if funcptrtest(GetZosLibVec()+SYS_FSTATFS<<4, "") == 0 {
+ *funcref = impl_Fstatfs
+ } else {
+ *funcref = error_Fstatfs
+ }
+ return (*funcref)(fd, buf)
+}
+
+func error_Fstatfs(fd int, buf *Statfs_t) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Fstatvfs(fd int, stat *Statvfs_t) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FSTATVFS<<4, uintptr(fd), uintptr(unsafe.Pointer(stat)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Fsync(fd int) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FSYNC<<4, uintptr(fd))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Futimes(fd int, tv []Timeval) (err error) {
var _p0 unsafe.Pointer
- if len(buf) > 0 {
- _p0 = unsafe.Pointer(&buf[0])
+ if len(tv) > 0 {
+ _p0 = unsafe.Pointer(&tv[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
- _, _, e1 := syscall_syscall(SYS___GETHOSTNAME_A, uintptr(_p0), uintptr(len(buf)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FUTIMES<<4, uintptr(fd), uintptr(_p0), uintptr(len(tv)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_FutimesAddr() *(func(fd int, tv []Timeval) (err error))
-func Getegid() (egid int) {
- r0, _, _ := syscall_rawsyscall(SYS_GETEGID, 0, 0, 0)
- egid = int(r0)
+var Futimes = enter_Futimes
+
+func enter_Futimes(fd int, tv []Timeval) (err error) {
+ funcref := get_FutimesAddr()
+ if funcptrtest(GetZosLibVec()+SYS_FUTIMES<<4, "") == 0 {
+ *funcref = impl_Futimes
+ } else {
+ *funcref = error_Futimes
+ }
+ return (*funcref)(fd, tv)
+}
+
+func error_Futimes(fd int, tv []Timeval) (err error) {
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Geteuid() (uid int) {
- r0, _, _ := syscall_rawsyscall(SYS_GETEUID, 0, 0, 0)
- uid = int(r0)
+func impl_Futimesat(dirfd int, path string, tv []Timeval) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ var _p1 unsafe.Pointer
+ if len(tv) > 0 {
+ _p1 = unsafe.Pointer(&tv[0])
+ } else {
+ _p1 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___FUTIMESAT_A<<4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(tv)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_FutimesatAddr() *(func(dirfd int, path string, tv []Timeval) (err error))
+
+var Futimesat = enter_Futimesat
+
+func enter_Futimesat(dirfd int, path string, tv []Timeval) (err error) {
+ funcref := get_FutimesatAddr()
+ if funcptrtest(GetZosLibVec()+SYS___FUTIMESAT_A<<4, "") == 0 {
+ *funcref = impl_Futimesat
+ } else {
+ *funcref = error_Futimesat
+ }
+ return (*funcref)(dirfd, path, tv)
+}
+
+func error_Futimesat(dirfd int, path string, tv []Timeval) (err error) {
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Getgid() (gid int) {
- r0, _, _ := syscall_rawsyscall(SYS_GETGID, 0, 0, 0)
- gid = int(r0)
+func Ftruncate(fd int, length int64) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FTRUNCATE<<4, uintptr(fd), uintptr(length))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Getpid() (pid int) {
- r0, _, _ := syscall_rawsyscall(SYS_GETPID, 0, 0, 0)
- pid = int(r0)
+func impl_Getrandom(buf []byte, flags int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(buf) > 0 {
+ _p0 = unsafe.Pointer(&buf[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_GETRANDOM<<4, uintptr(_p0), uintptr(len(buf)), uintptr(flags))
+ runtime.ExitSyscall()
+ n = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_GetrandomAddr() *(func(buf []byte, flags int) (n int, err error))
+
+var Getrandom = enter_Getrandom
+
+func enter_Getrandom(buf []byte, flags int) (n int, err error) {
+ funcref := get_GetrandomAddr()
+ if funcptrtest(GetZosLibVec()+SYS_GETRANDOM<<4, "") == 0 {
+ *funcref = impl_Getrandom
+ } else {
+ *funcref = error_Getrandom
+ }
+ return (*funcref)(buf, flags)
+}
+
+func error_Getrandom(buf []byte, flags int) (n int, err error) {
+ n = -1
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Getpgid(pid int) (pgid int, err error) {
- r0, _, e1 := syscall_rawsyscall(SYS_GETPGID, uintptr(pid), 0, 0)
- pgid = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+func impl_InotifyInit() (fd int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec() + SYS_INOTIFY_INIT<<4)
+ runtime.ExitSyscall()
+ fd = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_InotifyInitAddr() *(func() (fd int, err error))
+
+var InotifyInit = enter_InotifyInit
+
+func enter_InotifyInit() (fd int, err error) {
+ funcref := get_InotifyInitAddr()
+ if funcptrtest(GetZosLibVec()+SYS_INOTIFY_INIT<<4, "") == 0 {
+ *funcref = impl_InotifyInit
+ } else {
+ *funcref = error_InotifyInit
}
+ return (*funcref)()
+}
+
+func error_InotifyInit() (fd int, err error) {
+ fd = -1
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Getppid() (pid int) {
- r0, _, _ := syscall_rawsyscall(SYS_GETPPID, 0, 0, 0)
- pid = int(r0)
+func impl_InotifyInit1(flags int) (fd int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_INOTIFY_INIT1<<4, uintptr(flags))
+ runtime.ExitSyscall()
+ fd = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_InotifyInit1Addr() *(func(flags int) (fd int, err error))
+
+var InotifyInit1 = enter_InotifyInit1
+
+func enter_InotifyInit1(flags int) (fd int, err error) {
+ funcref := get_InotifyInit1Addr()
+ if funcptrtest(GetZosLibVec()+SYS_INOTIFY_INIT1<<4, "") == 0 {
+ *funcref = impl_InotifyInit1
+ } else {
+ *funcref = error_InotifyInit1
+ }
+ return (*funcref)(flags)
+}
+
+func error_InotifyInit1(flags int) (fd int, err error) {
+ fd = -1
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(pathname)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___INOTIFY_ADD_WATCH_A<<4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
+ runtime.ExitSyscall()
+ watchdesc = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_InotifyAddWatchAddr() *(func(fd int, pathname string, mask uint32) (watchdesc int, err error))
+
+var InotifyAddWatch = enter_InotifyAddWatch
+
+func enter_InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
+ funcref := get_InotifyAddWatchAddr()
+ if funcptrtest(GetZosLibVec()+SYS___INOTIFY_ADD_WATCH_A<<4, "") == 0 {
+ *funcref = impl_InotifyAddWatch
+ } else {
+ *funcref = error_InotifyAddWatch
+ }
+ return (*funcref)(fd, pathname, mask)
+}
+
+func error_InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
+ watchdesc = -1
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_INOTIFY_RM_WATCH<<4, uintptr(fd), uintptr(watchdesc))
+ runtime.ExitSyscall()
+ success = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_InotifyRmWatchAddr() *(func(fd int, watchdesc uint32) (success int, err error))
+
+var InotifyRmWatch = enter_InotifyRmWatch
+
+func enter_InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
+ funcref := get_InotifyRmWatchAddr()
+ if funcptrtest(GetZosLibVec()+SYS_INOTIFY_RM_WATCH<<4, "") == 0 {
+ *funcref = impl_InotifyRmWatch
+ } else {
+ *funcref = error_InotifyRmWatch
+ }
+ return (*funcref)(fd, watchdesc)
+}
+
+func error_InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
+ success = -1
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Listxattr(path string, dest []byte) (sz int, err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ var _p1 unsafe.Pointer
+ if len(dest) > 0 {
+ _p1 = unsafe.Pointer(&dest[0])
+ } else {
+ _p1 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___LISTXATTR_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
+ runtime.ExitSyscall()
+ sz = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_ListxattrAddr() *(func(path string, dest []byte) (sz int, err error))
+
+var Listxattr = enter_Listxattr
+
+func enter_Listxattr(path string, dest []byte) (sz int, err error) {
+ funcref := get_ListxattrAddr()
+ if funcptrtest(GetZosLibVec()+SYS___LISTXATTR_A<<4, "") == 0 {
+ *funcref = impl_Listxattr
+ } else {
+ *funcref = error_Listxattr
+ }
+ return (*funcref)(path, dest)
+}
+
+func error_Listxattr(path string, dest []byte) (sz int, err error) {
+ sz = -1
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Llistxattr(path string, dest []byte) (sz int, err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ var _p1 unsafe.Pointer
+ if len(dest) > 0 {
+ _p1 = unsafe.Pointer(&dest[0])
+ } else {
+ _p1 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___LLISTXATTR_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
+ runtime.ExitSyscall()
+ sz = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_LlistxattrAddr() *(func(path string, dest []byte) (sz int, err error))
+
+var Llistxattr = enter_Llistxattr
+
+func enter_Llistxattr(path string, dest []byte) (sz int, err error) {
+ funcref := get_LlistxattrAddr()
+ if funcptrtest(GetZosLibVec()+SYS___LLISTXATTR_A<<4, "") == 0 {
+ *funcref = impl_Llistxattr
+ } else {
+ *funcref = error_Llistxattr
+ }
+ return (*funcref)(path, dest)
+}
+
+func error_Llistxattr(path string, dest []byte) (sz int, err error) {
+ sz = -1
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Lremovexattr(path string, attr string) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ var _p1 *byte
+ _p1, err = BytePtrFromString(attr)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___LREMOVEXATTR_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_LremovexattrAddr() *(func(path string, attr string) (err error))
+
+var Lremovexattr = enter_Lremovexattr
+
+func enter_Lremovexattr(path string, attr string) (err error) {
+ funcref := get_LremovexattrAddr()
+ if funcptrtest(GetZosLibVec()+SYS___LREMOVEXATTR_A<<4, "") == 0 {
+ *funcref = impl_Lremovexattr
+ } else {
+ *funcref = error_Lremovexattr
+ }
+ return (*funcref)(path, attr)
+}
+
+func error_Lremovexattr(path string, attr string) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Lutimes(path string, tv []Timeval) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ var _p1 unsafe.Pointer
+ if len(tv) > 0 {
+ _p1 = unsafe.Pointer(&tv[0])
+ } else {
+ _p1 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___LUTIMES_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(tv)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_LutimesAddr() *(func(path string, tv []Timeval) (err error))
+
+var Lutimes = enter_Lutimes
+
+func enter_Lutimes(path string, tv []Timeval) (err error) {
+ funcref := get_LutimesAddr()
+ if funcptrtest(GetZosLibVec()+SYS___LUTIMES_A<<4, "") == 0 {
+ *funcref = impl_Lutimes
+ } else {
+ *funcref = error_Lutimes
+ }
+ return (*funcref)(path, tv)
+}
+
+func error_Lutimes(path string, tv []Timeval) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Mprotect(b []byte, prot int) (err error) {
+ var _p0 unsafe.Pointer
+ if len(b) > 0 {
+ _p0 = unsafe.Pointer(&b[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_MPROTECT<<4, uintptr(_p0), uintptr(len(b)), uintptr(prot))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Msync(b []byte, flags int) (err error) {
+ var _p0 unsafe.Pointer
+ if len(b) > 0 {
+ _p0 = unsafe.Pointer(&b[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_MSYNC<<4, uintptr(_p0), uintptr(len(b)), uintptr(flags))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Console2(cmsg *ConsMsg2, modstr *byte, concmd *uint32) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___CONSOLE2<<4, uintptr(unsafe.Pointer(cmsg)), uintptr(unsafe.Pointer(modstr)), uintptr(unsafe.Pointer(concmd)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Poll(fds []PollFd, timeout int) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(fds) > 0 {
+ _p0 = unsafe.Pointer(&fds[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_POLL<<4, uintptr(_p0), uintptr(len(fds)), uintptr(timeout))
+ runtime.ExitSyscall()
+ n = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Readdir_r(dirp uintptr, entry *direntLE, result **direntLE) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___READDIR_R_A<<4, uintptr(dirp), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Statfs(path string, buf *Statfs_t) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___STATFS_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_StatfsAddr() *(func(path string, buf *Statfs_t) (err error))
+
+var Statfs = enter_Statfs
+
+func enter_Statfs(path string, buf *Statfs_t) (err error) {
+ funcref := get_StatfsAddr()
+ if funcptrtest(GetZosLibVec()+SYS___STATFS_A<<4, "") == 0 {
+ *funcref = impl_Statfs
+ } else {
+ *funcref = error_Statfs
+ }
+ return (*funcref)(path, buf)
+}
+
+func error_Statfs(path string, buf *Statfs_t) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Syncfs(fd int) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SYNCFS<<4, uintptr(fd))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_SyncfsAddr() *(func(fd int) (err error))
+
+var Syncfs = enter_Syncfs
+
+func enter_Syncfs(fd int) (err error) {
+ funcref := get_SyncfsAddr()
+ if funcptrtest(GetZosLibVec()+SYS_SYNCFS<<4, "") == 0 {
+ *funcref = impl_Syncfs
+ } else {
+ *funcref = error_Syncfs
+ }
+ return (*funcref)(fd)
+}
+
+func error_Syncfs(fd int) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Times(tms *Tms) (ticks uintptr, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_TIMES<<4, uintptr(unsafe.Pointer(tms)))
+ runtime.ExitSyscall()
+ ticks = uintptr(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func W_Getmntent(buff *byte, size int) (lastsys int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_W_GETMNTENT<<4, uintptr(unsafe.Pointer(buff)), uintptr(size))
+ runtime.ExitSyscall()
+ lastsys = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func W_Getmntent_A(buff *byte, size int) (lastsys int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___W_GETMNTENT_A<<4, uintptr(unsafe.Pointer(buff)), uintptr(size))
+ runtime.ExitSyscall()
+ lastsys = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func mount_LE(path string, filesystem string, fstype string, mtm uint32, parmlen int32, parm string) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ var _p1 *byte
+ _p1, err = BytePtrFromString(filesystem)
+ if err != nil {
+ return
+ }
+ var _p2 *byte
+ _p2, err = BytePtrFromString(fstype)
+ if err != nil {
+ return
+ }
+ var _p3 *byte
+ _p3, err = BytePtrFromString(parm)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___MOUNT_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(mtm), uintptr(parmlen), uintptr(unsafe.Pointer(_p3)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func unmount_LE(filesystem string, mtm int) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(filesystem)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___UMOUNT_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(mtm))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Chroot(path string) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___CHROOT_A<<4, uintptr(unsafe.Pointer(_p0)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Select(nmsgsfds int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (ret int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SELECT<<4, uintptr(nmsgsfds), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)))
+ runtime.ExitSyscall()
+ ret = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Uname(buf *Utsname) (err error) {
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_____OSNAME_A<<4, uintptr(unsafe.Pointer(buf)))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Unshare(flags int) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_UNSHARE<<4, uintptr(flags))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_UnshareAddr() *(func(flags int) (err error))
+
+var Unshare = enter_Unshare
+
+func enter_Unshare(flags int) (err error) {
+ funcref := get_UnshareAddr()
+ if funcptrtest(GetZosLibVec()+SYS_UNSHARE<<4, "") == 0 {
+ *funcref = impl_Unshare
+ } else {
+ *funcref = error_Unshare
+ }
+ return (*funcref)(flags)
+}
+
+func error_Unshare(flags int) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Gethostname(buf []byte) (err error) {
+ var _p0 unsafe.Pointer
+ if len(buf) > 0 {
+ _p0 = unsafe.Pointer(&buf[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___GETHOSTNAME_A<<4, uintptr(_p0), uintptr(len(buf)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Getgid() (gid int) {
+ r0, _, _ := CallLeFuncWithErr(GetZosLibVec() + SYS_GETGID<<4)
+ gid = int(r0)
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Getpid() (pid int) {
+ r0, _, _ := CallLeFuncWithErr(GetZosLibVec() + SYS_GETPID<<4)
+ pid = int(r0)
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Getpgid(pid int) (pgid int, err error) {
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_GETPGID<<4, uintptr(pid))
+ pgid = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Getppid() (pid int) {
+ r0, _, _ := CallLeFuncWithErr(GetZosLibVec() + SYS_GETPPID<<4)
+ pid = int(r0)
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Getpriority(which int, who int) (prio int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_GETPRIORITY<<4, uintptr(which), uintptr(who))
+ runtime.ExitSyscall()
+ prio = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Getrlimit(resource int, rlim *Rlimit) (err error) {
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_GETRLIMIT<<4, uintptr(resource), uintptr(unsafe.Pointer(rlim)))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func getrusage(who int, rusage *rusage_zos) (err error) {
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_GETRUSAGE<<4, uintptr(who), uintptr(unsafe.Pointer(rusage)))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Getegid() (egid int) {
+ runtime.EnterSyscall()
+ r0, _, _ := CallLeFuncWithErr(GetZosLibVec() + SYS_GETEGID<<4)
+ runtime.ExitSyscall()
+ egid = int(r0)
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Geteuid() (euid int) {
+ runtime.EnterSyscall()
+ r0, _, _ := CallLeFuncWithErr(GetZosLibVec() + SYS_GETEUID<<4)
+ runtime.ExitSyscall()
+ euid = int(r0)
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Getsid(pid int) (sid int, err error) {
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_GETSID<<4, uintptr(pid))
+ sid = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Getuid() (uid int) {
+ r0, _, _ := CallLeFuncWithErr(GetZosLibVec() + SYS_GETUID<<4)
+ uid = int(r0)
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Kill(pid int, sig Signal) (err error) {
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_KILL<<4, uintptr(pid), uintptr(sig))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Lchown(path string, uid int, gid int) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___LCHOWN_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Link(path string, link string) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ var _p1 *byte
+ _p1, err = BytePtrFromString(link)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___LINK_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Linkat(oldDirFd int, oldPath string, newDirFd int, newPath string, flags int) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(oldPath)
+ if err != nil {
+ return
+ }
+ var _p1 *byte
+ _p1, err = BytePtrFromString(newPath)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___LINKAT_A<<4, uintptr(oldDirFd), uintptr(unsafe.Pointer(_p0)), uintptr(newDirFd), uintptr(unsafe.Pointer(_p1)), uintptr(flags))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_LinkatAddr() *(func(oldDirFd int, oldPath string, newDirFd int, newPath string, flags int) (err error))
+
+var Linkat = enter_Linkat
+
+func enter_Linkat(oldDirFd int, oldPath string, newDirFd int, newPath string, flags int) (err error) {
+ funcref := get_LinkatAddr()
+ if funcptrtest(GetZosLibVec()+SYS___LINKAT_A<<4, "") == 0 {
+ *funcref = impl_Linkat
+ } else {
+ *funcref = error_Linkat
+ }
+ return (*funcref)(oldDirFd, oldPath, newDirFd, newPath, flags)
+}
+
+func error_Linkat(oldDirFd int, oldPath string, newDirFd int, newPath string, flags int) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Listen(s int, n int) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_LISTEN<<4, uintptr(s), uintptr(n))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func lstat(path string, stat *Stat_LE_t) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___LSTAT_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Mkdir(path string, mode uint32) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___MKDIR_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(mode))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Mkdirat(dirfd int, path string, mode uint32) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___MKDIRAT_A<<4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_MkdiratAddr() *(func(dirfd int, path string, mode uint32) (err error))
+
+var Mkdirat = enter_Mkdirat
+
+func enter_Mkdirat(dirfd int, path string, mode uint32) (err error) {
+ funcref := get_MkdiratAddr()
+ if funcptrtest(GetZosLibVec()+SYS___MKDIRAT_A<<4, "") == 0 {
+ *funcref = impl_Mkdirat
+ } else {
+ *funcref = error_Mkdirat
+ }
+ return (*funcref)(dirfd, path, mode)
+}
+
+func error_Mkdirat(dirfd int, path string, mode uint32) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Mkfifo(path string, mode uint32) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___MKFIFO_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(mode))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Mknod(path string, mode uint32, dev int) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___MKNOD_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___MKNODAT_A<<4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_MknodatAddr() *(func(dirfd int, path string, mode uint32, dev int) (err error))
+
+var Mknodat = enter_Mknodat
+
+func enter_Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
+ funcref := get_MknodatAddr()
+ if funcptrtest(GetZosLibVec()+SYS___MKNODAT_A<<4, "") == 0 {
+ *funcref = impl_Mknodat
+ } else {
+ *funcref = error_Mknodat
+ }
+ return (*funcref)(dirfd, path, mode, dev)
+}
+
+func error_Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_PivotRoot(newroot string, oldroot string) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(newroot)
+ if err != nil {
+ return
+ }
+ var _p1 *byte
+ _p1, err = BytePtrFromString(oldroot)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___PIVOT_ROOT_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_PivotRootAddr() *(func(newroot string, oldroot string) (err error))
+
+var PivotRoot = enter_PivotRoot
+
+func enter_PivotRoot(newroot string, oldroot string) (err error) {
+ funcref := get_PivotRootAddr()
+ if funcptrtest(GetZosLibVec()+SYS___PIVOT_ROOT_A<<4, "") == 0 {
+ *funcref = impl_PivotRoot
+ } else {
+ *funcref = error_PivotRoot
+ }
+ return (*funcref)(newroot, oldroot)
+}
+
+func error_PivotRoot(newroot string, oldroot string) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Pread(fd int, p []byte, offset int64) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(p) > 0 {
+ _p0 = unsafe.Pointer(&p[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_PREAD<<4, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset))
+ runtime.ExitSyscall()
+ n = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Getpriority(which int, who int) (prio int, err error) {
- r0, _, e1 := syscall_syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
- prio = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
+ var _p0 unsafe.Pointer
+ if len(p) > 0 {
+ _p0 = unsafe.Pointer(&p[0])
+ } else {
+ _p0 = unsafe.Pointer(&_zero)
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_PWRITE<<4, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset))
+ runtime.ExitSyscall()
+ n = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Getrlimit(resource int, rlim *Rlimit) (err error) {
- _, _, e1 := syscall_rawsyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+func impl_Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___PRCTL_A<<4, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_PrctlAddr() *(func(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error))
-func getrusage(who int, rusage *rusage_zos) (err error) {
- _, _, e1 := syscall_rawsyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+var Prctl = enter_Prctl
+
+func enter_Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
+ funcref := get_PrctlAddr()
+ if funcptrtest(GetZosLibVec()+SYS___PRCTL_A<<4, "") == 0 {
+ *funcref = impl_Prctl
+ } else {
+ *funcref = error_Prctl
}
- return
+ return (*funcref)(option, arg2, arg3, arg4, arg5)
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
-func Getsid(pid int) (sid int, err error) {
- r0, _, e1 := syscall_rawsyscall(SYS_GETSID, uintptr(pid), 0, 0)
- sid = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
+func error_Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Getuid() (uid int) {
- r0, _, _ := syscall_rawsyscall(SYS_GETUID, 0, 0, 0)
- uid = int(r0)
+func impl_Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_PRLIMIT<<4, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_PrlimitAddr() *(func(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error))
-func Kill(pid int, sig Signal) (err error) {
- _, _, e1 := syscall_rawsyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+var Prlimit = enter_Prlimit
+
+func enter_Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
+ funcref := get_PrlimitAddr()
+ if funcptrtest(GetZosLibVec()+SYS_PRLIMIT<<4, "") == 0 {
+ *funcref = impl_Prlimit
+ } else {
+ *funcref = error_Prlimit
}
+ return (*funcref)(pid, resource, newlimit, old)
+}
+
+func error_Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Lchown(path string, uid int, gid int) (err error) {
+func Rename(from string, to string) (err error) {
var _p0 *byte
- _p0, err = BytePtrFromString(path)
+ _p0, err = BytePtrFromString(from)
+ if err != nil {
+ return
+ }
+ var _p1 *byte
+ _p1, err = BytePtrFromString(to)
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___LCHOWN_A, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___RENAME_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Link(path string, link string) (err error) {
+func impl_Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
var _p0 *byte
- _p0, err = BytePtrFromString(path)
+ _p0, err = BytePtrFromString(oldpath)
if err != nil {
return
}
var _p1 *byte
- _p1, err = BytePtrFromString(link)
+ _p1, err = BytePtrFromString(newpath)
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___LINK_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___RENAMEAT_A<<4, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_RenameatAddr() *(func(olddirfd int, oldpath string, newdirfd int, newpath string) (err error))
-func Listen(s int, n int) (err error) {
- _, _, e1 := syscall_syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+var Renameat = enter_Renameat
+
+func enter_Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
+ funcref := get_RenameatAddr()
+ if funcptrtest(GetZosLibVec()+SYS___RENAMEAT_A<<4, "") == 0 {
+ *funcref = impl_Renameat
+ } else {
+ *funcref = error_Renameat
}
+ return (*funcref)(olddirfd, oldpath, newdirfd, newpath)
+}
+
+func error_Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func lstat(path string, stat *Stat_LE_t) (err error) {
+func impl_Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
var _p0 *byte
- _p0, err = BytePtrFromString(path)
+ _p0, err = BytePtrFromString(oldpath)
+ if err != nil {
+ return
+ }
+ var _p1 *byte
+ _p1, err = BytePtrFromString(newpath)
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___LSTAT_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___RENAMEAT2_A<<4, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_Renameat2Addr() *(func(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error))
-func Mkdir(path string, mode uint32) (err error) {
- var _p0 *byte
- _p0, err = BytePtrFromString(path)
- if err != nil {
- return
- }
- _, _, e1 := syscall_syscall(SYS___MKDIR_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+var Renameat2 = enter_Renameat2
+
+func enter_Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
+ funcref := get_Renameat2Addr()
+ if funcptrtest(GetZosLibVec()+SYS___RENAMEAT2_A<<4, "") == 0 {
+ *funcref = impl_Renameat2
+ } else {
+ *funcref = error_Renameat2
}
+ return (*funcref)(olddirfd, oldpath, newdirfd, newpath, flags)
+}
+
+func error_Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Mkfifo(path string, mode uint32) (err error) {
+func Rmdir(path string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___MKFIFO_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___RMDIR_A<<4, uintptr(unsafe.Pointer(_p0)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Mknod(path string, mode uint32, dev int) (err error) {
- var _p0 *byte
- _p0, err = BytePtrFromString(path)
- if err != nil {
- return
- }
- _, _, e1 := syscall_syscall(SYS___MKNOD_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
- if e1 != 0 {
- err = errnoErr(e1)
+func Seek(fd int, offset int64, whence int) (off int64, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_LSEEK<<4, uintptr(fd), uintptr(offset), uintptr(whence))
+ runtime.ExitSyscall()
+ off = int64(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Pread(fd int, p []byte, offset int64) (n int, err error) {
- var _p0 unsafe.Pointer
- if len(p) > 0 {
- _p0 = unsafe.Pointer(&p[0])
- } else {
- _p0 = unsafe.Pointer(&_zero)
+func Setegid(egid int) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SETEGID<<4, uintptr(egid))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
- r0, _, e1 := syscall_syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
- n = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Seteuid(euid int) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SETEUID<<4, uintptr(euid))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
+func impl_Sethostname(p []byte) (err error) {
var _p0 unsafe.Pointer
if len(p) > 0 {
_p0 = unsafe.Pointer(&p[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
- r0, _, e1 := syscall_syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
- n = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___SETHOSTNAME_A<<4, uintptr(_p0), uintptr(len(p)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_SethostnameAddr() *(func(p []byte) (err error))
-func Readlink(path string, buf []byte) (n int, err error) {
- var _p0 *byte
- _p0, err = BytePtrFromString(path)
- if err != nil {
- return
- }
- var _p1 unsafe.Pointer
- if len(buf) > 0 {
- _p1 = unsafe.Pointer(&buf[0])
+var Sethostname = enter_Sethostname
+
+func enter_Sethostname(p []byte) (err error) {
+ funcref := get_SethostnameAddr()
+ if funcptrtest(GetZosLibVec()+SYS___SETHOSTNAME_A<<4, "") == 0 {
+ *funcref = impl_Sethostname
} else {
- _p1 = unsafe.Pointer(&_zero)
+ *funcref = error_Sethostname
}
- r0, _, e1 := syscall_syscall(SYS___READLINK_A, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
- n = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
- return
+ return (*funcref)(p)
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
-func Rename(from string, to string) (err error) {
- var _p0 *byte
- _p0, err = BytePtrFromString(from)
- if err != nil {
- return
- }
- var _p1 *byte
- _p1, err = BytePtrFromString(to)
- if err != nil {
- return
- }
- _, _, e1 := syscall_syscall(SYS___RENAME_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
- }
+func error_Sethostname(p []byte) (err error) {
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Rmdir(path string) (err error) {
- var _p0 *byte
- _p0, err = BytePtrFromString(path)
- if err != nil {
- return
- }
- _, _, e1 := syscall_syscall(SYS___RMDIR_A, uintptr(unsafe.Pointer(_p0)), 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+func impl_Setns(fd int, nstype int) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SETNS<<4, uintptr(fd), uintptr(nstype))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+//go:nosplit
+func get_SetnsAddr() *(func(fd int, nstype int) (err error))
-func Seek(fd int, offset int64, whence int) (off int64, err error) {
- r0, _, e1 := syscall_syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
- off = int64(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+var Setns = enter_Setns
+
+func enter_Setns(fd int, nstype int) (err error) {
+ funcref := get_SetnsAddr()
+ if funcptrtest(GetZosLibVec()+SYS_SETNS<<4, "") == 0 {
+ *funcref = impl_Setns
+ } else {
+ *funcref = error_Setns
}
+ return (*funcref)(fd, nstype)
+}
+
+func error_Setns(fd int, nstype int) (err error) {
+ err = ENOSYS
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setpriority(which int, who int, prio int) (err error) {
- _, _, e1 := syscall_syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SETPRIORITY<<4, uintptr(which), uintptr(who), uintptr(prio))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -971,9 +2910,9 @@ func Setpriority(which int, who int, prio int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setpgid(pid int, pgid int) (err error) {
- _, _, e1 := syscall_rawsyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SETPGID<<4, uintptr(pid), uintptr(pgid))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -981,9 +2920,9 @@ func Setpgid(pid int, pgid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setrlimit(resource int, lim *Rlimit) (err error) {
- _, _, e1 := syscall_rawsyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(lim)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SETRLIMIT<<4, uintptr(resource), uintptr(unsafe.Pointer(lim)))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -991,9 +2930,9 @@ func Setrlimit(resource int, lim *Rlimit) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setregid(rgid int, egid int) (err error) {
- _, _, e1 := syscall_rawsyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SETREGID<<4, uintptr(rgid), uintptr(egid))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1001,9 +2940,9 @@ func Setregid(rgid int, egid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setreuid(ruid int, euid int) (err error) {
- _, _, e1 := syscall_rawsyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SETREUID<<4, uintptr(ruid), uintptr(euid))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1011,10 +2950,10 @@ func Setreuid(ruid int, euid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setsid() (pid int, err error) {
- r0, _, e1 := syscall_rawsyscall(SYS_SETSID, 0, 0, 0)
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec() + SYS_SETSID<<4)
pid = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1022,9 +2961,11 @@ func Setsid() (pid int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setuid(uid int) (err error) {
- _, _, e1 := syscall_syscall(SYS_SETUID, uintptr(uid), 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SETUID<<4, uintptr(uid))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1032,9 +2973,11 @@ func Setuid(uid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Setgid(uid int) (err error) {
- _, _, e1 := syscall_syscall(SYS_SETGID, uintptr(uid), 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SETGID<<4, uintptr(uid))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1042,9 +2985,11 @@ func Setgid(uid int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Shutdown(fd int, how int) (err error) {
- _, _, e1 := syscall_syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_SHUTDOWN<<4, uintptr(fd), uintptr(how))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1057,9 +3002,11 @@ func stat(path string, statLE *Stat_LE_t) (err error) {
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___STAT_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(statLE)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___STAT_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(statLE)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1077,17 +3024,63 @@ func Symlink(path string, link string) (err error) {
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___SYMLINK_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___SYMLINK_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Symlinkat(oldPath string, dirfd int, newPath string) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(oldPath)
+ if err != nil {
+ return
+ }
+ var _p1 *byte
+ _p1, err = BytePtrFromString(newPath)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___SYMLINKAT_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(dirfd), uintptr(unsafe.Pointer(_p1)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
+//go:nosplit
+func get_SymlinkatAddr() *(func(oldPath string, dirfd int, newPath string) (err error))
+
+var Symlinkat = enter_Symlinkat
+
+func enter_Symlinkat(oldPath string, dirfd int, newPath string) (err error) {
+ funcref := get_SymlinkatAddr()
+ if funcptrtest(GetZosLibVec()+SYS___SYMLINKAT_A<<4, "") == 0 {
+ *funcref = impl_Symlinkat
+ } else {
+ *funcref = error_Symlinkat
+ }
+ return (*funcref)(oldPath, dirfd, newPath)
+}
+
+func error_Symlinkat(oldPath string, dirfd int, newPath string) (err error) {
+ err = ENOSYS
+ return
+}
+
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Sync() {
- syscall_syscall(SYS_SYNC, 0, 0, 0)
+ runtime.EnterSyscall()
+ CallLeFuncWithErr(GetZosLibVec() + SYS_SYNC<<4)
+ runtime.ExitSyscall()
return
}
@@ -1099,9 +3092,11 @@ func Truncate(path string, length int64) (err error) {
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___TRUNCATE_A, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___TRUNCATE_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(length))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1109,9 +3104,11 @@ func Truncate(path string, length int64) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Tcgetattr(fildes int, termptr *Termios) (err error) {
- _, _, e1 := syscall_syscall(SYS_TCGETATTR, uintptr(fildes), uintptr(unsafe.Pointer(termptr)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_TCGETATTR<<4, uintptr(fildes), uintptr(unsafe.Pointer(termptr)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1119,9 +3116,11 @@ func Tcgetattr(fildes int, termptr *Termios) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Tcsetattr(fildes int, when int, termptr *Termios) (err error) {
- _, _, e1 := syscall_syscall(SYS_TCSETATTR, uintptr(fildes), uintptr(when), uintptr(unsafe.Pointer(termptr)))
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_TCSETATTR<<4, uintptr(fildes), uintptr(when), uintptr(unsafe.Pointer(termptr)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1129,7 +3128,9 @@ func Tcsetattr(fildes int, when int, termptr *Termios) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Umask(mask int) (oldmask int) {
- r0, _, _ := syscall_syscall(SYS_UMASK, uintptr(mask), 0, 0)
+ runtime.EnterSyscall()
+ r0, _, _ := CallLeFuncWithErr(GetZosLibVec()+SYS_UMASK<<4, uintptr(mask))
+ runtime.ExitSyscall()
oldmask = int(r0)
return
}
@@ -1142,10 +3143,49 @@ func Unlink(path string) (err error) {
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___UNLINK_A, uintptr(unsafe.Pointer(_p0)), 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___UNLINK_A<<4, uintptr(unsafe.Pointer(_p0)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_Unlinkat(dirfd int, path string, flags int) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___UNLINKAT_A<<4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_UnlinkatAddr() *(func(dirfd int, path string, flags int) (err error))
+
+var Unlinkat = enter_Unlinkat
+
+func enter_Unlinkat(dirfd int, path string, flags int) (err error) {
+ funcref := get_UnlinkatAddr()
+ if funcptrtest(GetZosLibVec()+SYS___UNLINKAT_A<<4, "") == 0 {
+ *funcref = impl_Unlinkat
+ } else {
+ *funcref = error_Unlinkat
}
+ return (*funcref)(dirfd, path, flags)
+}
+
+func error_Unlinkat(dirfd int, path string, flags int) (err error) {
+ err = ENOSYS
return
}
@@ -1157,9 +3197,11 @@ func Utime(path string, utim *Utimbuf) (err error) {
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___UTIME_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(utim)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___UTIME_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(utim)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1172,11 +3214,91 @@ func open(path string, mode int, perm uint32) (fd int, err error) {
if err != nil {
return
}
- r0, _, e1 := syscall_syscall(SYS___OPEN_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___OPEN_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
+ runtime.ExitSyscall()
+ fd = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___OPENAT_A<<4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode))
+ runtime.ExitSyscall()
+ fd = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_openatAddr() *(func(dirfd int, path string, flags int, mode uint32) (fd int, err error))
+
+var openat = enter_openat
+
+func enter_openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
+ funcref := get_openatAddr()
+ if funcptrtest(GetZosLibVec()+SYS___OPENAT_A<<4, "") == 0 {
+ *funcref = impl_openat
+ } else {
+ *funcref = error_openat
+ }
+ return (*funcref)(dirfd, path, flags, mode)
+}
+
+func error_openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
+ fd = -1
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func impl_openat2(dirfd int, path string, open_how *OpenHow, size int) (fd int, err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___OPENAT2_A<<4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(open_how)), uintptr(size))
+ runtime.ExitSyscall()
fd = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_openat2Addr() *(func(dirfd int, path string, open_how *OpenHow, size int) (fd int, err error))
+
+var openat2 = enter_openat2
+
+func enter_openat2(dirfd int, path string, open_how *OpenHow, size int) (fd int, err error) {
+ funcref := get_openat2Addr()
+ if funcptrtest(GetZosLibVec()+SYS___OPENAT2_A<<4, "") == 0 {
+ *funcref = impl_openat2
+ } else {
+ *funcref = error_openat2
}
+ return (*funcref)(dirfd, path, open_how, size)
+}
+
+func error_openat2(dirfd int, path string, open_how *OpenHow, size int) (fd int, err error) {
+ fd = -1
+ err = ENOSYS
return
}
@@ -1188,9 +3310,23 @@ func remove(path string) (err error) {
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS_REMOVE, uintptr(unsafe.Pointer(_p0)), 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_REMOVE<<4, uintptr(unsafe.Pointer(_p0)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func waitid(idType int, id int, info *Siginfo, options int) (err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_WAITID<<4, uintptr(idType), uintptr(id), uintptr(unsafe.Pointer(info)), uintptr(options))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1198,10 +3334,12 @@ func remove(path string) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func waitpid(pid int, wstatus *_C_int, options int) (wpid int, err error) {
- r0, _, e1 := syscall_syscall(SYS_WAITPID, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options))
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_WAITPID<<4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options))
+ runtime.ExitSyscall()
wpid = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1209,9 +3347,9 @@ func waitpid(pid int, wstatus *_C_int, options int) (wpid int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func gettimeofday(tv *timeval_zos) (err error) {
- _, _, e1 := syscall_rawsyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_GETTIMEOFDAY<<4, uintptr(unsafe.Pointer(tv)))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1219,9 +3357,9 @@ func gettimeofday(tv *timeval_zos) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func pipe(p *[2]_C_int) (err error) {
- _, _, e1 := syscall_rawsyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_PIPE<<4, uintptr(unsafe.Pointer(p)))
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
@@ -1234,20 +3372,87 @@ func utimes(path string, timeval *[2]Timeval) (err error) {
if err != nil {
return
}
- _, _, e1 := syscall_syscall(SYS___UTIMES_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
- if e1 != 0 {
- err = errnoErr(e1)
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___UTIMES_A<<4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-func Select(nmsgsfds int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (ret int, err error) {
- r0, _, e1 := syscall_syscall6(SYS_SELECT, uintptr(nmsgsfds), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
- ret = int(r0)
- if e1 != 0 {
- err = errnoErr(e1)
+func impl_utimensat(dirfd int, path string, ts *[2]Timespec, flags int) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS___UTIMENSAT_A<<4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(ts)), uintptr(flags))
+ runtime.ExitSyscall()
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+//go:nosplit
+func get_utimensatAddr() *(func(dirfd int, path string, ts *[2]Timespec, flags int) (err error))
+
+var utimensat = enter_utimensat
+
+func enter_utimensat(dirfd int, path string, ts *[2]Timespec, flags int) (err error) {
+ funcref := get_utimensatAddr()
+ if funcptrtest(GetZosLibVec()+SYS___UTIMENSAT_A<<4, "") == 0 {
+ *funcref = impl_utimensat
+ } else {
+ *funcref = error_utimensat
+ }
+ return (*funcref)(dirfd, path, ts, flags)
+}
+
+func error_utimensat(dirfd int, path string, ts *[2]Timespec, flags int) (err error) {
+ err = ENOSYS
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Posix_openpt(oflag int) (fd int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_POSIX_OPENPT<<4, uintptr(oflag))
+ runtime.ExitSyscall()
+ fd = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Grantpt(fildes int) (rc int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_GRANTPT<<4, uintptr(fildes))
+ runtime.ExitSyscall()
+ rc = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
+ }
+ return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Unlockpt(fildes int) (rc int, err error) {
+ runtime.EnterSyscall()
+ r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_UNLOCKPT<<4, uintptr(fildes))
+ runtime.ExitSyscall()
+ rc = int(r0)
+ if int64(r0) == -1 {
+ err = errnoErr2(e1, e2)
}
return
}
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
index 0cc3ce496e..53aef5dc58 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
@@ -452,4 +452,9 @@ const (
SYS_FUTEX_WAKE = 454
SYS_FUTEX_WAIT = 455
SYS_FUTEX_REQUEUE = 456
+ SYS_STATMOUNT = 457
+ SYS_LISTMOUNT = 458
+ SYS_LSM_GET_SELF_ATTR = 459
+ SYS_LSM_SET_SELF_ATTR = 460
+ SYS_LSM_LIST_MODULES = 461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
index 856d92d69e..71d524763d 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
@@ -374,4 +374,9 @@ const (
SYS_FUTEX_WAKE = 454
SYS_FUTEX_WAIT = 455
SYS_FUTEX_REQUEUE = 456
+ SYS_STATMOUNT = 457
+ SYS_LISTMOUNT = 458
+ SYS_LSM_GET_SELF_ATTR = 459
+ SYS_LSM_SET_SELF_ATTR = 460
+ SYS_LSM_LIST_MODULES = 461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
index 8d467094cf..c747706131 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
@@ -416,4 +416,9 @@ const (
SYS_FUTEX_WAKE = 454
SYS_FUTEX_WAIT = 455
SYS_FUTEX_REQUEUE = 456
+ SYS_STATMOUNT = 457
+ SYS_LISTMOUNT = 458
+ SYS_LSM_GET_SELF_ATTR = 459
+ SYS_LSM_SET_SELF_ATTR = 460
+ SYS_LSM_LIST_MODULES = 461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
index edc173244d..f96e214f6d 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
@@ -319,4 +319,9 @@ const (
SYS_FUTEX_WAKE = 454
SYS_FUTEX_WAIT = 455
SYS_FUTEX_REQUEUE = 456
+ SYS_STATMOUNT = 457
+ SYS_LISTMOUNT = 458
+ SYS_LSM_GET_SELF_ATTR = 459
+ SYS_LSM_SET_SELF_ATTR = 460
+ SYS_LSM_LIST_MODULES = 461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go
index 445eba2061..28425346cf 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go
@@ -313,4 +313,9 @@ const (
SYS_FUTEX_WAKE = 454
SYS_FUTEX_WAIT = 455
SYS_FUTEX_REQUEUE = 456
+ SYS_STATMOUNT = 457
+ SYS_LISTMOUNT = 458
+ SYS_LSM_GET_SELF_ATTR = 459
+ SYS_LSM_SET_SELF_ATTR = 460
+ SYS_LSM_LIST_MODULES = 461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
index adba01bca7..d0953018da 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
@@ -436,4 +436,9 @@ const (
SYS_FUTEX_WAKE = 4454
SYS_FUTEX_WAIT = 4455
SYS_FUTEX_REQUEUE = 4456
+ SYS_STATMOUNT = 4457
+ SYS_LISTMOUNT = 4458
+ SYS_LSM_GET_SELF_ATTR = 4459
+ SYS_LSM_SET_SELF_ATTR = 4460
+ SYS_LSM_LIST_MODULES = 4461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
index 014c4e9c7a..295c7f4b81 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
@@ -366,4 +366,9 @@ const (
SYS_FUTEX_WAKE = 5454
SYS_FUTEX_WAIT = 5455
SYS_FUTEX_REQUEUE = 5456
+ SYS_STATMOUNT = 5457
+ SYS_LISTMOUNT = 5458
+ SYS_LSM_GET_SELF_ATTR = 5459
+ SYS_LSM_SET_SELF_ATTR = 5460
+ SYS_LSM_LIST_MODULES = 5461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
index ccc97d74d0..d1a9eaca7a 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
@@ -366,4 +366,9 @@ const (
SYS_FUTEX_WAKE = 5454
SYS_FUTEX_WAIT = 5455
SYS_FUTEX_REQUEUE = 5456
+ SYS_STATMOUNT = 5457
+ SYS_LISTMOUNT = 5458
+ SYS_LSM_GET_SELF_ATTR = 5459
+ SYS_LSM_SET_SELF_ATTR = 5460
+ SYS_LSM_LIST_MODULES = 5461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
index ec2b64a95d..bec157c39f 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
@@ -436,4 +436,9 @@ const (
SYS_FUTEX_WAKE = 4454
SYS_FUTEX_WAIT = 4455
SYS_FUTEX_REQUEUE = 4456
+ SYS_STATMOUNT = 4457
+ SYS_LISTMOUNT = 4458
+ SYS_LSM_GET_SELF_ATTR = 4459
+ SYS_LSM_SET_SELF_ATTR = 4460
+ SYS_LSM_LIST_MODULES = 4461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go
index 21a839e338..7ee7bdc435 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go
@@ -443,4 +443,9 @@ const (
SYS_FUTEX_WAKE = 454
SYS_FUTEX_WAIT = 455
SYS_FUTEX_REQUEUE = 456
+ SYS_STATMOUNT = 457
+ SYS_LISTMOUNT = 458
+ SYS_LSM_GET_SELF_ATTR = 459
+ SYS_LSM_SET_SELF_ATTR = 460
+ SYS_LSM_LIST_MODULES = 461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
index c11121ec3b..fad1f25b44 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
@@ -415,4 +415,9 @@ const (
SYS_FUTEX_WAKE = 454
SYS_FUTEX_WAIT = 455
SYS_FUTEX_REQUEUE = 456
+ SYS_STATMOUNT = 457
+ SYS_LISTMOUNT = 458
+ SYS_LSM_GET_SELF_ATTR = 459
+ SYS_LSM_SET_SELF_ATTR = 460
+ SYS_LSM_LIST_MODULES = 461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
index 909b631fcb..7d3e16357d 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
@@ -415,4 +415,9 @@ const (
SYS_FUTEX_WAKE = 454
SYS_FUTEX_WAIT = 455
SYS_FUTEX_REQUEUE = 456
+ SYS_STATMOUNT = 457
+ SYS_LISTMOUNT = 458
+ SYS_LSM_GET_SELF_ATTR = 459
+ SYS_LSM_SET_SELF_ATTR = 460
+ SYS_LSM_LIST_MODULES = 461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
index e49bed16ea..0ed53ad9f7 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
@@ -320,4 +320,9 @@ const (
SYS_FUTEX_WAKE = 454
SYS_FUTEX_WAIT = 455
SYS_FUTEX_REQUEUE = 456
+ SYS_STATMOUNT = 457
+ SYS_LISTMOUNT = 458
+ SYS_LSM_GET_SELF_ATTR = 459
+ SYS_LSM_SET_SELF_ATTR = 460
+ SYS_LSM_LIST_MODULES = 461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go
index 66017d2d32..2fba04ad50 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go
@@ -381,4 +381,9 @@ const (
SYS_FUTEX_WAKE = 454
SYS_FUTEX_WAIT = 455
SYS_FUTEX_REQUEUE = 456
+ SYS_STATMOUNT = 457
+ SYS_LISTMOUNT = 458
+ SYS_LSM_GET_SELF_ATTR = 459
+ SYS_LSM_SET_SELF_ATTR = 460
+ SYS_LSM_LIST_MODULES = 461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go
index 47bab18dce..621d00d741 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go
@@ -394,4 +394,9 @@ const (
SYS_FUTEX_WAKE = 454
SYS_FUTEX_WAIT = 455
SYS_FUTEX_REQUEUE = 456
+ SYS_STATMOUNT = 457
+ SYS_LISTMOUNT = 458
+ SYS_LSM_GET_SELF_ATTR = 459
+ SYS_LSM_SET_SELF_ATTR = 460
+ SYS_LSM_LIST_MODULES = 461
)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go b/vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go
index b2e3085819..5e8c263ca9 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go
@@ -1,2669 +1,2852 @@
-// Copyright 2020 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// go run mksyscall_zos_s390x.go -o_sysnum zsysnum_zos_s390x.go -o_syscall zsyscall_zos_s390x.go -i_syscall syscall_zos_s390x.go -o_asm zsymaddr_zos_s390x.s
+// Code generated by the command above; see README.md. DO NOT EDIT.
//go:build zos && s390x
package unix
-// TODO: auto-generate.
-
const (
- SYS_ACOSD128 = 0xB80
- SYS_ACOSD32 = 0xB7E
- SYS_ACOSD64 = 0xB7F
- SYS_ACOSHD128 = 0xB83
- SYS_ACOSHD32 = 0xB81
- SYS_ACOSHD64 = 0xB82
- SYS_AIO_FSYNC = 0xC69
- SYS_ASCTIME = 0x0AE
- SYS_ASCTIME64 = 0xCD7
- SYS_ASCTIME64_R = 0xCD8
- SYS_ASIND128 = 0xB86
- SYS_ASIND32 = 0xB84
- SYS_ASIND64 = 0xB85
- SYS_ASINHD128 = 0xB89
- SYS_ASINHD32 = 0xB87
- SYS_ASINHD64 = 0xB88
- SYS_ATAN2D128 = 0xB8F
- SYS_ATAN2D32 = 0xB8D
- SYS_ATAN2D64 = 0xB8E
- SYS_ATAND128 = 0xB8C
- SYS_ATAND32 = 0xB8A
- SYS_ATAND64 = 0xB8B
- SYS_ATANHD128 = 0xB92
- SYS_ATANHD32 = 0xB90
- SYS_ATANHD64 = 0xB91
- SYS_BIND2ADDRSEL = 0xD59
- SYS_C16RTOMB = 0xD40
- SYS_C32RTOMB = 0xD41
- SYS_CBRTD128 = 0xB95
- SYS_CBRTD32 = 0xB93
- SYS_CBRTD64 = 0xB94
- SYS_CEILD128 = 0xB98
- SYS_CEILD32 = 0xB96
- SYS_CEILD64 = 0xB97
- SYS_CLEARENV = 0x0C9
- SYS_CLEARERR_UNLOCKED = 0xCA1
- SYS_CLOCK = 0x0AA
- SYS_CLOGL = 0xA00
- SYS_CLRMEMF = 0x0BD
- SYS_CONJ = 0xA03
- SYS_CONJF = 0xA06
- SYS_CONJL = 0xA09
- SYS_COPYSIGND128 = 0xB9E
- SYS_COPYSIGND32 = 0xB9C
- SYS_COPYSIGND64 = 0xB9D
- SYS_COSD128 = 0xBA1
- SYS_COSD32 = 0xB9F
- SYS_COSD64 = 0xBA0
- SYS_COSHD128 = 0xBA4
- SYS_COSHD32 = 0xBA2
- SYS_COSHD64 = 0xBA3
- SYS_CPOW = 0xA0C
- SYS_CPOWF = 0xA0F
- SYS_CPOWL = 0xA12
- SYS_CPROJ = 0xA15
- SYS_CPROJF = 0xA18
- SYS_CPROJL = 0xA1B
- SYS_CREAL = 0xA1E
- SYS_CREALF = 0xA21
- SYS_CREALL = 0xA24
- SYS_CSIN = 0xA27
- SYS_CSINF = 0xA2A
- SYS_CSINH = 0xA30
- SYS_CSINHF = 0xA33
- SYS_CSINHL = 0xA36
- SYS_CSINL = 0xA2D
- SYS_CSNAP = 0x0C5
- SYS_CSQRT = 0xA39
- SYS_CSQRTF = 0xA3C
- SYS_CSQRTL = 0xA3F
- SYS_CTAN = 0xA42
- SYS_CTANF = 0xA45
- SYS_CTANH = 0xA4B
- SYS_CTANHF = 0xA4E
- SYS_CTANHL = 0xA51
- SYS_CTANL = 0xA48
- SYS_CTIME = 0x0AB
- SYS_CTIME64 = 0xCD9
- SYS_CTIME64_R = 0xCDA
- SYS_CTRACE = 0x0C6
- SYS_DIFFTIME = 0x0A7
- SYS_DIFFTIME64 = 0xCDB
- SYS_DLADDR = 0xC82
- SYS_DYNALLOC = 0x0C3
- SYS_DYNFREE = 0x0C2
- SYS_ERFCD128 = 0xBAA
- SYS_ERFCD32 = 0xBA8
- SYS_ERFCD64 = 0xBA9
- SYS_ERFD128 = 0xBA7
- SYS_ERFD32 = 0xBA5
- SYS_ERFD64 = 0xBA6
- SYS_EXP2D128 = 0xBB0
- SYS_EXP2D32 = 0xBAE
- SYS_EXP2D64 = 0xBAF
- SYS_EXPD128 = 0xBAD
- SYS_EXPD32 = 0xBAB
- SYS_EXPD64 = 0xBAC
- SYS_EXPM1D128 = 0xBB3
- SYS_EXPM1D32 = 0xBB1
- SYS_EXPM1D64 = 0xBB2
- SYS_FABSD128 = 0xBB6
- SYS_FABSD32 = 0xBB4
- SYS_FABSD64 = 0xBB5
- SYS_FDELREC_UNLOCKED = 0xCA2
- SYS_FDIMD128 = 0xBB9
- SYS_FDIMD32 = 0xBB7
- SYS_FDIMD64 = 0xBB8
- SYS_FDOPEN_UNLOCKED = 0xCFC
- SYS_FECLEAREXCEPT = 0xAEA
- SYS_FEGETENV = 0xAEB
- SYS_FEGETEXCEPTFLAG = 0xAEC
- SYS_FEGETROUND = 0xAED
- SYS_FEHOLDEXCEPT = 0xAEE
- SYS_FEOF_UNLOCKED = 0xCA3
- SYS_FERAISEEXCEPT = 0xAEF
- SYS_FERROR_UNLOCKED = 0xCA4
- SYS_FESETENV = 0xAF0
- SYS_FESETEXCEPTFLAG = 0xAF1
- SYS_FESETROUND = 0xAF2
- SYS_FETCHEP = 0x0BF
- SYS_FETESTEXCEPT = 0xAF3
- SYS_FEUPDATEENV = 0xAF4
- SYS_FE_DEC_GETROUND = 0xBBA
- SYS_FE_DEC_SETROUND = 0xBBB
- SYS_FFLUSH_UNLOCKED = 0xCA5
- SYS_FGETC_UNLOCKED = 0xC80
- SYS_FGETPOS64 = 0xCEE
- SYS_FGETPOS64_UNLOCKED = 0xCF4
- SYS_FGETPOS_UNLOCKED = 0xCA6
- SYS_FGETS_UNLOCKED = 0xC7C
- SYS_FGETWC_UNLOCKED = 0xCA7
- SYS_FGETWS_UNLOCKED = 0xCA8
- SYS_FILENO_UNLOCKED = 0xCA9
- SYS_FLDATA = 0x0C1
- SYS_FLDATA_UNLOCKED = 0xCAA
- SYS_FLOCATE_UNLOCKED = 0xCAB
- SYS_FLOORD128 = 0xBBE
- SYS_FLOORD32 = 0xBBC
- SYS_FLOORD64 = 0xBBD
- SYS_FMA = 0xA63
- SYS_FMAD128 = 0xBC1
- SYS_FMAD32 = 0xBBF
- SYS_FMAD64 = 0xBC0
- SYS_FMAF = 0xA66
- SYS_FMAL = 0xA69
- SYS_FMAX = 0xA6C
- SYS_FMAXD128 = 0xBC4
- SYS_FMAXD32 = 0xBC2
- SYS_FMAXD64 = 0xBC3
- SYS_FMAXF = 0xA6F
- SYS_FMAXL = 0xA72
- SYS_FMIN = 0xA75
- SYS_FMIND128 = 0xBC7
- SYS_FMIND32 = 0xBC5
- SYS_FMIND64 = 0xBC6
- SYS_FMINF = 0xA78
- SYS_FMINL = 0xA7B
- SYS_FMODD128 = 0xBCA
- SYS_FMODD32 = 0xBC8
- SYS_FMODD64 = 0xBC9
- SYS_FOPEN64 = 0xD49
- SYS_FOPEN64_UNLOCKED = 0xD4A
- SYS_FOPEN_UNLOCKED = 0xCFA
- SYS_FPRINTF_UNLOCKED = 0xCAC
- SYS_FPUTC_UNLOCKED = 0xC81
- SYS_FPUTS_UNLOCKED = 0xC7E
- SYS_FPUTWC_UNLOCKED = 0xCAD
- SYS_FPUTWS_UNLOCKED = 0xCAE
- SYS_FREAD_NOUPDATE = 0xCEC
- SYS_FREAD_NOUPDATE_UNLOCKED = 0xCED
- SYS_FREAD_UNLOCKED = 0xC7B
- SYS_FREEIFADDRS = 0xCE6
- SYS_FREOPEN64 = 0xD4B
- SYS_FREOPEN64_UNLOCKED = 0xD4C
- SYS_FREOPEN_UNLOCKED = 0xCFB
- SYS_FREXPD128 = 0xBCE
- SYS_FREXPD32 = 0xBCC
- SYS_FREXPD64 = 0xBCD
- SYS_FSCANF_UNLOCKED = 0xCAF
- SYS_FSEEK64 = 0xCEF
- SYS_FSEEK64_UNLOCKED = 0xCF5
- SYS_FSEEKO64 = 0xCF0
- SYS_FSEEKO64_UNLOCKED = 0xCF6
- SYS_FSEEKO_UNLOCKED = 0xCB1
- SYS_FSEEK_UNLOCKED = 0xCB0
- SYS_FSETPOS64 = 0xCF1
- SYS_FSETPOS64_UNLOCKED = 0xCF7
- SYS_FSETPOS_UNLOCKED = 0xCB3
- SYS_FTELL64 = 0xCF2
- SYS_FTELL64_UNLOCKED = 0xCF8
- SYS_FTELLO64 = 0xCF3
- SYS_FTELLO64_UNLOCKED = 0xCF9
- SYS_FTELLO_UNLOCKED = 0xCB5
- SYS_FTELL_UNLOCKED = 0xCB4
- SYS_FUPDATE = 0x0B5
- SYS_FUPDATE_UNLOCKED = 0xCB7
- SYS_FWIDE_UNLOCKED = 0xCB8
- SYS_FWPRINTF_UNLOCKED = 0xCB9
- SYS_FWRITE_UNLOCKED = 0xC7A
- SYS_FWSCANF_UNLOCKED = 0xCBA
- SYS_GETDATE64 = 0xD4F
- SYS_GETIFADDRS = 0xCE7
- SYS_GETIPV4SOURCEFILTER = 0xC77
- SYS_GETSOURCEFILTER = 0xC79
- SYS_GETSYNTX = 0x0FD
- SYS_GETS_UNLOCKED = 0xC7D
- SYS_GETTIMEOFDAY64 = 0xD50
- SYS_GETWCHAR_UNLOCKED = 0xCBC
- SYS_GETWC_UNLOCKED = 0xCBB
- SYS_GMTIME = 0x0B0
- SYS_GMTIME64 = 0xCDC
- SYS_GMTIME64_R = 0xCDD
- SYS_HYPOTD128 = 0xBD1
- SYS_HYPOTD32 = 0xBCF
- SYS_HYPOTD64 = 0xBD0
- SYS_ILOGBD128 = 0xBD4
- SYS_ILOGBD32 = 0xBD2
- SYS_ILOGBD64 = 0xBD3
- SYS_ILOGBF = 0xA7E
- SYS_ILOGBL = 0xA81
- SYS_INET6_IS_SRCADDR = 0xD5A
- SYS_ISBLANK = 0x0FE
- SYS_ISWALNUM = 0x0FF
- SYS_LDEXPD128 = 0xBD7
- SYS_LDEXPD32 = 0xBD5
- SYS_LDEXPD64 = 0xBD6
- SYS_LGAMMAD128 = 0xBDA
- SYS_LGAMMAD32 = 0xBD8
- SYS_LGAMMAD64 = 0xBD9
- SYS_LIO_LISTIO = 0xC6A
- SYS_LLRINT = 0xA84
- SYS_LLRINTD128 = 0xBDD
- SYS_LLRINTD32 = 0xBDB
- SYS_LLRINTD64 = 0xBDC
- SYS_LLRINTF = 0xA87
- SYS_LLRINTL = 0xA8A
- SYS_LLROUND = 0xA8D
- SYS_LLROUNDD128 = 0xBE0
- SYS_LLROUNDD32 = 0xBDE
- SYS_LLROUNDD64 = 0xBDF
- SYS_LLROUNDF = 0xA90
- SYS_LLROUNDL = 0xA93
- SYS_LOCALTIM = 0x0B1
- SYS_LOCALTIME = 0x0B1
- SYS_LOCALTIME64 = 0xCDE
- SYS_LOCALTIME64_R = 0xCDF
- SYS_LOG10D128 = 0xBE6
- SYS_LOG10D32 = 0xBE4
- SYS_LOG10D64 = 0xBE5
- SYS_LOG1PD128 = 0xBE9
- SYS_LOG1PD32 = 0xBE7
- SYS_LOG1PD64 = 0xBE8
- SYS_LOG2D128 = 0xBEC
- SYS_LOG2D32 = 0xBEA
- SYS_LOG2D64 = 0xBEB
- SYS_LOGBD128 = 0xBEF
- SYS_LOGBD32 = 0xBED
- SYS_LOGBD64 = 0xBEE
- SYS_LOGBF = 0xA96
- SYS_LOGBL = 0xA99
- SYS_LOGD128 = 0xBE3
- SYS_LOGD32 = 0xBE1
- SYS_LOGD64 = 0xBE2
- SYS_LRINT = 0xA9C
- SYS_LRINTD128 = 0xBF2
- SYS_LRINTD32 = 0xBF0
- SYS_LRINTD64 = 0xBF1
- SYS_LRINTF = 0xA9F
- SYS_LRINTL = 0xAA2
- SYS_LROUNDD128 = 0xBF5
- SYS_LROUNDD32 = 0xBF3
- SYS_LROUNDD64 = 0xBF4
- SYS_LROUNDL = 0xAA5
- SYS_MBLEN = 0x0AF
- SYS_MBRTOC16 = 0xD42
- SYS_MBRTOC32 = 0xD43
- SYS_MEMSET = 0x0A3
- SYS_MKTIME = 0x0AC
- SYS_MKTIME64 = 0xCE0
- SYS_MODFD128 = 0xBF8
- SYS_MODFD32 = 0xBF6
- SYS_MODFD64 = 0xBF7
- SYS_NAN = 0xAA8
- SYS_NAND128 = 0xBFB
- SYS_NAND32 = 0xBF9
- SYS_NAND64 = 0xBFA
- SYS_NANF = 0xAAA
- SYS_NANL = 0xAAC
- SYS_NEARBYINT = 0xAAE
- SYS_NEARBYINTD128 = 0xBFE
- SYS_NEARBYINTD32 = 0xBFC
- SYS_NEARBYINTD64 = 0xBFD
- SYS_NEARBYINTF = 0xAB1
- SYS_NEARBYINTL = 0xAB4
- SYS_NEXTAFTERD128 = 0xC01
- SYS_NEXTAFTERD32 = 0xBFF
- SYS_NEXTAFTERD64 = 0xC00
- SYS_NEXTAFTERF = 0xAB7
- SYS_NEXTAFTERL = 0xABA
- SYS_NEXTTOWARD = 0xABD
- SYS_NEXTTOWARDD128 = 0xC04
- SYS_NEXTTOWARDD32 = 0xC02
- SYS_NEXTTOWARDD64 = 0xC03
- SYS_NEXTTOWARDF = 0xAC0
- SYS_NEXTTOWARDL = 0xAC3
- SYS_NL_LANGINFO = 0x0FC
- SYS_PERROR_UNLOCKED = 0xCBD
- SYS_POSIX_FALLOCATE = 0xCE8
- SYS_POSIX_MEMALIGN = 0xCE9
- SYS_POSIX_OPENPT = 0xC66
- SYS_POWD128 = 0xC07
- SYS_POWD32 = 0xC05
- SYS_POWD64 = 0xC06
- SYS_PRINTF_UNLOCKED = 0xCBE
- SYS_PSELECT = 0xC67
- SYS_PTHREAD_ATTR_GETSTACK = 0xB3E
- SYS_PTHREAD_ATTR_SETSTACK = 0xB3F
- SYS_PTHREAD_SECURITY_APPLID_NP = 0xCE4
- SYS_PUTS_UNLOCKED = 0xC7F
- SYS_PUTWCHAR_UNLOCKED = 0xCC0
- SYS_PUTWC_UNLOCKED = 0xCBF
- SYS_QUANTEXPD128 = 0xD46
- SYS_QUANTEXPD32 = 0xD44
- SYS_QUANTEXPD64 = 0xD45
- SYS_QUANTIZED128 = 0xC0A
- SYS_QUANTIZED32 = 0xC08
- SYS_QUANTIZED64 = 0xC09
- SYS_REMAINDERD128 = 0xC0D
- SYS_REMAINDERD32 = 0xC0B
- SYS_REMAINDERD64 = 0xC0C
- SYS_RESIZE_ALLOC = 0xCEB
- SYS_REWIND_UNLOCKED = 0xCC1
- SYS_RINTD128 = 0xC13
- SYS_RINTD32 = 0xC11
- SYS_RINTD64 = 0xC12
- SYS_RINTF = 0xACB
- SYS_RINTL = 0xACD
- SYS_ROUND = 0xACF
- SYS_ROUNDD128 = 0xC16
- SYS_ROUNDD32 = 0xC14
- SYS_ROUNDD64 = 0xC15
- SYS_ROUNDF = 0xAD2
- SYS_ROUNDL = 0xAD5
- SYS_SAMEQUANTUMD128 = 0xC19
- SYS_SAMEQUANTUMD32 = 0xC17
- SYS_SAMEQUANTUMD64 = 0xC18
- SYS_SCALBLN = 0xAD8
- SYS_SCALBLND128 = 0xC1C
- SYS_SCALBLND32 = 0xC1A
- SYS_SCALBLND64 = 0xC1B
- SYS_SCALBLNF = 0xADB
- SYS_SCALBLNL = 0xADE
- SYS_SCALBND128 = 0xC1F
- SYS_SCALBND32 = 0xC1D
- SYS_SCALBND64 = 0xC1E
- SYS_SCALBNF = 0xAE3
- SYS_SCALBNL = 0xAE6
- SYS_SCANF_UNLOCKED = 0xCC2
- SYS_SCHED_YIELD = 0xB32
- SYS_SETENV = 0x0C8
- SYS_SETIPV4SOURCEFILTER = 0xC76
- SYS_SETSOURCEFILTER = 0xC78
- SYS_SHM_OPEN = 0xC8C
- SYS_SHM_UNLINK = 0xC8D
- SYS_SIND128 = 0xC22
- SYS_SIND32 = 0xC20
- SYS_SIND64 = 0xC21
- SYS_SINHD128 = 0xC25
- SYS_SINHD32 = 0xC23
- SYS_SINHD64 = 0xC24
- SYS_SIZEOF_ALLOC = 0xCEA
- SYS_SOCKATMARK = 0xC68
- SYS_SQRTD128 = 0xC28
- SYS_SQRTD32 = 0xC26
- SYS_SQRTD64 = 0xC27
- SYS_STRCHR = 0x0A0
- SYS_STRCSPN = 0x0A1
- SYS_STRERROR = 0x0A8
- SYS_STRERROR_R = 0xB33
- SYS_STRFTIME = 0x0B2
- SYS_STRLEN = 0x0A9
- SYS_STRPBRK = 0x0A2
- SYS_STRSPN = 0x0A4
- SYS_STRSTR = 0x0A5
- SYS_STRTOD128 = 0xC2B
- SYS_STRTOD32 = 0xC29
- SYS_STRTOD64 = 0xC2A
- SYS_STRTOK = 0x0A6
- SYS_TAND128 = 0xC2E
- SYS_TAND32 = 0xC2C
- SYS_TAND64 = 0xC2D
- SYS_TANHD128 = 0xC31
- SYS_TANHD32 = 0xC2F
- SYS_TANHD64 = 0xC30
- SYS_TGAMMAD128 = 0xC34
- SYS_TGAMMAD32 = 0xC32
- SYS_TGAMMAD64 = 0xC33
- SYS_TIME = 0x0AD
- SYS_TIME64 = 0xCE1
- SYS_TMPFILE64 = 0xD4D
- SYS_TMPFILE64_UNLOCKED = 0xD4E
- SYS_TMPFILE_UNLOCKED = 0xCFD
- SYS_TRUNCD128 = 0xC40
- SYS_TRUNCD32 = 0xC3E
- SYS_TRUNCD64 = 0xC3F
- SYS_UNGETC_UNLOCKED = 0xCC3
- SYS_UNGETWC_UNLOCKED = 0xCC4
- SYS_UNSETENV = 0xB34
- SYS_VFPRINTF_UNLOCKED = 0xCC5
- SYS_VFSCANF_UNLOCKED = 0xCC7
- SYS_VFWPRINTF_UNLOCKED = 0xCC9
- SYS_VFWSCANF_UNLOCKED = 0xCCB
- SYS_VPRINTF_UNLOCKED = 0xCCD
- SYS_VSCANF_UNLOCKED = 0xCCF
- SYS_VWPRINTF_UNLOCKED = 0xCD1
- SYS_VWSCANF_UNLOCKED = 0xCD3
- SYS_WCSTOD128 = 0xC43
- SYS_WCSTOD32 = 0xC41
- SYS_WCSTOD64 = 0xC42
- SYS_WPRINTF_UNLOCKED = 0xCD5
- SYS_WSCANF_UNLOCKED = 0xCD6
- SYS__FLUSHLBF = 0xD68
- SYS__FLUSHLBF_UNLOCKED = 0xD6F
- SYS___ACOSHF_H = 0xA54
- SYS___ACOSHL_H = 0xA55
- SYS___ASINHF_H = 0xA56
- SYS___ASINHL_H = 0xA57
- SYS___ATANPID128 = 0xC6D
- SYS___ATANPID32 = 0xC6B
- SYS___ATANPID64 = 0xC6C
- SYS___CBRTF_H = 0xA58
- SYS___CBRTL_H = 0xA59
- SYS___CDUMP = 0x0C4
- SYS___CLASS = 0xAFA
- SYS___CLASS2 = 0xB99
- SYS___CLASS2D128 = 0xC99
- SYS___CLASS2D32 = 0xC97
- SYS___CLASS2D64 = 0xC98
- SYS___CLASS2F = 0xC91
- SYS___CLASS2F_B = 0xC93
- SYS___CLASS2F_H = 0xC94
- SYS___CLASS2L = 0xC92
- SYS___CLASS2L_B = 0xC95
- SYS___CLASS2L_H = 0xC96
- SYS___CLASS2_B = 0xB9A
- SYS___CLASS2_H = 0xB9B
- SYS___CLASS_B = 0xAFB
- SYS___CLASS_H = 0xAFC
- SYS___CLOGL_B = 0xA01
- SYS___CLOGL_H = 0xA02
- SYS___CLRENV = 0x0C9
- SYS___CLRMF = 0x0BD
- SYS___CODEPAGE_INFO = 0xC64
- SYS___CONJF_B = 0xA07
- SYS___CONJF_H = 0xA08
- SYS___CONJL_B = 0xA0A
- SYS___CONJL_H = 0xA0B
- SYS___CONJ_B = 0xA04
- SYS___CONJ_H = 0xA05
- SYS___COPYSIGN_B = 0xA5A
- SYS___COPYSIGN_H = 0xAF5
- SYS___COSPID128 = 0xC70
- SYS___COSPID32 = 0xC6E
- SYS___COSPID64 = 0xC6F
- SYS___CPOWF_B = 0xA10
- SYS___CPOWF_H = 0xA11
- SYS___CPOWL_B = 0xA13
- SYS___CPOWL_H = 0xA14
- SYS___CPOW_B = 0xA0D
- SYS___CPOW_H = 0xA0E
- SYS___CPROJF_B = 0xA19
- SYS___CPROJF_H = 0xA1A
- SYS___CPROJL_B = 0xA1C
- SYS___CPROJL_H = 0xA1D
- SYS___CPROJ_B = 0xA16
- SYS___CPROJ_H = 0xA17
- SYS___CREALF_B = 0xA22
- SYS___CREALF_H = 0xA23
- SYS___CREALL_B = 0xA25
- SYS___CREALL_H = 0xA26
- SYS___CREAL_B = 0xA1F
- SYS___CREAL_H = 0xA20
- SYS___CSINF_B = 0xA2B
- SYS___CSINF_H = 0xA2C
- SYS___CSINHF_B = 0xA34
- SYS___CSINHF_H = 0xA35
- SYS___CSINHL_B = 0xA37
- SYS___CSINHL_H = 0xA38
- SYS___CSINH_B = 0xA31
- SYS___CSINH_H = 0xA32
- SYS___CSINL_B = 0xA2E
- SYS___CSINL_H = 0xA2F
- SYS___CSIN_B = 0xA28
- SYS___CSIN_H = 0xA29
- SYS___CSNAP = 0x0C5
- SYS___CSQRTF_B = 0xA3D
- SYS___CSQRTF_H = 0xA3E
- SYS___CSQRTL_B = 0xA40
- SYS___CSQRTL_H = 0xA41
- SYS___CSQRT_B = 0xA3A
- SYS___CSQRT_H = 0xA3B
- SYS___CTANF_B = 0xA46
- SYS___CTANF_H = 0xA47
- SYS___CTANHF_B = 0xA4F
- SYS___CTANHF_H = 0xA50
- SYS___CTANHL_B = 0xA52
- SYS___CTANHL_H = 0xA53
- SYS___CTANH_B = 0xA4C
- SYS___CTANH_H = 0xA4D
- SYS___CTANL_B = 0xA49
- SYS___CTANL_H = 0xA4A
- SYS___CTAN_B = 0xA43
- SYS___CTAN_H = 0xA44
- SYS___CTEST = 0x0C7
- SYS___CTRACE = 0x0C6
- SYS___D1TOP = 0xC9B
- SYS___D2TOP = 0xC9C
- SYS___D4TOP = 0xC9D
- SYS___DYNALL = 0x0C3
- SYS___DYNFRE = 0x0C2
- SYS___EXP2F_H = 0xA5E
- SYS___EXP2L_H = 0xA5F
- SYS___EXP2_H = 0xA5D
- SYS___EXPM1F_H = 0xA5B
- SYS___EXPM1L_H = 0xA5C
- SYS___FBUFSIZE = 0xD60
- SYS___FLBF = 0xD62
- SYS___FLDATA = 0x0C1
- SYS___FMAF_B = 0xA67
- SYS___FMAF_H = 0xA68
- SYS___FMAL_B = 0xA6A
- SYS___FMAL_H = 0xA6B
- SYS___FMAXF_B = 0xA70
- SYS___FMAXF_H = 0xA71
- SYS___FMAXL_B = 0xA73
- SYS___FMAXL_H = 0xA74
- SYS___FMAX_B = 0xA6D
- SYS___FMAX_H = 0xA6E
- SYS___FMA_B = 0xA64
- SYS___FMA_H = 0xA65
- SYS___FMINF_B = 0xA79
- SYS___FMINF_H = 0xA7A
- SYS___FMINL_B = 0xA7C
- SYS___FMINL_H = 0xA7D
- SYS___FMIN_B = 0xA76
- SYS___FMIN_H = 0xA77
- SYS___FPENDING = 0xD61
- SYS___FPENDING_UNLOCKED = 0xD6C
- SYS___FPURGE = 0xD69
- SYS___FPURGE_UNLOCKED = 0xD70
- SYS___FP_CAST_D = 0xBCB
- SYS___FREADABLE = 0xD63
- SYS___FREADAHEAD = 0xD6A
- SYS___FREADAHEAD_UNLOCKED = 0xD71
- SYS___FREADING = 0xD65
- SYS___FREADING_UNLOCKED = 0xD6D
- SYS___FSEEK2 = 0xB3C
- SYS___FSETERR = 0xD6B
- SYS___FSETLOCKING = 0xD67
- SYS___FTCHEP = 0x0BF
- SYS___FTELL2 = 0xB3B
- SYS___FUPDT = 0x0B5
- SYS___FWRITABLE = 0xD64
- SYS___FWRITING = 0xD66
- SYS___FWRITING_UNLOCKED = 0xD6E
- SYS___GETCB = 0x0B4
- SYS___GETGRGID1 = 0xD5B
- SYS___GETGRNAM1 = 0xD5C
- SYS___GETTHENT = 0xCE5
- SYS___GETTOD = 0xD3E
- SYS___HYPOTF_H = 0xAF6
- SYS___HYPOTL_H = 0xAF7
- SYS___ILOGBF_B = 0xA7F
- SYS___ILOGBF_H = 0xA80
- SYS___ILOGBL_B = 0xA82
- SYS___ILOGBL_H = 0xA83
- SYS___ISBLANK_A = 0xB2E
- SYS___ISBLNK = 0x0FE
- SYS___ISWBLANK_A = 0xB2F
- SYS___LE_CEEGTJS = 0xD72
- SYS___LE_TRACEBACK = 0xB7A
- SYS___LGAMMAL_H = 0xA62
- SYS___LGAMMA_B_C99 = 0xB39
- SYS___LGAMMA_H_C99 = 0xB38
- SYS___LGAMMA_R_C99 = 0xB3A
- SYS___LLRINTF_B = 0xA88
- SYS___LLRINTF_H = 0xA89
- SYS___LLRINTL_B = 0xA8B
- SYS___LLRINTL_H = 0xA8C
- SYS___LLRINT_B = 0xA85
- SYS___LLRINT_H = 0xA86
- SYS___LLROUNDF_B = 0xA91
- SYS___LLROUNDF_H = 0xA92
- SYS___LLROUNDL_B = 0xA94
- SYS___LLROUNDL_H = 0xA95
- SYS___LLROUND_B = 0xA8E
- SYS___LLROUND_H = 0xA8F
- SYS___LOCALE_CTL = 0xD47
- SYS___LOG1PF_H = 0xA60
- SYS___LOG1PL_H = 0xA61
- SYS___LOGBF_B = 0xA97
- SYS___LOGBF_H = 0xA98
- SYS___LOGBL_B = 0xA9A
- SYS___LOGBL_H = 0xA9B
- SYS___LOGIN_APPLID = 0xCE2
- SYS___LRINTF_B = 0xAA0
- SYS___LRINTF_H = 0xAA1
- SYS___LRINTL_B = 0xAA3
- SYS___LRINTL_H = 0xAA4
- SYS___LRINT_B = 0xA9D
- SYS___LRINT_H = 0xA9E
- SYS___LROUNDF_FIXUP = 0xB31
- SYS___LROUNDL_B = 0xAA6
- SYS___LROUNDL_H = 0xAA7
- SYS___LROUND_FIXUP = 0xB30
- SYS___MOSERVICES = 0xD3D
- SYS___MUST_STAY_CLEAN = 0xB7C
- SYS___NANF_B = 0xAAB
- SYS___NANL_B = 0xAAD
- SYS___NAN_B = 0xAA9
- SYS___NEARBYINTF_B = 0xAB2
- SYS___NEARBYINTF_H = 0xAB3
- SYS___NEARBYINTL_B = 0xAB5
- SYS___NEARBYINTL_H = 0xAB6
- SYS___NEARBYINT_B = 0xAAF
- SYS___NEARBYINT_H = 0xAB0
- SYS___NEXTAFTERF_B = 0xAB8
- SYS___NEXTAFTERF_H = 0xAB9
- SYS___NEXTAFTERL_B = 0xABB
- SYS___NEXTAFTERL_H = 0xABC
- SYS___NEXTTOWARDF_B = 0xAC1
- SYS___NEXTTOWARDF_H = 0xAC2
- SYS___NEXTTOWARDL_B = 0xAC4
- SYS___NEXTTOWARDL_H = 0xAC5
- SYS___NEXTTOWARD_B = 0xABE
- SYS___NEXTTOWARD_H = 0xABF
- SYS___O_ENV = 0xB7D
- SYS___PASSWD_APPLID = 0xCE3
- SYS___PTOD1 = 0xC9E
- SYS___PTOD2 = 0xC9F
- SYS___PTOD4 = 0xCA0
- SYS___REGCOMP_STD = 0x0EA
- SYS___REMAINDERF_H = 0xAC6
- SYS___REMAINDERL_H = 0xAC7
- SYS___REMQUOD128 = 0xC10
- SYS___REMQUOD32 = 0xC0E
- SYS___REMQUOD64 = 0xC0F
- SYS___REMQUOF_H = 0xAC9
- SYS___REMQUOL_H = 0xACA
- SYS___REMQUO_H = 0xAC8
- SYS___RINTF_B = 0xACC
- SYS___RINTL_B = 0xACE
- SYS___ROUNDF_B = 0xAD3
- SYS___ROUNDF_H = 0xAD4
- SYS___ROUNDL_B = 0xAD6
- SYS___ROUNDL_H = 0xAD7
- SYS___ROUND_B = 0xAD0
- SYS___ROUND_H = 0xAD1
- SYS___SCALBLNF_B = 0xADC
- SYS___SCALBLNF_H = 0xADD
- SYS___SCALBLNL_B = 0xADF
- SYS___SCALBLNL_H = 0xAE0
- SYS___SCALBLN_B = 0xAD9
- SYS___SCALBLN_H = 0xADA
- SYS___SCALBNF_B = 0xAE4
- SYS___SCALBNF_H = 0xAE5
- SYS___SCALBNL_B = 0xAE7
- SYS___SCALBNL_H = 0xAE8
- SYS___SCALBN_B = 0xAE1
- SYS___SCALBN_H = 0xAE2
- SYS___SETENV = 0x0C8
- SYS___SINPID128 = 0xC73
- SYS___SINPID32 = 0xC71
- SYS___SINPID64 = 0xC72
- SYS___SMF_RECORD2 = 0xD48
- SYS___STATIC_REINIT = 0xB3D
- SYS___TGAMMAF_H_C99 = 0xB79
- SYS___TGAMMAL_H = 0xAE9
- SYS___TGAMMA_H_C99 = 0xB78
- SYS___TOCSNAME2 = 0xC9A
- SYS_CEIL = 0x01F
- SYS_CHAUDIT = 0x1E0
- SYS_EXP = 0x01A
- SYS_FCHAUDIT = 0x1E1
- SYS_FREXP = 0x01D
- SYS_GETGROUPSBYNAME = 0x1E2
- SYS_GETPWUID = 0x1A0
- SYS_GETUID = 0x1A1
- SYS_ISATTY = 0x1A3
- SYS_KILL = 0x1A4
- SYS_LDEXP = 0x01E
- SYS_LINK = 0x1A5
- SYS_LOG10 = 0x01C
- SYS_LSEEK = 0x1A6
- SYS_LSTAT = 0x1A7
- SYS_MKDIR = 0x1A8
- SYS_MKFIFO = 0x1A9
- SYS_MKNOD = 0x1AA
- SYS_MODF = 0x01B
- SYS_MOUNT = 0x1AB
- SYS_OPEN = 0x1AC
- SYS_OPENDIR = 0x1AD
- SYS_PATHCONF = 0x1AE
- SYS_PAUSE = 0x1AF
- SYS_PIPE = 0x1B0
- SYS_PTHREAD_ATTR_DESTROY = 0x1E7
- SYS_PTHREAD_ATTR_GETDETACHSTATE = 0x1EB
- SYS_PTHREAD_ATTR_GETSTACKSIZE = 0x1E9
- SYS_PTHREAD_ATTR_GETWEIGHT_NP = 0x1ED
- SYS_PTHREAD_ATTR_INIT = 0x1E6
- SYS_PTHREAD_ATTR_SETDETACHSTATE = 0x1EA
- SYS_PTHREAD_ATTR_SETSTACKSIZE = 0x1E8
- SYS_PTHREAD_ATTR_SETWEIGHT_NP = 0x1EC
- SYS_PTHREAD_CANCEL = 0x1EE
- SYS_PTHREAD_CLEANUP_POP = 0x1F0
- SYS_PTHREAD_CLEANUP_PUSH = 0x1EF
- SYS_PTHREAD_CONDATTR_DESTROY = 0x1F2
- SYS_PTHREAD_CONDATTR_INIT = 0x1F1
- SYS_PTHREAD_COND_BROADCAST = 0x1F6
- SYS_PTHREAD_COND_DESTROY = 0x1F4
- SYS_PTHREAD_COND_INIT = 0x1F3
- SYS_PTHREAD_COND_SIGNAL = 0x1F5
- SYS_PTHREAD_COND_TIMEDWAIT = 0x1F8
- SYS_PTHREAD_COND_WAIT = 0x1F7
- SYS_PTHREAD_CREATE = 0x1F9
- SYS_PTHREAD_DETACH = 0x1FA
- SYS_PTHREAD_EQUAL = 0x1FB
- SYS_PTHREAD_EXIT = 0x1E4
- SYS_PTHREAD_GETSPECIFIC = 0x1FC
- SYS_PTHREAD_JOIN = 0x1FD
- SYS_PTHREAD_KEY_CREATE = 0x1FE
- SYS_PTHREAD_KILL = 0x1E5
- SYS_PTHREAD_MUTEXATTR_INIT = 0x1FF
- SYS_READ = 0x1B2
- SYS_READDIR = 0x1B3
- SYS_READLINK = 0x1B4
- SYS_REWINDDIR = 0x1B5
- SYS_RMDIR = 0x1B6
- SYS_SETEGID = 0x1B7
- SYS_SETEUID = 0x1B8
- SYS_SETGID = 0x1B9
- SYS_SETPGID = 0x1BA
- SYS_SETSID = 0x1BB
- SYS_SETUID = 0x1BC
- SYS_SIGACTION = 0x1BD
- SYS_SIGADDSET = 0x1BE
- SYS_SIGDELSET = 0x1BF
- SYS_SIGEMPTYSET = 0x1C0
- SYS_SIGFILLSET = 0x1C1
- SYS_SIGISMEMBER = 0x1C2
- SYS_SIGLONGJMP = 0x1C3
- SYS_SIGPENDING = 0x1C4
- SYS_SIGPROCMASK = 0x1C5
- SYS_SIGSETJMP = 0x1C6
- SYS_SIGSUSPEND = 0x1C7
- SYS_SIGWAIT = 0x1E3
- SYS_SLEEP = 0x1C8
- SYS_STAT = 0x1C9
- SYS_SYMLINK = 0x1CB
- SYS_SYSCONF = 0x1CC
- SYS_TCDRAIN = 0x1CD
- SYS_TCFLOW = 0x1CE
- SYS_TCFLUSH = 0x1CF
- SYS_TCGETATTR = 0x1D0
- SYS_TCGETPGRP = 0x1D1
- SYS_TCSENDBREAK = 0x1D2
- SYS_TCSETATTR = 0x1D3
- SYS_TCSETPGRP = 0x1D4
- SYS_TIMES = 0x1D5
- SYS_TTYNAME = 0x1D6
- SYS_TZSET = 0x1D7
- SYS_UMASK = 0x1D8
- SYS_UMOUNT = 0x1D9
- SYS_UNAME = 0x1DA
- SYS_UNLINK = 0x1DB
- SYS_UTIME = 0x1DC
- SYS_WAIT = 0x1DD
- SYS_WAITPID = 0x1DE
- SYS_WRITE = 0x1DF
- SYS_W_GETPSENT = 0x1B1
- SYS_W_IOCTL = 0x1A2
- SYS_W_STATFS = 0x1CA
- SYS_A64L = 0x2EF
- SYS_BCMP = 0x2B9
- SYS_BCOPY = 0x2BA
- SYS_BZERO = 0x2BB
- SYS_CATCLOSE = 0x2B6
- SYS_CATGETS = 0x2B7
- SYS_CATOPEN = 0x2B8
- SYS_CRYPT = 0x2AC
- SYS_DBM_CLEARERR = 0x2F7
- SYS_DBM_CLOSE = 0x2F8
- SYS_DBM_DELETE = 0x2F9
- SYS_DBM_ERROR = 0x2FA
- SYS_DBM_FETCH = 0x2FB
- SYS_DBM_FIRSTKEY = 0x2FC
- SYS_DBM_NEXTKEY = 0x2FD
- SYS_DBM_OPEN = 0x2FE
- SYS_DBM_STORE = 0x2FF
- SYS_DRAND48 = 0x2B2
- SYS_ENCRYPT = 0x2AD
- SYS_ENDUTXENT = 0x2E1
- SYS_ERAND48 = 0x2B3
- SYS_ERF = 0x02C
- SYS_ERFC = 0x02D
- SYS_FCHDIR = 0x2D9
- SYS_FFS = 0x2BC
- SYS_FMTMSG = 0x2E5
- SYS_FSTATVFS = 0x2B4
- SYS_FTIME = 0x2F5
- SYS_GAMMA = 0x02E
- SYS_GETDATE = 0x2A6
- SYS_GETPAGESIZE = 0x2D8
- SYS_GETTIMEOFDAY = 0x2F6
- SYS_GETUTXENT = 0x2E0
- SYS_GETUTXID = 0x2E2
- SYS_GETUTXLINE = 0x2E3
- SYS_HCREATE = 0x2C6
- SYS_HDESTROY = 0x2C7
- SYS_HSEARCH = 0x2C8
- SYS_HYPOT = 0x02B
- SYS_INDEX = 0x2BD
- SYS_INITSTATE = 0x2C2
- SYS_INSQUE = 0x2CF
- SYS_ISASCII = 0x2ED
- SYS_JRAND48 = 0x2E6
- SYS_L64A = 0x2F0
- SYS_LCONG48 = 0x2EA
- SYS_LFIND = 0x2C9
- SYS_LRAND48 = 0x2E7
- SYS_LSEARCH = 0x2CA
- SYS_MEMCCPY = 0x2D4
- SYS_MRAND48 = 0x2E8
- SYS_NRAND48 = 0x2E9
- SYS_PCLOSE = 0x2D2
- SYS_POPEN = 0x2D1
- SYS_PUTUTXLINE = 0x2E4
- SYS_RANDOM = 0x2C4
- SYS_REMQUE = 0x2D0
- SYS_RINDEX = 0x2BE
- SYS_SEED48 = 0x2EC
- SYS_SETKEY = 0x2AE
- SYS_SETSTATE = 0x2C3
- SYS_SETUTXENT = 0x2DF
- SYS_SRAND48 = 0x2EB
- SYS_SRANDOM = 0x2C5
- SYS_STATVFS = 0x2B5
- SYS_STRCASECMP = 0x2BF
- SYS_STRDUP = 0x2C0
- SYS_STRNCASECMP = 0x2C1
- SYS_SWAB = 0x2D3
- SYS_TDELETE = 0x2CB
- SYS_TFIND = 0x2CC
- SYS_TOASCII = 0x2EE
- SYS_TSEARCH = 0x2CD
- SYS_TWALK = 0x2CE
- SYS_UALARM = 0x2F1
- SYS_USLEEP = 0x2F2
- SYS_WAIT3 = 0x2A7
- SYS_WAITID = 0x2A8
- SYS_Y1 = 0x02A
- SYS___ATOE = 0x2DB
- SYS___ATOE_L = 0x2DC
- SYS___CATTRM = 0x2A9
- SYS___CNVBLK = 0x2AF
- SYS___CRYTRM = 0x2B0
- SYS___DLGHT = 0x2A1
- SYS___ECRTRM = 0x2B1
- SYS___ETOA = 0x2DD
- SYS___ETOA_L = 0x2DE
- SYS___GDTRM = 0x2AA
- SYS___OCLCK = 0x2DA
- SYS___OPARGF = 0x2A2
- SYS___OPERRF = 0x2A5
- SYS___OPINDF = 0x2A4
- SYS___OPOPTF = 0x2A3
- SYS___RNDTRM = 0x2AB
- SYS___SRCTRM = 0x2F4
- SYS___TZONE = 0x2A0
- SYS___UTXTRM = 0x2F3
- SYS_ASIN = 0x03E
- SYS_ISXDIGIT = 0x03B
- SYS_SETLOCAL = 0x03A
- SYS_SETLOCALE = 0x03A
- SYS_SIN = 0x03F
- SYS_TOLOWER = 0x03C
- SYS_TOUPPER = 0x03D
- SYS_ACCEPT_AND_RECV = 0x4F7
- SYS_ATOL = 0x04E
- SYS_CHECKSCH = 0x4BC
- SYS_CHECKSCHENV = 0x4BC
- SYS_CLEARERR = 0x04C
- SYS_CONNECTS = 0x4B5
- SYS_CONNECTSERVER = 0x4B5
- SYS_CONNECTW = 0x4B4
- SYS_CONNECTWORKMGR = 0x4B4
- SYS_CONTINUE = 0x4B3
- SYS_CONTINUEWORKUNIT = 0x4B3
- SYS_COPYSIGN = 0x4C2
- SYS_CREATEWO = 0x4B2
- SYS_CREATEWORKUNIT = 0x4B2
- SYS_DELETEWO = 0x4B9
- SYS_DELETEWORKUNIT = 0x4B9
- SYS_DISCONNE = 0x4B6
- SYS_DISCONNECTSERVER = 0x4B6
- SYS_FEOF = 0x04D
- SYS_FERROR = 0x04A
- SYS_FINITE = 0x4C8
- SYS_GAMMA_R = 0x4E2
- SYS_JOINWORK = 0x4B7
- SYS_JOINWORKUNIT = 0x4B7
- SYS_LEAVEWOR = 0x4B8
- SYS_LEAVEWORKUNIT = 0x4B8
- SYS_LGAMMA_R = 0x4EB
- SYS_MATHERR = 0x4D0
- SYS_PERROR = 0x04F
- SYS_QUERYMET = 0x4BA
- SYS_QUERYMETRICS = 0x4BA
- SYS_QUERYSCH = 0x4BB
- SYS_QUERYSCHENV = 0x4BB
- SYS_REWIND = 0x04B
- SYS_SCALBN = 0x4D4
- SYS_SIGNIFIC = 0x4D5
- SYS_SIGNIFICAND = 0x4D5
- SYS___ACOSH_B = 0x4DA
- SYS___ACOS_B = 0x4D9
- SYS___ASINH_B = 0x4BE
- SYS___ASIN_B = 0x4DB
- SYS___ATAN2_B = 0x4DC
- SYS___ATANH_B = 0x4DD
- SYS___ATAN_B = 0x4BF
- SYS___CBRT_B = 0x4C0
- SYS___CEIL_B = 0x4C1
- SYS___COSH_B = 0x4DE
- SYS___COS_B = 0x4C3
- SYS___DGHT = 0x4A8
- SYS___ENVN = 0x4B0
- SYS___ERFC_B = 0x4C5
- SYS___ERF_B = 0x4C4
- SYS___EXPM1_B = 0x4C6
- SYS___EXP_B = 0x4DF
- SYS___FABS_B = 0x4C7
- SYS___FLOOR_B = 0x4C9
- SYS___FMOD_B = 0x4E0
- SYS___FP_SETMODE = 0x4F8
- SYS___FREXP_B = 0x4CA
- SYS___GAMMA_B = 0x4E1
- SYS___GDRR = 0x4A1
- SYS___HRRNO = 0x4A2
- SYS___HYPOT_B = 0x4E3
- SYS___ILOGB_B = 0x4CB
- SYS___ISNAN_B = 0x4CC
- SYS___J0_B = 0x4E4
- SYS___J1_B = 0x4E6
- SYS___JN_B = 0x4E8
- SYS___LDEXP_B = 0x4CD
- SYS___LGAMMA_B = 0x4EA
- SYS___LOG10_B = 0x4ED
- SYS___LOG1P_B = 0x4CE
- SYS___LOGB_B = 0x4CF
- SYS___LOGIN = 0x4F5
- SYS___LOG_B = 0x4EC
- SYS___MLOCKALL = 0x4B1
- SYS___MODF_B = 0x4D1
- SYS___NEXTAFTER_B = 0x4D2
- SYS___OPENDIR2 = 0x4F3
- SYS___OPEN_STAT = 0x4F6
- SYS___OPND = 0x4A5
- SYS___OPPT = 0x4A6
- SYS___OPRG = 0x4A3
- SYS___OPRR = 0x4A4
- SYS___PID_AFFINITY = 0x4BD
- SYS___POW_B = 0x4EE
- SYS___READDIR2 = 0x4F4
- SYS___REMAINDER_B = 0x4EF
- SYS___RINT_B = 0x4D3
- SYS___SCALB_B = 0x4F0
- SYS___SIGACTIONSET = 0x4FB
- SYS___SIGGM = 0x4A7
- SYS___SINH_B = 0x4F1
- SYS___SIN_B = 0x4D6
- SYS___SQRT_B = 0x4F2
- SYS___TANH_B = 0x4D8
- SYS___TAN_B = 0x4D7
- SYS___TRRNO = 0x4AF
- SYS___TZNE = 0x4A9
- SYS___TZZN = 0x4AA
- SYS___UCREATE = 0x4FC
- SYS___UFREE = 0x4FE
- SYS___UHEAPREPORT = 0x4FF
- SYS___UMALLOC = 0x4FD
- SYS___Y0_B = 0x4E5
- SYS___Y1_B = 0x4E7
- SYS___YN_B = 0x4E9
- SYS_ABORT = 0x05C
- SYS_ASCTIME_R = 0x5E0
- SYS_ATEXIT = 0x05D
- SYS_CONNECTE = 0x5AE
- SYS_CONNECTEXPORTIMPORT = 0x5AE
- SYS_CTIME_R = 0x5E1
- SYS_DN_COMP = 0x5DF
- SYS_DN_EXPAND = 0x5DD
- SYS_DN_SKIPNAME = 0x5DE
- SYS_EXIT = 0x05A
- SYS_EXPORTWO = 0x5A1
- SYS_EXPORTWORKUNIT = 0x5A1
- SYS_EXTRACTW = 0x5A5
- SYS_EXTRACTWORKUNIT = 0x5A5
- SYS_FSEEKO = 0x5C9
- SYS_FTELLO = 0x5C8
- SYS_GETGRGID_R = 0x5E7
- SYS_GETGRNAM_R = 0x5E8
- SYS_GETLOGIN_R = 0x5E9
- SYS_GETPWNAM_R = 0x5EA
- SYS_GETPWUID_R = 0x5EB
- SYS_GMTIME_R = 0x5E2
- SYS_IMPORTWO = 0x5A3
- SYS_IMPORTWORKUNIT = 0x5A3
- SYS_INET_NTOP = 0x5D3
- SYS_INET_PTON = 0x5D4
- SYS_LLABS = 0x5CE
- SYS_LLDIV = 0x5CB
- SYS_LOCALTIME_R = 0x5E3
- SYS_PTHREAD_ATFORK = 0x5ED
- SYS_PTHREAD_ATTR_GETDETACHSTATE_U98 = 0x5FB
- SYS_PTHREAD_ATTR_GETGUARDSIZE = 0x5EE
- SYS_PTHREAD_ATTR_GETSCHEDPARAM = 0x5F9
- SYS_PTHREAD_ATTR_GETSTACKADDR = 0x5EF
- SYS_PTHREAD_ATTR_SETDETACHSTATE_U98 = 0x5FC
- SYS_PTHREAD_ATTR_SETGUARDSIZE = 0x5F0
- SYS_PTHREAD_ATTR_SETSCHEDPARAM = 0x5FA
- SYS_PTHREAD_ATTR_SETSTACKADDR = 0x5F1
- SYS_PTHREAD_CONDATTR_GETPSHARED = 0x5F2
- SYS_PTHREAD_CONDATTR_SETPSHARED = 0x5F3
- SYS_PTHREAD_DETACH_U98 = 0x5FD
- SYS_PTHREAD_GETCONCURRENCY = 0x5F4
- SYS_PTHREAD_GETSPECIFIC_U98 = 0x5FE
- SYS_PTHREAD_KEY_DELETE = 0x5F5
- SYS_PTHREAD_SETCANCELSTATE = 0x5FF
- SYS_PTHREAD_SETCONCURRENCY = 0x5F6
- SYS_PTHREAD_SIGMASK = 0x5F7
- SYS_QUERYENC = 0x5AD
- SYS_QUERYWORKUNITCLASSIFICATION = 0x5AD
- SYS_RAISE = 0x05E
- SYS_RAND_R = 0x5E4
- SYS_READDIR_R = 0x5E6
- SYS_REALLOC = 0x05B
- SYS_RES_INIT = 0x5D8
- SYS_RES_MKQUERY = 0x5D7
- SYS_RES_QUERY = 0x5D9
- SYS_RES_QUERYDOMAIN = 0x5DC
- SYS_RES_SEARCH = 0x5DA
- SYS_RES_SEND = 0x5DB
- SYS_SETJMP = 0x05F
- SYS_SIGQUEUE = 0x5A9
- SYS_STRTOK_R = 0x5E5
- SYS_STRTOLL = 0x5B0
- SYS_STRTOULL = 0x5B1
- SYS_TTYNAME_R = 0x5EC
- SYS_UNDOEXPO = 0x5A2
- SYS_UNDOEXPORTWORKUNIT = 0x5A2
- SYS_UNDOIMPO = 0x5A4
- SYS_UNDOIMPORTWORKUNIT = 0x5A4
- SYS_WCSTOLL = 0x5CC
- SYS_WCSTOULL = 0x5CD
- SYS___ABORT = 0x05C
- SYS___CONSOLE2 = 0x5D2
- SYS___CPL = 0x5A6
- SYS___DISCARDDATA = 0x5F8
- SYS___DSA_PREV = 0x5B2
- SYS___EP_FIND = 0x5B3
- SYS___FP_SWAPMODE = 0x5AF
- SYS___GETUSERID = 0x5AB
- SYS___GET_CPUID = 0x5B9
- SYS___GET_SYSTEM_SETTINGS = 0x5BA
- SYS___IPDOMAINNAME = 0x5AC
- SYS___MAP_INIT = 0x5A7
- SYS___MAP_SERVICE = 0x5A8
- SYS___MOUNT = 0x5AA
- SYS___MSGRCV_TIMED = 0x5B7
- SYS___RES = 0x5D6
- SYS___SEMOP_TIMED = 0x5B8
- SYS___SERVER_THREADS_QUERY = 0x5B4
- SYS_FPRINTF = 0x06D
- SYS_FSCANF = 0x06A
- SYS_PRINTF = 0x06F
- SYS_SETBUF = 0x06B
- SYS_SETVBUF = 0x06C
- SYS_SSCANF = 0x06E
- SYS___CATGETS_A = 0x6C0
- SYS___CHAUDIT_A = 0x6F4
- SYS___CHMOD_A = 0x6E8
- SYS___COLLATE_INIT_A = 0x6AC
- SYS___CREAT_A = 0x6F6
- SYS___CTYPE_INIT_A = 0x6AF
- SYS___DLLLOAD_A = 0x6DF
- SYS___DLLQUERYFN_A = 0x6E0
- SYS___DLLQUERYVAR_A = 0x6E1
- SYS___E2A_L = 0x6E3
- SYS___EXECLE_A = 0x6A0
- SYS___EXECLP_A = 0x6A4
- SYS___EXECVE_A = 0x6C1
- SYS___EXECVP_A = 0x6C2
- SYS___EXECV_A = 0x6B1
- SYS___FPRINTF_A = 0x6FA
- SYS___GETADDRINFO_A = 0x6BF
- SYS___GETNAMEINFO_A = 0x6C4
- SYS___GET_WCTYPE_STD_A = 0x6AE
- SYS___ICONV_OPEN_A = 0x6DE
- SYS___IF_INDEXTONAME_A = 0x6DC
- SYS___IF_NAMETOINDEX_A = 0x6DB
- SYS___ISWCTYPE_A = 0x6B0
- SYS___IS_WCTYPE_STD_A = 0x6B2
- SYS___LOCALECONV_A = 0x6B8
- SYS___LOCALECONV_STD_A = 0x6B9
- SYS___LOCALE_INIT_A = 0x6B7
- SYS___LSTAT_A = 0x6EE
- SYS___LSTAT_O_A = 0x6EF
- SYS___MKDIR_A = 0x6E9
- SYS___MKFIFO_A = 0x6EC
- SYS___MKNOD_A = 0x6F0
- SYS___MONETARY_INIT_A = 0x6BC
- SYS___MOUNT_A = 0x6F1
- SYS___NL_CSINFO_A = 0x6D6
- SYS___NL_LANGINFO_A = 0x6BA
- SYS___NL_LNAGINFO_STD_A = 0x6BB
- SYS___NL_MONINFO_A = 0x6D7
- SYS___NL_NUMINFO_A = 0x6D8
- SYS___NL_RESPINFO_A = 0x6D9
- SYS___NL_TIMINFO_A = 0x6DA
- SYS___NUMERIC_INIT_A = 0x6C6
- SYS___OPEN_A = 0x6F7
- SYS___PRINTF_A = 0x6DD
- SYS___RESP_INIT_A = 0x6C7
- SYS___RPMATCH_A = 0x6C8
- SYS___RPMATCH_C_A = 0x6C9
- SYS___RPMATCH_STD_A = 0x6CA
- SYS___SETLOCALE_A = 0x6F9
- SYS___SPAWNP_A = 0x6C5
- SYS___SPAWN_A = 0x6C3
- SYS___SPRINTF_A = 0x6FB
- SYS___STAT_A = 0x6EA
- SYS___STAT_O_A = 0x6EB
- SYS___STRCOLL_STD_A = 0x6A1
- SYS___STRFMON_A = 0x6BD
- SYS___STRFMON_STD_A = 0x6BE
- SYS___STRFTIME_A = 0x6CC
- SYS___STRFTIME_STD_A = 0x6CD
- SYS___STRPTIME_A = 0x6CE
- SYS___STRPTIME_STD_A = 0x6CF
- SYS___STRXFRM_A = 0x6A2
- SYS___STRXFRM_C_A = 0x6A3
- SYS___STRXFRM_STD_A = 0x6A5
- SYS___SYNTAX_INIT_A = 0x6D4
- SYS___TIME_INIT_A = 0x6CB
- SYS___TOD_INIT_A = 0x6D5
- SYS___TOWLOWER_A = 0x6B3
- SYS___TOWLOWER_STD_A = 0x6B4
- SYS___TOWUPPER_A = 0x6B5
- SYS___TOWUPPER_STD_A = 0x6B6
- SYS___UMOUNT_A = 0x6F2
- SYS___VFPRINTF_A = 0x6FC
- SYS___VPRINTF_A = 0x6FD
- SYS___VSPRINTF_A = 0x6FE
- SYS___VSWPRINTF_A = 0x6FF
- SYS___WCSCOLL_A = 0x6A6
- SYS___WCSCOLL_C_A = 0x6A7
- SYS___WCSCOLL_STD_A = 0x6A8
- SYS___WCSFTIME_A = 0x6D0
- SYS___WCSFTIME_STD_A = 0x6D1
- SYS___WCSXFRM_A = 0x6A9
- SYS___WCSXFRM_C_A = 0x6AA
- SYS___WCSXFRM_STD_A = 0x6AB
- SYS___WCTYPE_A = 0x6AD
- SYS___W_GETMNTENT_A = 0x6F5
- SYS_____CCSIDTYPE_A = 0x6E6
- SYS_____CHATTR_A = 0x6E2
- SYS_____CSNAMETYPE_A = 0x6E7
- SYS_____OPEN_STAT_A = 0x6ED
- SYS_____SPAWN2_A = 0x6D2
- SYS_____SPAWNP2_A = 0x6D3
- SYS_____TOCCSID_A = 0x6E4
- SYS_____TOCSNAME_A = 0x6E5
- SYS_ACL_FREE = 0x7FF
- SYS_ACL_INIT = 0x7FE
- SYS_FWIDE = 0x7DF
- SYS_FWPRINTF = 0x7D1
- SYS_FWRITE = 0x07E
- SYS_FWSCANF = 0x7D5
- SYS_GETCHAR = 0x07B
- SYS_GETS = 0x07C
- SYS_M_CREATE_LAYOUT = 0x7C9
- SYS_M_DESTROY_LAYOUT = 0x7CA
- SYS_M_GETVALUES_LAYOUT = 0x7CB
- SYS_M_SETVALUES_LAYOUT = 0x7CC
- SYS_M_TRANSFORM_LAYOUT = 0x7CD
- SYS_M_WTRANSFORM_LAYOUT = 0x7CE
- SYS_PREAD = 0x7C7
- SYS_PUTC = 0x07D
- SYS_PUTCHAR = 0x07A
- SYS_PUTS = 0x07F
- SYS_PWRITE = 0x7C8
- SYS_TOWCTRAN = 0x7D8
- SYS_TOWCTRANS = 0x7D8
- SYS_UNATEXIT = 0x7B5
- SYS_VFWPRINT = 0x7D3
- SYS_VFWPRINTF = 0x7D3
- SYS_VWPRINTF = 0x7D4
- SYS_WCTRANS = 0x7D7
- SYS_WPRINTF = 0x7D2
- SYS_WSCANF = 0x7D6
- SYS___ASCTIME_R_A = 0x7A1
- SYS___BASENAME_A = 0x7DC
- SYS___BTOWC_A = 0x7E4
- SYS___CDUMP_A = 0x7B7
- SYS___CEE3DMP_A = 0x7B6
- SYS___CEILF_H = 0x7F4
- SYS___CEILL_H = 0x7F5
- SYS___CEIL_H = 0x7EA
- SYS___CRYPT_A = 0x7BE
- SYS___CSNAP_A = 0x7B8
- SYS___CTEST_A = 0x7B9
- SYS___CTIME_R_A = 0x7A2
- SYS___CTRACE_A = 0x7BA
- SYS___DBM_OPEN_A = 0x7E6
- SYS___DIRNAME_A = 0x7DD
- SYS___FABSF_H = 0x7FA
- SYS___FABSL_H = 0x7FB
- SYS___FABS_H = 0x7ED
- SYS___FGETWC_A = 0x7AA
- SYS___FGETWS_A = 0x7AD
- SYS___FLOORF_H = 0x7F6
- SYS___FLOORL_H = 0x7F7
- SYS___FLOOR_H = 0x7EB
- SYS___FPUTWC_A = 0x7A5
- SYS___FPUTWS_A = 0x7A8
- SYS___GETTIMEOFDAY_A = 0x7AE
- SYS___GETWCHAR_A = 0x7AC
- SYS___GETWC_A = 0x7AB
- SYS___GLOB_A = 0x7DE
- SYS___GMTIME_A = 0x7AF
- SYS___GMTIME_R_A = 0x7B0
- SYS___INET_PTON_A = 0x7BC
- SYS___J0_H = 0x7EE
- SYS___J1_H = 0x7EF
- SYS___JN_H = 0x7F0
- SYS___LOCALTIME_A = 0x7B1
- SYS___LOCALTIME_R_A = 0x7B2
- SYS___MALLOC24 = 0x7FC
- SYS___MALLOC31 = 0x7FD
- SYS___MKTIME_A = 0x7B3
- SYS___MODFF_H = 0x7F8
- SYS___MODFL_H = 0x7F9
- SYS___MODF_H = 0x7EC
- SYS___OPENDIR_A = 0x7C2
- SYS___OSNAME = 0x7E0
- SYS___PUTWCHAR_A = 0x7A7
- SYS___PUTWC_A = 0x7A6
- SYS___READDIR_A = 0x7C3
- SYS___STRTOLL_A = 0x7A3
- SYS___STRTOULL_A = 0x7A4
- SYS___SYSLOG_A = 0x7BD
- SYS___TZZNA = 0x7B4
- SYS___UNGETWC_A = 0x7A9
- SYS___UTIME_A = 0x7A0
- SYS___VFPRINTF2_A = 0x7E7
- SYS___VPRINTF2_A = 0x7E8
- SYS___VSPRINTF2_A = 0x7E9
- SYS___VSWPRNTF2_A = 0x7BB
- SYS___WCSTOD_A = 0x7D9
- SYS___WCSTOL_A = 0x7DA
- SYS___WCSTOUL_A = 0x7DB
- SYS___WCTOB_A = 0x7E5
- SYS___Y0_H = 0x7F1
- SYS___Y1_H = 0x7F2
- SYS___YN_H = 0x7F3
- SYS_____OPENDIR2_A = 0x7BF
- SYS_____OSNAME_A = 0x7E1
- SYS_____READDIR2_A = 0x7C0
- SYS_DLCLOSE = 0x8DF
- SYS_DLERROR = 0x8E0
- SYS_DLOPEN = 0x8DD
- SYS_DLSYM = 0x8DE
- SYS_FLOCKFILE = 0x8D3
- SYS_FTRYLOCKFILE = 0x8D4
- SYS_FUNLOCKFILE = 0x8D5
- SYS_GETCHAR_UNLOCKED = 0x8D7
- SYS_GETC_UNLOCKED = 0x8D6
- SYS_PUTCHAR_UNLOCKED = 0x8D9
- SYS_PUTC_UNLOCKED = 0x8D8
- SYS_SNPRINTF = 0x8DA
- SYS_VSNPRINTF = 0x8DB
- SYS_WCSCSPN = 0x08B
- SYS_WCSLEN = 0x08C
- SYS_WCSNCAT = 0x08D
- SYS_WCSNCMP = 0x08A
- SYS_WCSNCPY = 0x08F
- SYS_WCSSPN = 0x08E
- SYS___ABSF_H = 0x8E7
- SYS___ABSL_H = 0x8E8
- SYS___ABS_H = 0x8E6
- SYS___ACOSF_H = 0x8EA
- SYS___ACOSH_H = 0x8EC
- SYS___ACOSL_H = 0x8EB
- SYS___ACOS_H = 0x8E9
- SYS___ASINF_H = 0x8EE
- SYS___ASINH_H = 0x8F0
- SYS___ASINL_H = 0x8EF
- SYS___ASIN_H = 0x8ED
- SYS___ATAN2F_H = 0x8F8
- SYS___ATAN2L_H = 0x8F9
- SYS___ATAN2_H = 0x8F7
- SYS___ATANF_H = 0x8F2
- SYS___ATANHF_H = 0x8F5
- SYS___ATANHL_H = 0x8F6
- SYS___ATANH_H = 0x8F4
- SYS___ATANL_H = 0x8F3
- SYS___ATAN_H = 0x8F1
- SYS___CBRT_H = 0x8FA
- SYS___COPYSIGNF_H = 0x8FB
- SYS___COPYSIGNL_H = 0x8FC
- SYS___COSF_H = 0x8FE
- SYS___COSL_H = 0x8FF
- SYS___COS_H = 0x8FD
- SYS___DLERROR_A = 0x8D2
- SYS___DLOPEN_A = 0x8D0
- SYS___DLSYM_A = 0x8D1
- SYS___GETUTXENT_A = 0x8C6
- SYS___GETUTXID_A = 0x8C7
- SYS___GETUTXLINE_A = 0x8C8
- SYS___ITOA = 0x8AA
- SYS___ITOA_A = 0x8B0
- SYS___LE_CONDITION_TOKEN_BUILD = 0x8A5
- SYS___LE_MSG_ADD_INSERT = 0x8A6
- SYS___LE_MSG_GET = 0x8A7
- SYS___LE_MSG_GET_AND_WRITE = 0x8A8
- SYS___LE_MSG_WRITE = 0x8A9
- SYS___LLTOA = 0x8AE
- SYS___LLTOA_A = 0x8B4
- SYS___LTOA = 0x8AC
- SYS___LTOA_A = 0x8B2
- SYS___PUTCHAR_UNLOCKED_A = 0x8CC
- SYS___PUTC_UNLOCKED_A = 0x8CB
- SYS___PUTUTXLINE_A = 0x8C9
- SYS___RESET_EXCEPTION_HANDLER = 0x8E3
- SYS___REXEC_A = 0x8C4
- SYS___REXEC_AF_A = 0x8C5
- SYS___SET_EXCEPTION_HANDLER = 0x8E2
- SYS___SNPRINTF_A = 0x8CD
- SYS___SUPERKILL = 0x8A4
- SYS___TCGETATTR_A = 0x8A1
- SYS___TCSETATTR_A = 0x8A2
- SYS___ULLTOA = 0x8AF
- SYS___ULLTOA_A = 0x8B5
- SYS___ULTOA = 0x8AD
- SYS___ULTOA_A = 0x8B3
- SYS___UTOA = 0x8AB
- SYS___UTOA_A = 0x8B1
- SYS___VHM_EVENT = 0x8E4
- SYS___VSNPRINTF_A = 0x8CE
- SYS_____GETENV_A = 0x8C3
- SYS_____UTMPXNAME_A = 0x8CA
- SYS_CACOSH = 0x9A0
- SYS_CACOSHF = 0x9A3
- SYS_CACOSHL = 0x9A6
- SYS_CARG = 0x9A9
- SYS_CARGF = 0x9AC
- SYS_CARGL = 0x9AF
- SYS_CASIN = 0x9B2
- SYS_CASINF = 0x9B5
- SYS_CASINH = 0x9BB
- SYS_CASINHF = 0x9BE
- SYS_CASINHL = 0x9C1
- SYS_CASINL = 0x9B8
- SYS_CATAN = 0x9C4
- SYS_CATANF = 0x9C7
- SYS_CATANH = 0x9CD
- SYS_CATANHF = 0x9D0
- SYS_CATANHL = 0x9D3
- SYS_CATANL = 0x9CA
- SYS_CCOS = 0x9D6
- SYS_CCOSF = 0x9D9
- SYS_CCOSH = 0x9DF
- SYS_CCOSHF = 0x9E2
- SYS_CCOSHL = 0x9E5
- SYS_CCOSL = 0x9DC
- SYS_CEXP = 0x9E8
- SYS_CEXPF = 0x9EB
- SYS_CEXPL = 0x9EE
- SYS_CIMAG = 0x9F1
- SYS_CIMAGF = 0x9F4
- SYS_CIMAGL = 0x9F7
- SYS_CLOGF = 0x9FD
- SYS_MEMCHR = 0x09B
- SYS_MEMCMP = 0x09A
- SYS_STRCOLL = 0x09C
- SYS_STRNCMP = 0x09D
- SYS_STRRCHR = 0x09F
- SYS_STRXFRM = 0x09E
- SYS___CACOSHF_B = 0x9A4
- SYS___CACOSHF_H = 0x9A5
- SYS___CACOSHL_B = 0x9A7
- SYS___CACOSHL_H = 0x9A8
- SYS___CACOSH_B = 0x9A1
- SYS___CACOSH_H = 0x9A2
- SYS___CARGF_B = 0x9AD
- SYS___CARGF_H = 0x9AE
- SYS___CARGL_B = 0x9B0
- SYS___CARGL_H = 0x9B1
- SYS___CARG_B = 0x9AA
- SYS___CARG_H = 0x9AB
- SYS___CASINF_B = 0x9B6
- SYS___CASINF_H = 0x9B7
- SYS___CASINHF_B = 0x9BF
- SYS___CASINHF_H = 0x9C0
- SYS___CASINHL_B = 0x9C2
- SYS___CASINHL_H = 0x9C3
- SYS___CASINH_B = 0x9BC
- SYS___CASINH_H = 0x9BD
- SYS___CASINL_B = 0x9B9
- SYS___CASINL_H = 0x9BA
- SYS___CASIN_B = 0x9B3
- SYS___CASIN_H = 0x9B4
- SYS___CATANF_B = 0x9C8
- SYS___CATANF_H = 0x9C9
- SYS___CATANHF_B = 0x9D1
- SYS___CATANHF_H = 0x9D2
- SYS___CATANHL_B = 0x9D4
- SYS___CATANHL_H = 0x9D5
- SYS___CATANH_B = 0x9CE
- SYS___CATANH_H = 0x9CF
- SYS___CATANL_B = 0x9CB
- SYS___CATANL_H = 0x9CC
- SYS___CATAN_B = 0x9C5
- SYS___CATAN_H = 0x9C6
- SYS___CCOSF_B = 0x9DA
- SYS___CCOSF_H = 0x9DB
- SYS___CCOSHF_B = 0x9E3
- SYS___CCOSHF_H = 0x9E4
- SYS___CCOSHL_B = 0x9E6
- SYS___CCOSHL_H = 0x9E7
- SYS___CCOSH_B = 0x9E0
- SYS___CCOSH_H = 0x9E1
- SYS___CCOSL_B = 0x9DD
- SYS___CCOSL_H = 0x9DE
- SYS___CCOS_B = 0x9D7
- SYS___CCOS_H = 0x9D8
- SYS___CEXPF_B = 0x9EC
- SYS___CEXPF_H = 0x9ED
- SYS___CEXPL_B = 0x9EF
- SYS___CEXPL_H = 0x9F0
- SYS___CEXP_B = 0x9E9
- SYS___CEXP_H = 0x9EA
- SYS___CIMAGF_B = 0x9F5
- SYS___CIMAGF_H = 0x9F6
- SYS___CIMAGL_B = 0x9F8
- SYS___CIMAGL_H = 0x9F9
- SYS___CIMAG_B = 0x9F2
- SYS___CIMAG_H = 0x9F3
- SYS___CLOG = 0x9FA
- SYS___CLOGF_B = 0x9FE
- SYS___CLOGF_H = 0x9FF
- SYS___CLOG_B = 0x9FB
- SYS___CLOG_H = 0x9FC
- SYS_ISWCTYPE = 0x10C
- SYS_ISWXDIGI = 0x10A
- SYS_ISWXDIGIT = 0x10A
- SYS_MBSINIT = 0x10F
- SYS_TOWLOWER = 0x10D
- SYS_TOWUPPER = 0x10E
- SYS_WCTYPE = 0x10B
- SYS_WCSSTR = 0x11B
- SYS___RPMTCH = 0x11A
- SYS_WCSTOD = 0x12E
- SYS_WCSTOK = 0x12C
- SYS_WCSTOL = 0x12D
- SYS_WCSTOUL = 0x12F
- SYS_FGETWC = 0x13C
- SYS_FGETWS = 0x13D
- SYS_FPUTWC = 0x13E
- SYS_FPUTWS = 0x13F
- SYS_REGERROR = 0x13B
- SYS_REGFREE = 0x13A
- SYS_COLLEQUIV = 0x14F
- SYS_COLLTOSTR = 0x14E
- SYS_ISMCCOLLEL = 0x14C
- SYS_STRTOCOLL = 0x14D
- SYS_DLLFREE = 0x16F
- SYS_DLLQUERYFN = 0x16D
- SYS_DLLQUERYVAR = 0x16E
- SYS_GETMCCOLL = 0x16A
- SYS_GETWMCCOLL = 0x16B
- SYS___ERR2AD = 0x16C
- SYS_CFSETOSPEED = 0x17A
- SYS_CHDIR = 0x17B
- SYS_CHMOD = 0x17C
- SYS_CHOWN = 0x17D
- SYS_CLOSE = 0x17E
- SYS_CLOSEDIR = 0x17F
- SYS_LOG = 0x017
- SYS_COSH = 0x018
- SYS_FCHMOD = 0x18A
- SYS_FCHOWN = 0x18B
- SYS_FCNTL = 0x18C
- SYS_FILENO = 0x18D
- SYS_FORK = 0x18E
- SYS_FPATHCONF = 0x18F
- SYS_GETLOGIN = 0x19A
- SYS_GETPGRP = 0x19C
- SYS_GETPID = 0x19D
- SYS_GETPPID = 0x19E
- SYS_GETPWNAM = 0x19F
- SYS_TANH = 0x019
- SYS_W_GETMNTENT = 0x19B
- SYS_POW = 0x020
- SYS_PTHREAD_SELF = 0x20A
- SYS_PTHREAD_SETINTR = 0x20B
- SYS_PTHREAD_SETINTRTYPE = 0x20C
- SYS_PTHREAD_SETSPECIFIC = 0x20D
- SYS_PTHREAD_TESTINTR = 0x20E
- SYS_PTHREAD_YIELD = 0x20F
- SYS_SQRT = 0x021
- SYS_FLOOR = 0x022
- SYS_J1 = 0x023
- SYS_WCSPBRK = 0x23F
- SYS_BSEARCH = 0x24C
- SYS_FABS = 0x024
- SYS_GETENV = 0x24A
- SYS_LDIV = 0x24D
- SYS_SYSTEM = 0x24B
- SYS_FMOD = 0x025
- SYS___RETHROW = 0x25F
- SYS___THROW = 0x25E
- SYS_J0 = 0x026
- SYS_PUTENV = 0x26A
- SYS___GETENV = 0x26F
- SYS_SEMCTL = 0x27A
- SYS_SEMGET = 0x27B
- SYS_SEMOP = 0x27C
- SYS_SHMAT = 0x27D
- SYS_SHMCTL = 0x27E
- SYS_SHMDT = 0x27F
- SYS_YN = 0x027
- SYS_JN = 0x028
- SYS_SIGALTSTACK = 0x28A
- SYS_SIGHOLD = 0x28B
- SYS_SIGIGNORE = 0x28C
- SYS_SIGINTERRUPT = 0x28D
- SYS_SIGPAUSE = 0x28E
- SYS_SIGRELSE = 0x28F
- SYS_GETOPT = 0x29A
- SYS_GETSUBOPT = 0x29D
- SYS_LCHOWN = 0x29B
- SYS_SETPGRP = 0x29E
- SYS_TRUNCATE = 0x29C
- SYS_Y0 = 0x029
- SYS___GDERR = 0x29F
- SYS_ISALPHA = 0x030
- SYS_VFORK = 0x30F
- SYS__LONGJMP = 0x30D
- SYS__SETJMP = 0x30E
- SYS_GLOB = 0x31A
- SYS_GLOBFREE = 0x31B
- SYS_ISALNUM = 0x031
- SYS_PUTW = 0x31C
- SYS_SEEKDIR = 0x31D
- SYS_TELLDIR = 0x31E
- SYS_TEMPNAM = 0x31F
- SYS_GETTIMEOFDAY_R = 0x32E
- SYS_ISLOWER = 0x032
- SYS_LGAMMA = 0x32C
- SYS_REMAINDER = 0x32A
- SYS_SCALB = 0x32B
- SYS_SYNC = 0x32F
- SYS_TTYSLOT = 0x32D
- SYS_ENDPROTOENT = 0x33A
- SYS_ENDSERVENT = 0x33B
- SYS_GETHOSTBYADDR = 0x33D
- SYS_GETHOSTBYADDR_R = 0x33C
- SYS_GETHOSTBYNAME = 0x33F
- SYS_GETHOSTBYNAME_R = 0x33E
- SYS_ISCNTRL = 0x033
- SYS_GETSERVBYNAME = 0x34A
- SYS_GETSERVBYPORT = 0x34B
- SYS_GETSERVENT = 0x34C
- SYS_GETSOCKNAME = 0x34D
- SYS_GETSOCKOPT = 0x34E
- SYS_INET_ADDR = 0x34F
- SYS_ISDIGIT = 0x034
- SYS_ISGRAPH = 0x035
- SYS_SELECT = 0x35B
- SYS_SELECTEX = 0x35C
- SYS_SEND = 0x35D
- SYS_SENDTO = 0x35F
- SYS_CHROOT = 0x36A
- SYS_ISNAN = 0x36D
- SYS_ISUPPER = 0x036
- SYS_ULIMIT = 0x36C
- SYS_UTIMES = 0x36E
- SYS_W_STATVFS = 0x36B
- SYS___H_ERRNO = 0x36F
- SYS_GRANTPT = 0x37A
- SYS_ISPRINT = 0x037
- SYS_TCGETSID = 0x37C
- SYS_UNLOCKPT = 0x37B
- SYS___TCGETCP = 0x37D
- SYS___TCSETCP = 0x37E
- SYS___TCSETTABLES = 0x37F
- SYS_ISPUNCT = 0x038
- SYS_NLIST = 0x38C
- SYS___IPDBCS = 0x38D
- SYS___IPDSPX = 0x38E
- SYS___IPMSGC = 0x38F
- SYS___STHOSTENT = 0x38B
- SYS___STSERVENT = 0x38A
- SYS_ISSPACE = 0x039
- SYS_COS = 0x040
- SYS_T_ALLOC = 0x40A
- SYS_T_BIND = 0x40B
- SYS_T_CLOSE = 0x40C
- SYS_T_CONNECT = 0x40D
- SYS_T_ERROR = 0x40E
- SYS_T_FREE = 0x40F
- SYS_TAN = 0x041
- SYS_T_RCVREL = 0x41A
- SYS_T_RCVUDATA = 0x41B
- SYS_T_RCVUDERR = 0x41C
- SYS_T_SND = 0x41D
- SYS_T_SNDDIS = 0x41E
- SYS_T_SNDREL = 0x41F
- SYS_GETPMSG = 0x42A
- SYS_ISASTREAM = 0x42B
- SYS_PUTMSG = 0x42C
- SYS_PUTPMSG = 0x42D
- SYS_SINH = 0x042
- SYS___ISPOSIXON = 0x42E
- SYS___OPENMVSREL = 0x42F
- SYS_ACOS = 0x043
- SYS_ATAN = 0x044
- SYS_ATAN2 = 0x045
- SYS_FTELL = 0x046
- SYS_FGETPOS = 0x047
- SYS_SOCK_DEBUG = 0x47A
- SYS_SOCK_DO_TESTSTOR = 0x47D
- SYS_TAKESOCKET = 0x47E
- SYS___SERVER_INIT = 0x47F
- SYS_FSEEK = 0x048
- SYS___IPHOST = 0x48B
- SYS___IPNODE = 0x48C
- SYS___SERVER_CLASSIFY_CREATE = 0x48D
- SYS___SERVER_CLASSIFY_DESTROY = 0x48E
- SYS___SERVER_CLASSIFY_RESET = 0x48F
- SYS___SMF_RECORD = 0x48A
- SYS_FSETPOS = 0x049
- SYS___FNWSA = 0x49B
- SYS___SPAWN2 = 0x49D
- SYS___SPAWNP2 = 0x49E
- SYS_ATOF = 0x050
- SYS_PTHREAD_MUTEXATTR_GETPSHARED = 0x50A
- SYS_PTHREAD_MUTEXATTR_SETPSHARED = 0x50B
- SYS_PTHREAD_RWLOCK_DESTROY = 0x50C
- SYS_PTHREAD_RWLOCK_INIT = 0x50D
- SYS_PTHREAD_RWLOCK_RDLOCK = 0x50E
- SYS_PTHREAD_RWLOCK_TRYRDLOCK = 0x50F
- SYS_ATOI = 0x051
- SYS___FP_CLASS = 0x51D
- SYS___FP_CLR_FLAG = 0x51A
- SYS___FP_FINITE = 0x51E
- SYS___FP_ISNAN = 0x51F
- SYS___FP_RAISE_XCP = 0x51C
- SYS___FP_READ_FLAG = 0x51B
- SYS_RAND = 0x052
- SYS_SIGTIMEDWAIT = 0x52D
- SYS_SIGWAITINFO = 0x52E
- SYS___CHKBFP = 0x52F
- SYS___FPC_RS = 0x52C
- SYS___FPC_RW = 0x52A
- SYS___FPC_SM = 0x52B
- SYS_STRTOD = 0x053
- SYS_STRTOL = 0x054
- SYS_STRTOUL = 0x055
- SYS_MALLOC = 0x056
- SYS_SRAND = 0x057
- SYS_CALLOC = 0x058
- SYS_FREE = 0x059
- SYS___OSENV = 0x59F
- SYS___W_PIOCTL = 0x59E
- SYS_LONGJMP = 0x060
- SYS___FLOORF_B = 0x60A
- SYS___FLOORL_B = 0x60B
- SYS___FREXPF_B = 0x60C
- SYS___FREXPL_B = 0x60D
- SYS___LDEXPF_B = 0x60E
- SYS___LDEXPL_B = 0x60F
- SYS_SIGNAL = 0x061
- SYS___ATAN2F_B = 0x61A
- SYS___ATAN2L_B = 0x61B
- SYS___COSHF_B = 0x61C
- SYS___COSHL_B = 0x61D
- SYS___EXPF_B = 0x61E
- SYS___EXPL_B = 0x61F
- SYS_TMPNAM = 0x062
- SYS___ABSF_B = 0x62A
- SYS___ABSL_B = 0x62C
- SYS___ABS_B = 0x62B
- SYS___FMODF_B = 0x62D
- SYS___FMODL_B = 0x62E
- SYS___MODFF_B = 0x62F
- SYS_ATANL = 0x63A
- SYS_CEILF = 0x63B
- SYS_CEILL = 0x63C
- SYS_COSF = 0x63D
- SYS_COSHF = 0x63F
- SYS_COSL = 0x63E
- SYS_REMOVE = 0x063
- SYS_POWL = 0x64A
- SYS_RENAME = 0x064
- SYS_SINF = 0x64B
- SYS_SINHF = 0x64F
- SYS_SINL = 0x64C
- SYS_SQRTF = 0x64D
- SYS_SQRTL = 0x64E
- SYS_BTOWC = 0x65F
- SYS_FREXPL = 0x65A
- SYS_LDEXPF = 0x65B
- SYS_LDEXPL = 0x65C
- SYS_MODFF = 0x65D
- SYS_MODFL = 0x65E
- SYS_TMPFILE = 0x065
- SYS_FREOPEN = 0x066
- SYS___CHARMAP_INIT_A = 0x66E
- SYS___GETHOSTBYADDR_R_A = 0x66C
- SYS___GETHOSTBYNAME_A = 0x66A
- SYS___GETHOSTBYNAME_R_A = 0x66D
- SYS___MBLEN_A = 0x66F
- SYS___RES_INIT_A = 0x66B
- SYS_FCLOSE = 0x067
- SYS___GETGRGID_R_A = 0x67D
- SYS___WCSTOMBS_A = 0x67A
- SYS___WCSTOMBS_STD_A = 0x67B
- SYS___WCSWIDTH_A = 0x67C
- SYS___WCSWIDTH_ASIA = 0x67F
- SYS___WCSWIDTH_STD_A = 0x67E
- SYS_FFLUSH = 0x068
- SYS___GETLOGIN_R_A = 0x68E
- SYS___GETPWNAM_R_A = 0x68C
- SYS___GETPWUID_R_A = 0x68D
- SYS___TTYNAME_R_A = 0x68F
- SYS___WCWIDTH_ASIA = 0x68B
- SYS___WCWIDTH_STD_A = 0x68A
- SYS_FOPEN = 0x069
- SYS___REGEXEC_A = 0x69A
- SYS___REGEXEC_STD_A = 0x69B
- SYS___REGFREE_A = 0x69C
- SYS___REGFREE_STD_A = 0x69D
- SYS___STRCOLL_A = 0x69E
- SYS___STRCOLL_C_A = 0x69F
- SYS_SCANF = 0x070
- SYS___A64L_A = 0x70C
- SYS___ECVT_A = 0x70D
- SYS___FCVT_A = 0x70E
- SYS___GCVT_A = 0x70F
- SYS___STRTOUL_A = 0x70A
- SYS_____AE_CORRESTBL_QUERY_A = 0x70B
- SYS_SPRINTF = 0x071
- SYS___ACCESS_A = 0x71F
- SYS___CATOPEN_A = 0x71E
- SYS___GETOPT_A = 0x71D
- SYS___REALPATH_A = 0x71A
- SYS___SETENV_A = 0x71B
- SYS___SYSTEM_A = 0x71C
- SYS_FGETC = 0x072
- SYS___GAI_STRERROR_A = 0x72F
- SYS___RMDIR_A = 0x72A
- SYS___STATVFS_A = 0x72B
- SYS___SYMLINK_A = 0x72C
- SYS___TRUNCATE_A = 0x72D
- SYS___UNLINK_A = 0x72E
- SYS_VFPRINTF = 0x073
- SYS___ISSPACE_A = 0x73A
- SYS___ISUPPER_A = 0x73B
- SYS___ISWALNUM_A = 0x73F
- SYS___ISXDIGIT_A = 0x73C
- SYS___TOLOWER_A = 0x73D
- SYS___TOUPPER_A = 0x73E
- SYS_VPRINTF = 0x074
- SYS___CONFSTR_A = 0x74B
- SYS___FDOPEN_A = 0x74E
- SYS___FLDATA_A = 0x74F
- SYS___FTOK_A = 0x74C
- SYS___ISWXDIGIT_A = 0x74A
- SYS___MKTEMP_A = 0x74D
- SYS_VSPRINTF = 0x075
- SYS___GETGRGID_A = 0x75A
- SYS___GETGRNAM_A = 0x75B
- SYS___GETGROUPSBYNAME_A = 0x75C
- SYS___GETHOSTENT_A = 0x75D
- SYS___GETHOSTNAME_A = 0x75E
- SYS___GETLOGIN_A = 0x75F
- SYS_GETC = 0x076
- SYS___CREATEWORKUNIT_A = 0x76A
- SYS___CTERMID_A = 0x76B
- SYS___FMTMSG_A = 0x76C
- SYS___INITGROUPS_A = 0x76D
- SYS___MSGRCV_A = 0x76F
- SYS_____LOGIN_A = 0x76E
- SYS_FGETS = 0x077
- SYS___STRCASECMP_A = 0x77B
- SYS___STRNCASECMP_A = 0x77C
- SYS___TTYNAME_A = 0x77D
- SYS___UNAME_A = 0x77E
- SYS___UTIMES_A = 0x77F
- SYS_____SERVER_PWU_A = 0x77A
- SYS_FPUTC = 0x078
- SYS___CREAT_O_A = 0x78E
- SYS___ENVNA = 0x78F
- SYS___FREAD_A = 0x78A
- SYS___FWRITE_A = 0x78B
- SYS___ISASCII = 0x78D
- SYS___OPEN_O_A = 0x78C
- SYS_FPUTS = 0x079
- SYS___ASCTIME_A = 0x79C
- SYS___CTIME_A = 0x79D
- SYS___GETDATE_A = 0x79E
- SYS___GETSERVBYPORT_A = 0x79A
- SYS___GETSERVENT_A = 0x79B
- SYS___TZSET_A = 0x79F
- SYS_ACL_FROM_TEXT = 0x80C
- SYS_ACL_SET_FD = 0x80A
- SYS_ACL_SET_FILE = 0x80B
- SYS_ACL_SORT = 0x80E
- SYS_ACL_TO_TEXT = 0x80D
- SYS_UNGETC = 0x080
- SYS___SHUTDOWN_REGISTRATION = 0x80F
- SYS_FREAD = 0x081
- SYS_FREEADDRINFO = 0x81A
- SYS_GAI_STRERROR = 0x81B
- SYS_REXEC_AF = 0x81C
- SYS___DYNALLOC_A = 0x81F
- SYS___POE = 0x81D
- SYS_WCSTOMBS = 0x082
- SYS___INET_ADDR_A = 0x82F
- SYS___NLIST_A = 0x82A
- SYS_____TCGETCP_A = 0x82B
- SYS_____TCSETCP_A = 0x82C
- SYS_____W_PIOCTL_A = 0x82E
- SYS_MBTOWC = 0x083
- SYS___CABEND = 0x83D
- SYS___LE_CIB_GET = 0x83E
- SYS___RECVMSG_A = 0x83B
- SYS___SENDMSG_A = 0x83A
- SYS___SET_LAA_FOR_JIT = 0x83F
- SYS_____LCHATTR_A = 0x83C
- SYS_WCTOMB = 0x084
- SYS___CBRTL_B = 0x84A
- SYS___COPYSIGNF_B = 0x84B
- SYS___COPYSIGNL_B = 0x84C
- SYS___COTANF_B = 0x84D
- SYS___COTANL_B = 0x84F
- SYS___COTAN_B = 0x84E
- SYS_MBSTOWCS = 0x085
- SYS___LOG1PL_B = 0x85A
- SYS___LOG2F_B = 0x85B
- SYS___LOG2L_B = 0x85D
- SYS___LOG2_B = 0x85C
- SYS___REMAINDERF_B = 0x85E
- SYS___REMAINDERL_B = 0x85F
- SYS_ACOSHF = 0x86E
- SYS_ACOSHL = 0x86F
- SYS_WCSCPY = 0x086
- SYS___ERFCF_B = 0x86D
- SYS___ERFF_B = 0x86C
- SYS___LROUNDF_B = 0x86A
- SYS___LROUND_B = 0x86B
- SYS_COTANL = 0x87A
- SYS_EXP2F = 0x87B
- SYS_EXP2L = 0x87C
- SYS_EXPM1F = 0x87D
- SYS_EXPM1L = 0x87E
- SYS_FDIMF = 0x87F
- SYS_WCSCAT = 0x087
- SYS___COTANL = 0x87A
- SYS_REMAINDERF = 0x88A
- SYS_REMAINDERL = 0x88B
- SYS_REMAINDF = 0x88A
- SYS_REMAINDL = 0x88B
- SYS_REMQUO = 0x88D
- SYS_REMQUOF = 0x88C
- SYS_REMQUOL = 0x88E
- SYS_TGAMMAF = 0x88F
- SYS_WCSCHR = 0x088
- SYS_ERFCF = 0x89B
- SYS_ERFCL = 0x89C
- SYS_ERFL = 0x89A
- SYS_EXP2 = 0x89E
- SYS_WCSCMP = 0x089
- SYS___EXP2_B = 0x89D
- SYS___FAR_JUMP = 0x89F
- SYS_ABS = 0x090
- SYS___ERFCL_H = 0x90A
- SYS___EXPF_H = 0x90C
- SYS___EXPL_H = 0x90D
- SYS___EXPM1_H = 0x90E
- SYS___EXP_H = 0x90B
- SYS___FDIM_H = 0x90F
- SYS_DIV = 0x091
- SYS___LOG2F_H = 0x91F
- SYS___LOG2_H = 0x91E
- SYS___LOGB_H = 0x91D
- SYS___LOGF_H = 0x91B
- SYS___LOGL_H = 0x91C
- SYS___LOG_H = 0x91A
- SYS_LABS = 0x092
- SYS___POWL_H = 0x92A
- SYS___REMAINDER_H = 0x92B
- SYS___RINT_H = 0x92C
- SYS___SCALB_H = 0x92D
- SYS___SINF_H = 0x92F
- SYS___SIN_H = 0x92E
- SYS_STRNCPY = 0x093
- SYS___TANHF_H = 0x93B
- SYS___TANHL_H = 0x93C
- SYS___TANH_H = 0x93A
- SYS___TGAMMAF_H = 0x93E
- SYS___TGAMMA_H = 0x93D
- SYS___TRUNC_H = 0x93F
- SYS_MEMCPY = 0x094
- SYS_VFWSCANF = 0x94A
- SYS_VSWSCANF = 0x94E
- SYS_VWSCANF = 0x94C
- SYS_INET6_RTH_ADD = 0x95D
- SYS_INET6_RTH_INIT = 0x95C
- SYS_INET6_RTH_REVERSE = 0x95E
- SYS_INET6_RTH_SEGMENTS = 0x95F
- SYS_INET6_RTH_SPACE = 0x95B
- SYS_MEMMOVE = 0x095
- SYS_WCSTOLD = 0x95A
- SYS_STRCPY = 0x096
- SYS_STRCMP = 0x097
- SYS_CABS = 0x98E
- SYS_STRCAT = 0x098
- SYS___CABS_B = 0x98F
- SYS___POW_II = 0x98A
- SYS___POW_II_B = 0x98B
- SYS___POW_II_H = 0x98C
- SYS_CACOSF = 0x99A
- SYS_CACOSL = 0x99D
- SYS_STRNCAT = 0x099
- SYS___CACOSF_B = 0x99B
- SYS___CACOSF_H = 0x99C
- SYS___CACOSL_B = 0x99E
- SYS___CACOSL_H = 0x99F
- SYS_ISWALPHA = 0x100
- SYS_ISWBLANK = 0x101
- SYS___ISWBLK = 0x101
- SYS_ISWCNTRL = 0x102
- SYS_ISWDIGIT = 0x103
- SYS_ISWGRAPH = 0x104
- SYS_ISWLOWER = 0x105
- SYS_ISWPRINT = 0x106
- SYS_ISWPUNCT = 0x107
- SYS_ISWSPACE = 0x108
- SYS_ISWUPPER = 0x109
- SYS_WCTOB = 0x110
- SYS_MBRLEN = 0x111
- SYS_MBRTOWC = 0x112
- SYS_MBSRTOWC = 0x113
- SYS_MBSRTOWCS = 0x113
- SYS_WCRTOMB = 0x114
- SYS_WCSRTOMB = 0x115
- SYS_WCSRTOMBS = 0x115
- SYS___CSID = 0x116
- SYS___WCSID = 0x117
- SYS_STRPTIME = 0x118
- SYS___STRPTM = 0x118
- SYS_STRFMON = 0x119
- SYS_WCSCOLL = 0x130
- SYS_WCSXFRM = 0x131
- SYS_WCSWIDTH = 0x132
- SYS_WCWIDTH = 0x133
- SYS_WCSFTIME = 0x134
- SYS_SWPRINTF = 0x135
- SYS_VSWPRINT = 0x136
- SYS_VSWPRINTF = 0x136
- SYS_SWSCANF = 0x137
- SYS_REGCOMP = 0x138
- SYS_REGEXEC = 0x139
- SYS_GETWC = 0x140
- SYS_GETWCHAR = 0x141
- SYS_PUTWC = 0x142
- SYS_PUTWCHAR = 0x143
- SYS_UNGETWC = 0x144
- SYS_ICONV_OPEN = 0x145
- SYS_ICONV = 0x146
- SYS_ICONV_CLOSE = 0x147
- SYS_COLLRANGE = 0x150
- SYS_CCLASS = 0x151
- SYS_COLLORDER = 0x152
- SYS___DEMANGLE = 0x154
- SYS_FDOPEN = 0x155
- SYS___ERRNO = 0x156
- SYS___ERRNO2 = 0x157
- SYS___TERROR = 0x158
- SYS_MAXCOLL = 0x169
- SYS_DLLLOAD = 0x170
- SYS__EXIT = 0x174
- SYS_ACCESS = 0x175
- SYS_ALARM = 0x176
- SYS_CFGETISPEED = 0x177
- SYS_CFGETOSPEED = 0x178
- SYS_CFSETISPEED = 0x179
- SYS_CREAT = 0x180
- SYS_CTERMID = 0x181
- SYS_DUP = 0x182
- SYS_DUP2 = 0x183
- SYS_EXECL = 0x184
- SYS_EXECLE = 0x185
- SYS_EXECLP = 0x186
- SYS_EXECV = 0x187
- SYS_EXECVE = 0x188
- SYS_EXECVP = 0x189
- SYS_FSTAT = 0x190
- SYS_FSYNC = 0x191
- SYS_FTRUNCATE = 0x192
- SYS_GETCWD = 0x193
- SYS_GETEGID = 0x194
- SYS_GETEUID = 0x195
- SYS_GETGID = 0x196
- SYS_GETGRGID = 0x197
- SYS_GETGRNAM = 0x198
- SYS_GETGROUPS = 0x199
- SYS_PTHREAD_MUTEXATTR_DESTROY = 0x200
- SYS_PTHREAD_MUTEXATTR_SETKIND_NP = 0x201
- SYS_PTHREAD_MUTEXATTR_GETKIND_NP = 0x202
- SYS_PTHREAD_MUTEX_INIT = 0x203
- SYS_PTHREAD_MUTEX_DESTROY = 0x204
- SYS_PTHREAD_MUTEX_LOCK = 0x205
- SYS_PTHREAD_MUTEX_TRYLOCK = 0x206
- SYS_PTHREAD_MUTEX_UNLOCK = 0x207
- SYS_PTHREAD_ONCE = 0x209
- SYS_TW_OPEN = 0x210
- SYS_TW_FCNTL = 0x211
- SYS_PTHREAD_JOIN_D4_NP = 0x212
- SYS_PTHREAD_CONDATTR_SETKIND_NP = 0x213
- SYS_PTHREAD_CONDATTR_GETKIND_NP = 0x214
- SYS_EXTLINK_NP = 0x215
- SYS___PASSWD = 0x216
- SYS_SETGROUPS = 0x217
- SYS_INITGROUPS = 0x218
- SYS_WCSRCHR = 0x240
- SYS_SVC99 = 0x241
- SYS___SVC99 = 0x241
- SYS_WCSWCS = 0x242
- SYS_LOCALECO = 0x243
- SYS_LOCALECONV = 0x243
- SYS___LIBREL = 0x244
- SYS_RELEASE = 0x245
- SYS___RLSE = 0x245
- SYS_FLOCATE = 0x246
- SYS___FLOCT = 0x246
- SYS_FDELREC = 0x247
- SYS___FDLREC = 0x247
- SYS_FETCH = 0x248
- SYS___FETCH = 0x248
- SYS_QSORT = 0x249
- SYS___CLEANUPCATCH = 0x260
- SYS___CATCHMATCH = 0x261
- SYS___CLEAN2UPCATCH = 0x262
- SYS_GETPRIORITY = 0x270
- SYS_NICE = 0x271
- SYS_SETPRIORITY = 0x272
- SYS_GETITIMER = 0x273
- SYS_SETITIMER = 0x274
- SYS_MSGCTL = 0x275
- SYS_MSGGET = 0x276
- SYS_MSGRCV = 0x277
- SYS_MSGSND = 0x278
- SYS_MSGXRCV = 0x279
- SYS___MSGXR = 0x279
- SYS_SHMGET = 0x280
- SYS___GETIPC = 0x281
- SYS_SETGRENT = 0x282
- SYS_GETGRENT = 0x283
- SYS_ENDGRENT = 0x284
- SYS_SETPWENT = 0x285
- SYS_GETPWENT = 0x286
- SYS_ENDPWENT = 0x287
- SYS_BSD_SIGNAL = 0x288
- SYS_KILLPG = 0x289
- SYS_SIGSET = 0x290
- SYS_SIGSTACK = 0x291
- SYS_GETRLIMIT = 0x292
- SYS_SETRLIMIT = 0x293
- SYS_GETRUSAGE = 0x294
- SYS_MMAP = 0x295
- SYS_MPROTECT = 0x296
- SYS_MSYNC = 0x297
- SYS_MUNMAP = 0x298
- SYS_CONFSTR = 0x299
- SYS___NDMTRM = 0x300
- SYS_FTOK = 0x301
- SYS_BASENAME = 0x302
- SYS_DIRNAME = 0x303
- SYS_GETDTABLESIZE = 0x304
- SYS_MKSTEMP = 0x305
- SYS_MKTEMP = 0x306
- SYS_NFTW = 0x307
- SYS_GETWD = 0x308
- SYS_LOCKF = 0x309
- SYS_WORDEXP = 0x310
- SYS_WORDFREE = 0x311
- SYS_GETPGID = 0x312
- SYS_GETSID = 0x313
- SYS___UTMPXNAME = 0x314
- SYS_CUSERID = 0x315
- SYS_GETPASS = 0x316
- SYS_FNMATCH = 0x317
- SYS_FTW = 0x318
- SYS_GETW = 0x319
- SYS_ACOSH = 0x320
- SYS_ASINH = 0x321
- SYS_ATANH = 0x322
- SYS_CBRT = 0x323
- SYS_EXPM1 = 0x324
- SYS_ILOGB = 0x325
- SYS_LOGB = 0x326
- SYS_LOG1P = 0x327
- SYS_NEXTAFTER = 0x328
- SYS_RINT = 0x329
- SYS_SPAWN = 0x330
- SYS_SPAWNP = 0x331
- SYS_GETLOGIN_UU = 0x332
- SYS_ECVT = 0x333
- SYS_FCVT = 0x334
- SYS_GCVT = 0x335
- SYS_ACCEPT = 0x336
- SYS_BIND = 0x337
- SYS_CONNECT = 0x338
- SYS_ENDHOSTENT = 0x339
- SYS_GETHOSTENT = 0x340
- SYS_GETHOSTID = 0x341
- SYS_GETHOSTNAME = 0x342
- SYS_GETNETBYADDR = 0x343
- SYS_GETNETBYNAME = 0x344
- SYS_GETNETENT = 0x345
- SYS_GETPEERNAME = 0x346
- SYS_GETPROTOBYNAME = 0x347
- SYS_GETPROTOBYNUMBER = 0x348
- SYS_GETPROTOENT = 0x349
- SYS_INET_LNAOF = 0x350
- SYS_INET_MAKEADDR = 0x351
- SYS_INET_NETOF = 0x352
- SYS_INET_NETWORK = 0x353
- SYS_INET_NTOA = 0x354
- SYS_IOCTL = 0x355
- SYS_LISTEN = 0x356
- SYS_READV = 0x357
- SYS_RECV = 0x358
- SYS_RECVFROM = 0x359
- SYS_SETHOSTENT = 0x360
- SYS_SETNETENT = 0x361
- SYS_SETPEER = 0x362
- SYS_SETPROTOENT = 0x363
- SYS_SETSERVENT = 0x364
- SYS_SETSOCKOPT = 0x365
- SYS_SHUTDOWN = 0x366
- SYS_SOCKET = 0x367
- SYS_SOCKETPAIR = 0x368
- SYS_WRITEV = 0x369
- SYS_ENDNETENT = 0x370
- SYS_CLOSELOG = 0x371
- SYS_OPENLOG = 0x372
- SYS_SETLOGMASK = 0x373
- SYS_SYSLOG = 0x374
- SYS_PTSNAME = 0x375
- SYS_SETREUID = 0x376
- SYS_SETREGID = 0x377
- SYS_REALPATH = 0x378
- SYS___SIGNGAM = 0x379
- SYS_POLL = 0x380
- SYS_REXEC = 0x381
- SYS___ISASCII2 = 0x382
- SYS___TOASCII2 = 0x383
- SYS_CHPRIORITY = 0x384
- SYS_PTHREAD_ATTR_SETSYNCTYPE_NP = 0x385
- SYS_PTHREAD_ATTR_GETSYNCTYPE_NP = 0x386
- SYS_PTHREAD_SET_LIMIT_NP = 0x387
- SYS___STNETENT = 0x388
- SYS___STPROTOENT = 0x389
- SYS___SELECT1 = 0x390
- SYS_PTHREAD_SECURITY_NP = 0x391
- SYS___CHECK_RESOURCE_AUTH_NP = 0x392
- SYS___CONVERT_ID_NP = 0x393
- SYS___OPENVMREL = 0x394
- SYS_WMEMCHR = 0x395
- SYS_WMEMCMP = 0x396
- SYS_WMEMCPY = 0x397
- SYS_WMEMMOVE = 0x398
- SYS_WMEMSET = 0x399
- SYS___FPUTWC = 0x400
- SYS___PUTWC = 0x401
- SYS___PWCHAR = 0x402
- SYS___WCSFTM = 0x403
- SYS___WCSTOK = 0x404
- SYS___WCWDTH = 0x405
- SYS_T_ACCEPT = 0x409
- SYS_T_GETINFO = 0x410
- SYS_T_GETPROTADDR = 0x411
- SYS_T_GETSTATE = 0x412
- SYS_T_LISTEN = 0x413
- SYS_T_LOOK = 0x414
- SYS_T_OPEN = 0x415
- SYS_T_OPTMGMT = 0x416
- SYS_T_RCV = 0x417
- SYS_T_RCVCONNECT = 0x418
- SYS_T_RCVDIS = 0x419
- SYS_T_SNDUDATA = 0x420
- SYS_T_STRERROR = 0x421
- SYS_T_SYNC = 0x422
- SYS_T_UNBIND = 0x423
- SYS___T_ERRNO = 0x424
- SYS___RECVMSG2 = 0x425
- SYS___SENDMSG2 = 0x426
- SYS_FATTACH = 0x427
- SYS_FDETACH = 0x428
- SYS_GETMSG = 0x429
- SYS_GETCONTEXT = 0x430
- SYS_SETCONTEXT = 0x431
- SYS_MAKECONTEXT = 0x432
- SYS_SWAPCONTEXT = 0x433
- SYS_PTHREAD_GETSPECIFIC_D8_NP = 0x434
- SYS_GETCLIENTID = 0x470
- SYS___GETCLIENTID = 0x471
- SYS_GETSTABLESIZE = 0x472
- SYS_GETIBMOPT = 0x473
- SYS_GETIBMSOCKOPT = 0x474
- SYS_GIVESOCKET = 0x475
- SYS_IBMSFLUSH = 0x476
- SYS_MAXDESC = 0x477
- SYS_SETIBMOPT = 0x478
- SYS_SETIBMSOCKOPT = 0x479
- SYS___SERVER_PWU = 0x480
- SYS_PTHREAD_TAG_NP = 0x481
- SYS___CONSOLE = 0x482
- SYS___WSINIT = 0x483
- SYS___IPTCPN = 0x489
- SYS___SERVER_CLASSIFY = 0x490
- SYS___HEAPRPT = 0x496
- SYS___ISBFP = 0x500
- SYS___FP_CAST = 0x501
- SYS___CERTIFICATE = 0x502
- SYS_SEND_FILE = 0x503
- SYS_AIO_CANCEL = 0x504
- SYS_AIO_ERROR = 0x505
- SYS_AIO_READ = 0x506
- SYS_AIO_RETURN = 0x507
- SYS_AIO_SUSPEND = 0x508
- SYS_AIO_WRITE = 0x509
- SYS_PTHREAD_RWLOCK_TRYWRLOCK = 0x510
- SYS_PTHREAD_RWLOCK_UNLOCK = 0x511
- SYS_PTHREAD_RWLOCK_WRLOCK = 0x512
- SYS_PTHREAD_RWLOCKATTR_GETPSHARED = 0x513
- SYS_PTHREAD_RWLOCKATTR_SETPSHARED = 0x514
- SYS_PTHREAD_RWLOCKATTR_INIT = 0x515
- SYS_PTHREAD_RWLOCKATTR_DESTROY = 0x516
- SYS___CTTBL = 0x517
- SYS_PTHREAD_MUTEXATTR_SETTYPE = 0x518
- SYS_PTHREAD_MUTEXATTR_GETTYPE = 0x519
- SYS___FP_UNORDERED = 0x520
- SYS___FP_READ_RND = 0x521
- SYS___FP_READ_RND_B = 0x522
- SYS___FP_SWAP_RND = 0x523
- SYS___FP_SWAP_RND_B = 0x524
- SYS___FP_LEVEL = 0x525
- SYS___FP_BTOH = 0x526
- SYS___FP_HTOB = 0x527
- SYS___FPC_RD = 0x528
- SYS___FPC_WR = 0x529
- SYS_PTHREAD_SETCANCELTYPE = 0x600
- SYS_PTHREAD_TESTCANCEL = 0x601
- SYS___ATANF_B = 0x602
- SYS___ATANL_B = 0x603
- SYS___CEILF_B = 0x604
- SYS___CEILL_B = 0x605
- SYS___COSF_B = 0x606
- SYS___COSL_B = 0x607
- SYS___FABSF_B = 0x608
- SYS___FABSL_B = 0x609
- SYS___SINF_B = 0x610
- SYS___SINL_B = 0x611
- SYS___TANF_B = 0x612
- SYS___TANL_B = 0x613
- SYS___TANHF_B = 0x614
- SYS___TANHL_B = 0x615
- SYS___ACOSF_B = 0x616
- SYS___ACOSL_B = 0x617
- SYS___ASINF_B = 0x618
- SYS___ASINL_B = 0x619
- SYS___LOGF_B = 0x620
- SYS___LOGL_B = 0x621
- SYS___LOG10F_B = 0x622
- SYS___LOG10L_B = 0x623
- SYS___POWF_B = 0x624
- SYS___POWL_B = 0x625
- SYS___SINHF_B = 0x626
- SYS___SINHL_B = 0x627
- SYS___SQRTF_B = 0x628
- SYS___SQRTL_B = 0x629
- SYS___MODFL_B = 0x630
- SYS_ABSF = 0x631
- SYS_ABSL = 0x632
- SYS_ACOSF = 0x633
- SYS_ACOSL = 0x634
- SYS_ASINF = 0x635
- SYS_ASINL = 0x636
- SYS_ATAN2F = 0x637
- SYS_ATAN2L = 0x638
- SYS_ATANF = 0x639
- SYS_COSHL = 0x640
- SYS_EXPF = 0x641
- SYS_EXPL = 0x642
- SYS_TANHF = 0x643
- SYS_TANHL = 0x644
- SYS_LOG10F = 0x645
- SYS_LOG10L = 0x646
- SYS_LOGF = 0x647
- SYS_LOGL = 0x648
- SYS_POWF = 0x649
- SYS_SINHL = 0x650
- SYS_TANF = 0x651
- SYS_TANL = 0x652
- SYS_FABSF = 0x653
- SYS_FABSL = 0x654
- SYS_FLOORF = 0x655
- SYS_FLOORL = 0x656
- SYS_FMODF = 0x657
- SYS_FMODL = 0x658
- SYS_FREXPF = 0x659
- SYS___CHATTR = 0x660
- SYS___FCHATTR = 0x661
- SYS___TOCCSID = 0x662
- SYS___CSNAMETYPE = 0x663
- SYS___TOCSNAME = 0x664
- SYS___CCSIDTYPE = 0x665
- SYS___AE_CORRESTBL_QUERY = 0x666
- SYS___AE_AUTOCONVERT_STATE = 0x667
- SYS_DN_FIND = 0x668
- SYS___GETHOSTBYADDR_A = 0x669
- SYS___MBLEN_SB_A = 0x670
- SYS___MBLEN_STD_A = 0x671
- SYS___MBLEN_UTF = 0x672
- SYS___MBSTOWCS_A = 0x673
- SYS___MBSTOWCS_STD_A = 0x674
- SYS___MBTOWC_A = 0x675
- SYS___MBTOWC_ISO1 = 0x676
- SYS___MBTOWC_SBCS = 0x677
- SYS___MBTOWC_MBCS = 0x678
- SYS___MBTOWC_UTF = 0x679
- SYS___CSID_A = 0x680
- SYS___CSID_STD_A = 0x681
- SYS___WCSID_A = 0x682
- SYS___WCSID_STD_A = 0x683
- SYS___WCTOMB_A = 0x684
- SYS___WCTOMB_ISO1 = 0x685
- SYS___WCTOMB_STD_A = 0x686
- SYS___WCTOMB_UTF = 0x687
- SYS___WCWIDTH_A = 0x688
- SYS___GETGRNAM_R_A = 0x689
- SYS___READDIR_R_A = 0x690
- SYS___E2A_S = 0x691
- SYS___FNMATCH_A = 0x692
- SYS___FNMATCH_C_A = 0x693
- SYS___EXECL_A = 0x694
- SYS___FNMATCH_STD_A = 0x695
- SYS___REGCOMP_A = 0x696
- SYS___REGCOMP_STD_A = 0x697
- SYS___REGERROR_A = 0x698
- SYS___REGERROR_STD_A = 0x699
- SYS___SWPRINTF_A = 0x700
- SYS___FSCANF_A = 0x701
- SYS___SCANF_A = 0x702
- SYS___SSCANF_A = 0x703
- SYS___SWSCANF_A = 0x704
- SYS___ATOF_A = 0x705
- SYS___ATOI_A = 0x706
- SYS___ATOL_A = 0x707
- SYS___STRTOD_A = 0x708
- SYS___STRTOL_A = 0x709
- SYS___L64A_A = 0x710
- SYS___STRERROR_A = 0x711
- SYS___PERROR_A = 0x712
- SYS___FETCH_A = 0x713
- SYS___GETENV_A = 0x714
- SYS___MKSTEMP_A = 0x717
- SYS___PTSNAME_A = 0x718
- SYS___PUTENV_A = 0x719
- SYS___CHDIR_A = 0x720
- SYS___CHOWN_A = 0x721
- SYS___CHROOT_A = 0x722
- SYS___GETCWD_A = 0x723
- SYS___GETWD_A = 0x724
- SYS___LCHOWN_A = 0x725
- SYS___LINK_A = 0x726
- SYS___PATHCONF_A = 0x727
- SYS___IF_NAMEINDEX_A = 0x728
- SYS___READLINK_A = 0x729
- SYS___EXTLINK_NP_A = 0x730
- SYS___ISALNUM_A = 0x731
- SYS___ISALPHA_A = 0x732
- SYS___A2E_S = 0x733
- SYS___ISCNTRL_A = 0x734
- SYS___ISDIGIT_A = 0x735
- SYS___ISGRAPH_A = 0x736
- SYS___ISLOWER_A = 0x737
- SYS___ISPRINT_A = 0x738
- SYS___ISPUNCT_A = 0x739
- SYS___ISWALPHA_A = 0x740
- SYS___A2E_L = 0x741
- SYS___ISWCNTRL_A = 0x742
- SYS___ISWDIGIT_A = 0x743
- SYS___ISWGRAPH_A = 0x744
- SYS___ISWLOWER_A = 0x745
- SYS___ISWPRINT_A = 0x746
- SYS___ISWPUNCT_A = 0x747
- SYS___ISWSPACE_A = 0x748
- SYS___ISWUPPER_A = 0x749
- SYS___REMOVE_A = 0x750
- SYS___RENAME_A = 0x751
- SYS___TMPNAM_A = 0x752
- SYS___FOPEN_A = 0x753
- SYS___FREOPEN_A = 0x754
- SYS___CUSERID_A = 0x755
- SYS___POPEN_A = 0x756
- SYS___TEMPNAM_A = 0x757
- SYS___FTW_A = 0x758
- SYS___GETGRENT_A = 0x759
- SYS___INET_NTOP_A = 0x760
- SYS___GETPASS_A = 0x761
- SYS___GETPWENT_A = 0x762
- SYS___GETPWNAM_A = 0x763
- SYS___GETPWUID_A = 0x764
- SYS_____CHECK_RESOURCE_AUTH_NP_A = 0x765
- SYS___CHECKSCHENV_A = 0x766
- SYS___CONNECTSERVER_A = 0x767
- SYS___CONNECTWORKMGR_A = 0x768
- SYS_____CONSOLE_A = 0x769
- SYS___MSGSND_A = 0x770
- SYS___MSGXRCV_A = 0x771
- SYS___NFTW_A = 0x772
- SYS_____PASSWD_A = 0x773
- SYS___PTHREAD_SECURITY_NP_A = 0x774
- SYS___QUERYMETRICS_A = 0x775
- SYS___QUERYSCHENV = 0x776
- SYS___READV_A = 0x777
- SYS_____SERVER_CLASSIFY_A = 0x778
- SYS_____SERVER_INIT_A = 0x779
- SYS___W_GETPSENT_A = 0x780
- SYS___WRITEV_A = 0x781
- SYS___W_STATFS_A = 0x782
- SYS___W_STATVFS_A = 0x783
- SYS___FPUTC_A = 0x784
- SYS___PUTCHAR_A = 0x785
- SYS___PUTS_A = 0x786
- SYS___FGETS_A = 0x787
- SYS___GETS_A = 0x788
- SYS___FPUTS_A = 0x789
- SYS___PUTC_A = 0x790
- SYS___AE_THREAD_SETMODE = 0x791
- SYS___AE_THREAD_SWAPMODE = 0x792
- SYS___GETNETBYADDR_A = 0x793
- SYS___GETNETBYNAME_A = 0x794
- SYS___GETNETENT_A = 0x795
- SYS___GETPROTOBYNAME_A = 0x796
- SYS___GETPROTOBYNUMBER_A = 0x797
- SYS___GETPROTOENT_A = 0x798
- SYS___GETSERVBYNAME_A = 0x799
- SYS_ACL_FIRST_ENTRY = 0x800
- SYS_ACL_GET_ENTRY = 0x801
- SYS_ACL_VALID = 0x802
- SYS_ACL_CREATE_ENTRY = 0x803
- SYS_ACL_DELETE_ENTRY = 0x804
- SYS_ACL_UPDATE_ENTRY = 0x805
- SYS_ACL_DELETE_FD = 0x806
- SYS_ACL_DELETE_FILE = 0x807
- SYS_ACL_GET_FD = 0x808
- SYS_ACL_GET_FILE = 0x809
- SYS___ERFL_B = 0x810
- SYS___ERFCL_B = 0x811
- SYS___LGAMMAL_B = 0x812
- SYS___SETHOOKEVENTS = 0x813
- SYS_IF_NAMETOINDEX = 0x814
- SYS_IF_INDEXTONAME = 0x815
- SYS_IF_NAMEINDEX = 0x816
- SYS_IF_FREENAMEINDEX = 0x817
- SYS_GETADDRINFO = 0x818
- SYS_GETNAMEINFO = 0x819
- SYS___DYNFREE_A = 0x820
- SYS___RES_QUERY_A = 0x821
- SYS___RES_SEARCH_A = 0x822
- SYS___RES_QUERYDOMAIN_A = 0x823
- SYS___RES_MKQUERY_A = 0x824
- SYS___RES_SEND_A = 0x825
- SYS___DN_EXPAND_A = 0x826
- SYS___DN_SKIPNAME_A = 0x827
- SYS___DN_COMP_A = 0x828
- SYS___DN_FIND_A = 0x829
- SYS___INET_NTOA_A = 0x830
- SYS___INET_NETWORK_A = 0x831
- SYS___ACCEPT_A = 0x832
- SYS___ACCEPT_AND_RECV_A = 0x833
- SYS___BIND_A = 0x834
- SYS___CONNECT_A = 0x835
- SYS___GETPEERNAME_A = 0x836
- SYS___GETSOCKNAME_A = 0x837
- SYS___RECVFROM_A = 0x838
- SYS___SENDTO_A = 0x839
- SYS___LCHATTR = 0x840
- SYS___WRITEDOWN = 0x841
- SYS_PTHREAD_MUTEX_INIT2 = 0x842
- SYS___ACOSHF_B = 0x843
- SYS___ACOSHL_B = 0x844
- SYS___ASINHF_B = 0x845
- SYS___ASINHL_B = 0x846
- SYS___ATANHF_B = 0x847
- SYS___ATANHL_B = 0x848
- SYS___CBRTF_B = 0x849
- SYS___EXP2F_B = 0x850
- SYS___EXP2L_B = 0x851
- SYS___EXPM1F_B = 0x852
- SYS___EXPM1L_B = 0x853
- SYS___FDIMF_B = 0x854
- SYS___FDIM_B = 0x855
- SYS___FDIML_B = 0x856
- SYS___HYPOTF_B = 0x857
- SYS___HYPOTL_B = 0x858
- SYS___LOG1PF_B = 0x859
- SYS___REMQUOF_B = 0x860
- SYS___REMQUO_B = 0x861
- SYS___REMQUOL_B = 0x862
- SYS___TGAMMAF_B = 0x863
- SYS___TGAMMA_B = 0x864
- SYS___TGAMMAL_B = 0x865
- SYS___TRUNCF_B = 0x866
- SYS___TRUNC_B = 0x867
- SYS___TRUNCL_B = 0x868
- SYS___LGAMMAF_B = 0x869
- SYS_ASINHF = 0x870
- SYS_ASINHL = 0x871
- SYS_ATANHF = 0x872
- SYS_ATANHL = 0x873
- SYS_CBRTF = 0x874
- SYS_CBRTL = 0x875
- SYS_COPYSIGNF = 0x876
- SYS_CPYSIGNF = 0x876
- SYS_COPYSIGNL = 0x877
- SYS_CPYSIGNL = 0x877
- SYS_COTANF = 0x878
- SYS___COTANF = 0x878
- SYS_COTAN = 0x879
- SYS___COTAN = 0x879
- SYS_FDIM = 0x881
- SYS_FDIML = 0x882
- SYS_HYPOTF = 0x883
- SYS_HYPOTL = 0x884
- SYS_LOG1PF = 0x885
- SYS_LOG1PL = 0x886
- SYS_LOG2F = 0x887
- SYS_LOG2 = 0x888
- SYS_LOG2L = 0x889
- SYS_TGAMMA = 0x890
- SYS_TGAMMAL = 0x891
- SYS_TRUNCF = 0x892
- SYS_TRUNC = 0x893
- SYS_TRUNCL = 0x894
- SYS_LGAMMAF = 0x895
- SYS_LGAMMAL = 0x896
- SYS_LROUNDF = 0x897
- SYS_LROUND = 0x898
- SYS_ERFF = 0x899
- SYS___COSHF_H = 0x900
- SYS___COSHL_H = 0x901
- SYS___COTAN_H = 0x902
- SYS___COTANF_H = 0x903
- SYS___COTANL_H = 0x904
- SYS___ERF_H = 0x905
- SYS___ERFF_H = 0x906
- SYS___ERFL_H = 0x907
- SYS___ERFC_H = 0x908
- SYS___ERFCF_H = 0x909
- SYS___FDIMF_H = 0x910
- SYS___FDIML_H = 0x911
- SYS___FMOD_H = 0x912
- SYS___FMODF_H = 0x913
- SYS___FMODL_H = 0x914
- SYS___GAMMA_H = 0x915
- SYS___HYPOT_H = 0x916
- SYS___ILOGB_H = 0x917
- SYS___LGAMMA_H = 0x918
- SYS___LGAMMAF_H = 0x919
- SYS___LOG2L_H = 0x920
- SYS___LOG1P_H = 0x921
- SYS___LOG10_H = 0x922
- SYS___LOG10F_H = 0x923
- SYS___LOG10L_H = 0x924
- SYS___LROUND_H = 0x925
- SYS___LROUNDF_H = 0x926
- SYS___NEXTAFTER_H = 0x927
- SYS___POW_H = 0x928
- SYS___POWF_H = 0x929
- SYS___SINL_H = 0x930
- SYS___SINH_H = 0x931
- SYS___SINHF_H = 0x932
- SYS___SINHL_H = 0x933
- SYS___SQRT_H = 0x934
- SYS___SQRTF_H = 0x935
- SYS___SQRTL_H = 0x936
- SYS___TAN_H = 0x937
- SYS___TANF_H = 0x938
- SYS___TANL_H = 0x939
- SYS___TRUNCF_H = 0x940
- SYS___TRUNCL_H = 0x941
- SYS___COSH_H = 0x942
- SYS___LE_DEBUG_SET_RESUME_MCH = 0x943
- SYS_VFSCANF = 0x944
- SYS_VSCANF = 0x946
- SYS_VSSCANF = 0x948
- SYS_IMAXABS = 0x950
- SYS_IMAXDIV = 0x951
- SYS_STRTOIMAX = 0x952
- SYS_STRTOUMAX = 0x953
- SYS_WCSTOIMAX = 0x954
- SYS_WCSTOUMAX = 0x955
- SYS_ATOLL = 0x956
- SYS_STRTOF = 0x957
- SYS_STRTOLD = 0x958
- SYS_WCSTOF = 0x959
- SYS_INET6_RTH_GETADDR = 0x960
- SYS_INET6_OPT_INIT = 0x961
- SYS_INET6_OPT_APPEND = 0x962
- SYS_INET6_OPT_FINISH = 0x963
- SYS_INET6_OPT_SET_VAL = 0x964
- SYS_INET6_OPT_NEXT = 0x965
- SYS_INET6_OPT_FIND = 0x966
- SYS_INET6_OPT_GET_VAL = 0x967
- SYS___POW_I = 0x987
- SYS___POW_I_B = 0x988
- SYS___POW_I_H = 0x989
- SYS___CABS_H = 0x990
- SYS_CABSF = 0x991
- SYS___CABSF_B = 0x992
- SYS___CABSF_H = 0x993
- SYS_CABSL = 0x994
- SYS___CABSL_B = 0x995
- SYS___CABSL_H = 0x996
- SYS_CACOS = 0x997
- SYS___CACOS_B = 0x998
- SYS___CACOS_H = 0x999
+ SYS_LOG = 0x17 // 23
+ SYS_COSH = 0x18 // 24
+ SYS_TANH = 0x19 // 25
+ SYS_EXP = 0x1A // 26
+ SYS_MODF = 0x1B // 27
+ SYS_LOG10 = 0x1C // 28
+ SYS_FREXP = 0x1D // 29
+ SYS_LDEXP = 0x1E // 30
+ SYS_CEIL = 0x1F // 31
+ SYS_POW = 0x20 // 32
+ SYS_SQRT = 0x21 // 33
+ SYS_FLOOR = 0x22 // 34
+ SYS_J1 = 0x23 // 35
+ SYS_FABS = 0x24 // 36
+ SYS_FMOD = 0x25 // 37
+ SYS_J0 = 0x26 // 38
+ SYS_YN = 0x27 // 39
+ SYS_JN = 0x28 // 40
+ SYS_Y0 = 0x29 // 41
+ SYS_Y1 = 0x2A // 42
+ SYS_HYPOT = 0x2B // 43
+ SYS_ERF = 0x2C // 44
+ SYS_ERFC = 0x2D // 45
+ SYS_GAMMA = 0x2E // 46
+ SYS_ISALPHA = 0x30 // 48
+ SYS_ISALNUM = 0x31 // 49
+ SYS_ISLOWER = 0x32 // 50
+ SYS_ISCNTRL = 0x33 // 51
+ SYS_ISDIGIT = 0x34 // 52
+ SYS_ISGRAPH = 0x35 // 53
+ SYS_ISUPPER = 0x36 // 54
+ SYS_ISPRINT = 0x37 // 55
+ SYS_ISPUNCT = 0x38 // 56
+ SYS_ISSPACE = 0x39 // 57
+ SYS_SETLOCAL = 0x3A // 58
+ SYS_SETLOCALE = 0x3A // 58
+ SYS_ISXDIGIT = 0x3B // 59
+ SYS_TOLOWER = 0x3C // 60
+ SYS_TOUPPER = 0x3D // 61
+ SYS_ASIN = 0x3E // 62
+ SYS_SIN = 0x3F // 63
+ SYS_COS = 0x40 // 64
+ SYS_TAN = 0x41 // 65
+ SYS_SINH = 0x42 // 66
+ SYS_ACOS = 0x43 // 67
+ SYS_ATAN = 0x44 // 68
+ SYS_ATAN2 = 0x45 // 69
+ SYS_FTELL = 0x46 // 70
+ SYS_FGETPOS = 0x47 // 71
+ SYS_FSEEK = 0x48 // 72
+ SYS_FSETPOS = 0x49 // 73
+ SYS_FERROR = 0x4A // 74
+ SYS_REWIND = 0x4B // 75
+ SYS_CLEARERR = 0x4C // 76
+ SYS_FEOF = 0x4D // 77
+ SYS_ATOL = 0x4E // 78
+ SYS_PERROR = 0x4F // 79
+ SYS_ATOF = 0x50 // 80
+ SYS_ATOI = 0x51 // 81
+ SYS_RAND = 0x52 // 82
+ SYS_STRTOD = 0x53 // 83
+ SYS_STRTOL = 0x54 // 84
+ SYS_STRTOUL = 0x55 // 85
+ SYS_MALLOC = 0x56 // 86
+ SYS_SRAND = 0x57 // 87
+ SYS_CALLOC = 0x58 // 88
+ SYS_FREE = 0x59 // 89
+ SYS_EXIT = 0x5A // 90
+ SYS_REALLOC = 0x5B // 91
+ SYS_ABORT = 0x5C // 92
+ SYS___ABORT = 0x5C // 92
+ SYS_ATEXIT = 0x5D // 93
+ SYS_RAISE = 0x5E // 94
+ SYS_SETJMP = 0x5F // 95
+ SYS_LONGJMP = 0x60 // 96
+ SYS_SIGNAL = 0x61 // 97
+ SYS_TMPNAM = 0x62 // 98
+ SYS_REMOVE = 0x63 // 99
+ SYS_RENAME = 0x64 // 100
+ SYS_TMPFILE = 0x65 // 101
+ SYS_FREOPEN = 0x66 // 102
+ SYS_FCLOSE = 0x67 // 103
+ SYS_FFLUSH = 0x68 // 104
+ SYS_FOPEN = 0x69 // 105
+ SYS_FSCANF = 0x6A // 106
+ SYS_SETBUF = 0x6B // 107
+ SYS_SETVBUF = 0x6C // 108
+ SYS_FPRINTF = 0x6D // 109
+ SYS_SSCANF = 0x6E // 110
+ SYS_PRINTF = 0x6F // 111
+ SYS_SCANF = 0x70 // 112
+ SYS_SPRINTF = 0x71 // 113
+ SYS_FGETC = 0x72 // 114
+ SYS_VFPRINTF = 0x73 // 115
+ SYS_VPRINTF = 0x74 // 116
+ SYS_VSPRINTF = 0x75 // 117
+ SYS_GETC = 0x76 // 118
+ SYS_FGETS = 0x77 // 119
+ SYS_FPUTC = 0x78 // 120
+ SYS_FPUTS = 0x79 // 121
+ SYS_PUTCHAR = 0x7A // 122
+ SYS_GETCHAR = 0x7B // 123
+ SYS_GETS = 0x7C // 124
+ SYS_PUTC = 0x7D // 125
+ SYS_FWRITE = 0x7E // 126
+ SYS_PUTS = 0x7F // 127
+ SYS_UNGETC = 0x80 // 128
+ SYS_FREAD = 0x81 // 129
+ SYS_WCSTOMBS = 0x82 // 130
+ SYS_MBTOWC = 0x83 // 131
+ SYS_WCTOMB = 0x84 // 132
+ SYS_MBSTOWCS = 0x85 // 133
+ SYS_WCSCPY = 0x86 // 134
+ SYS_WCSCAT = 0x87 // 135
+ SYS_WCSCHR = 0x88 // 136
+ SYS_WCSCMP = 0x89 // 137
+ SYS_WCSNCMP = 0x8A // 138
+ SYS_WCSCSPN = 0x8B // 139
+ SYS_WCSLEN = 0x8C // 140
+ SYS_WCSNCAT = 0x8D // 141
+ SYS_WCSSPN = 0x8E // 142
+ SYS_WCSNCPY = 0x8F // 143
+ SYS_ABS = 0x90 // 144
+ SYS_DIV = 0x91 // 145
+ SYS_LABS = 0x92 // 146
+ SYS_STRNCPY = 0x93 // 147
+ SYS_MEMCPY = 0x94 // 148
+ SYS_MEMMOVE = 0x95 // 149
+ SYS_STRCPY = 0x96 // 150
+ SYS_STRCMP = 0x97 // 151
+ SYS_STRCAT = 0x98 // 152
+ SYS_STRNCAT = 0x99 // 153
+ SYS_MEMCMP = 0x9A // 154
+ SYS_MEMCHR = 0x9B // 155
+ SYS_STRCOLL = 0x9C // 156
+ SYS_STRNCMP = 0x9D // 157
+ SYS_STRXFRM = 0x9E // 158
+ SYS_STRRCHR = 0x9F // 159
+ SYS_STRCHR = 0xA0 // 160
+ SYS_STRCSPN = 0xA1 // 161
+ SYS_STRPBRK = 0xA2 // 162
+ SYS_MEMSET = 0xA3 // 163
+ SYS_STRSPN = 0xA4 // 164
+ SYS_STRSTR = 0xA5 // 165
+ SYS_STRTOK = 0xA6 // 166
+ SYS_DIFFTIME = 0xA7 // 167
+ SYS_STRERROR = 0xA8 // 168
+ SYS_STRLEN = 0xA9 // 169
+ SYS_CLOCK = 0xAA // 170
+ SYS_CTIME = 0xAB // 171
+ SYS_MKTIME = 0xAC // 172
+ SYS_TIME = 0xAD // 173
+ SYS_ASCTIME = 0xAE // 174
+ SYS_MBLEN = 0xAF // 175
+ SYS_GMTIME = 0xB0 // 176
+ SYS_LOCALTIM = 0xB1 // 177
+ SYS_LOCALTIME = 0xB1 // 177
+ SYS_STRFTIME = 0xB2 // 178
+ SYS___GETCB = 0xB4 // 180
+ SYS_FUPDATE = 0xB5 // 181
+ SYS___FUPDT = 0xB5 // 181
+ SYS_CLRMEMF = 0xBD // 189
+ SYS___CLRMF = 0xBD // 189
+ SYS_FETCHEP = 0xBF // 191
+ SYS___FTCHEP = 0xBF // 191
+ SYS_FLDATA = 0xC1 // 193
+ SYS___FLDATA = 0xC1 // 193
+ SYS_DYNFREE = 0xC2 // 194
+ SYS___DYNFRE = 0xC2 // 194
+ SYS_DYNALLOC = 0xC3 // 195
+ SYS___DYNALL = 0xC3 // 195
+ SYS___CDUMP = 0xC4 // 196
+ SYS_CSNAP = 0xC5 // 197
+ SYS___CSNAP = 0xC5 // 197
+ SYS_CTRACE = 0xC6 // 198
+ SYS___CTRACE = 0xC6 // 198
+ SYS___CTEST = 0xC7 // 199
+ SYS_SETENV = 0xC8 // 200
+ SYS___SETENV = 0xC8 // 200
+ SYS_CLEARENV = 0xC9 // 201
+ SYS___CLRENV = 0xC9 // 201
+ SYS___REGCOMP_STD = 0xEA // 234
+ SYS_NL_LANGINFO = 0xFC // 252
+ SYS_GETSYNTX = 0xFD // 253
+ SYS_ISBLANK = 0xFE // 254
+ SYS___ISBLNK = 0xFE // 254
+ SYS_ISWALNUM = 0xFF // 255
+ SYS_ISWALPHA = 0x100 // 256
+ SYS_ISWBLANK = 0x101 // 257
+ SYS___ISWBLK = 0x101 // 257
+ SYS_ISWCNTRL = 0x102 // 258
+ SYS_ISWDIGIT = 0x103 // 259
+ SYS_ISWGRAPH = 0x104 // 260
+ SYS_ISWLOWER = 0x105 // 261
+ SYS_ISWPRINT = 0x106 // 262
+ SYS_ISWPUNCT = 0x107 // 263
+ SYS_ISWSPACE = 0x108 // 264
+ SYS_ISWUPPER = 0x109 // 265
+ SYS_ISWXDIGI = 0x10A // 266
+ SYS_ISWXDIGIT = 0x10A // 266
+ SYS_WCTYPE = 0x10B // 267
+ SYS_ISWCTYPE = 0x10C // 268
+ SYS_TOWLOWER = 0x10D // 269
+ SYS_TOWUPPER = 0x10E // 270
+ SYS_MBSINIT = 0x10F // 271
+ SYS_WCTOB = 0x110 // 272
+ SYS_MBRLEN = 0x111 // 273
+ SYS_MBRTOWC = 0x112 // 274
+ SYS_MBSRTOWC = 0x113 // 275
+ SYS_MBSRTOWCS = 0x113 // 275
+ SYS_WCRTOMB = 0x114 // 276
+ SYS_WCSRTOMB = 0x115 // 277
+ SYS_WCSRTOMBS = 0x115 // 277
+ SYS___CSID = 0x116 // 278
+ SYS___WCSID = 0x117 // 279
+ SYS_STRPTIME = 0x118 // 280
+ SYS___STRPTM = 0x118 // 280
+ SYS_STRFMON = 0x119 // 281
+ SYS___RPMTCH = 0x11A // 282
+ SYS_WCSSTR = 0x11B // 283
+ SYS_WCSTOK = 0x12C // 300
+ SYS_WCSTOL = 0x12D // 301
+ SYS_WCSTOD = 0x12E // 302
+ SYS_WCSTOUL = 0x12F // 303
+ SYS_WCSCOLL = 0x130 // 304
+ SYS_WCSXFRM = 0x131 // 305
+ SYS_WCSWIDTH = 0x132 // 306
+ SYS_WCWIDTH = 0x133 // 307
+ SYS_WCSFTIME = 0x134 // 308
+ SYS_SWPRINTF = 0x135 // 309
+ SYS_VSWPRINT = 0x136 // 310
+ SYS_VSWPRINTF = 0x136 // 310
+ SYS_SWSCANF = 0x137 // 311
+ SYS_REGCOMP = 0x138 // 312
+ SYS_REGEXEC = 0x139 // 313
+ SYS_REGFREE = 0x13A // 314
+ SYS_REGERROR = 0x13B // 315
+ SYS_FGETWC = 0x13C // 316
+ SYS_FGETWS = 0x13D // 317
+ SYS_FPUTWC = 0x13E // 318
+ SYS_FPUTWS = 0x13F // 319
+ SYS_GETWC = 0x140 // 320
+ SYS_GETWCHAR = 0x141 // 321
+ SYS_PUTWC = 0x142 // 322
+ SYS_PUTWCHAR = 0x143 // 323
+ SYS_UNGETWC = 0x144 // 324
+ SYS_ICONV_OPEN = 0x145 // 325
+ SYS_ICONV = 0x146 // 326
+ SYS_ICONV_CLOSE = 0x147 // 327
+ SYS_ISMCCOLLEL = 0x14C // 332
+ SYS_STRTOCOLL = 0x14D // 333
+ SYS_COLLTOSTR = 0x14E // 334
+ SYS_COLLEQUIV = 0x14F // 335
+ SYS_COLLRANGE = 0x150 // 336
+ SYS_CCLASS = 0x151 // 337
+ SYS_COLLORDER = 0x152 // 338
+ SYS___DEMANGLE = 0x154 // 340
+ SYS_FDOPEN = 0x155 // 341
+ SYS___ERRNO = 0x156 // 342
+ SYS___ERRNO2 = 0x157 // 343
+ SYS___TERROR = 0x158 // 344
+ SYS_MAXCOLL = 0x169 // 361
+ SYS_GETMCCOLL = 0x16A // 362
+ SYS_GETWMCCOLL = 0x16B // 363
+ SYS___ERR2AD = 0x16C // 364
+ SYS_DLLQUERYFN = 0x16D // 365
+ SYS_DLLQUERYVAR = 0x16E // 366
+ SYS_DLLFREE = 0x16F // 367
+ SYS_DLLLOAD = 0x170 // 368
+ SYS__EXIT = 0x174 // 372
+ SYS_ACCESS = 0x175 // 373
+ SYS_ALARM = 0x176 // 374
+ SYS_CFGETISPEED = 0x177 // 375
+ SYS_CFGETOSPEED = 0x178 // 376
+ SYS_CFSETISPEED = 0x179 // 377
+ SYS_CFSETOSPEED = 0x17A // 378
+ SYS_CHDIR = 0x17B // 379
+ SYS_CHMOD = 0x17C // 380
+ SYS_CHOWN = 0x17D // 381
+ SYS_CLOSE = 0x17E // 382
+ SYS_CLOSEDIR = 0x17F // 383
+ SYS_CREAT = 0x180 // 384
+ SYS_CTERMID = 0x181 // 385
+ SYS_DUP = 0x182 // 386
+ SYS_DUP2 = 0x183 // 387
+ SYS_EXECL = 0x184 // 388
+ SYS_EXECLE = 0x185 // 389
+ SYS_EXECLP = 0x186 // 390
+ SYS_EXECV = 0x187 // 391
+ SYS_EXECVE = 0x188 // 392
+ SYS_EXECVP = 0x189 // 393
+ SYS_FCHMOD = 0x18A // 394
+ SYS_FCHOWN = 0x18B // 395
+ SYS_FCNTL = 0x18C // 396
+ SYS_FILENO = 0x18D // 397
+ SYS_FORK = 0x18E // 398
+ SYS_FPATHCONF = 0x18F // 399
+ SYS_FSTAT = 0x190 // 400
+ SYS_FSYNC = 0x191 // 401
+ SYS_FTRUNCATE = 0x192 // 402
+ SYS_GETCWD = 0x193 // 403
+ SYS_GETEGID = 0x194 // 404
+ SYS_GETEUID = 0x195 // 405
+ SYS_GETGID = 0x196 // 406
+ SYS_GETGRGID = 0x197 // 407
+ SYS_GETGRNAM = 0x198 // 408
+ SYS_GETGROUPS = 0x199 // 409
+ SYS_GETLOGIN = 0x19A // 410
+ SYS_W_GETMNTENT = 0x19B // 411
+ SYS_GETPGRP = 0x19C // 412
+ SYS_GETPID = 0x19D // 413
+ SYS_GETPPID = 0x19E // 414
+ SYS_GETPWNAM = 0x19F // 415
+ SYS_GETPWUID = 0x1A0 // 416
+ SYS_GETUID = 0x1A1 // 417
+ SYS_W_IOCTL = 0x1A2 // 418
+ SYS_ISATTY = 0x1A3 // 419
+ SYS_KILL = 0x1A4 // 420
+ SYS_LINK = 0x1A5 // 421
+ SYS_LSEEK = 0x1A6 // 422
+ SYS_LSTAT = 0x1A7 // 423
+ SYS_MKDIR = 0x1A8 // 424
+ SYS_MKFIFO = 0x1A9 // 425
+ SYS_MKNOD = 0x1AA // 426
+ SYS_MOUNT = 0x1AB // 427
+ SYS_OPEN = 0x1AC // 428
+ SYS_OPENDIR = 0x1AD // 429
+ SYS_PATHCONF = 0x1AE // 430
+ SYS_PAUSE = 0x1AF // 431
+ SYS_PIPE = 0x1B0 // 432
+ SYS_W_GETPSENT = 0x1B1 // 433
+ SYS_READ = 0x1B2 // 434
+ SYS_READDIR = 0x1B3 // 435
+ SYS_READLINK = 0x1B4 // 436
+ SYS_REWINDDIR = 0x1B5 // 437
+ SYS_RMDIR = 0x1B6 // 438
+ SYS_SETEGID = 0x1B7 // 439
+ SYS_SETEUID = 0x1B8 // 440
+ SYS_SETGID = 0x1B9 // 441
+ SYS_SETPGID = 0x1BA // 442
+ SYS_SETSID = 0x1BB // 443
+ SYS_SETUID = 0x1BC // 444
+ SYS_SIGACTION = 0x1BD // 445
+ SYS_SIGADDSET = 0x1BE // 446
+ SYS_SIGDELSET = 0x1BF // 447
+ SYS_SIGEMPTYSET = 0x1C0 // 448
+ SYS_SIGFILLSET = 0x1C1 // 449
+ SYS_SIGISMEMBER = 0x1C2 // 450
+ SYS_SIGLONGJMP = 0x1C3 // 451
+ SYS_SIGPENDING = 0x1C4 // 452
+ SYS_SIGPROCMASK = 0x1C5 // 453
+ SYS_SIGSETJMP = 0x1C6 // 454
+ SYS_SIGSUSPEND = 0x1C7 // 455
+ SYS_SLEEP = 0x1C8 // 456
+ SYS_STAT = 0x1C9 // 457
+ SYS_W_STATFS = 0x1CA // 458
+ SYS_SYMLINK = 0x1CB // 459
+ SYS_SYSCONF = 0x1CC // 460
+ SYS_TCDRAIN = 0x1CD // 461
+ SYS_TCFLOW = 0x1CE // 462
+ SYS_TCFLUSH = 0x1CF // 463
+ SYS_TCGETATTR = 0x1D0 // 464
+ SYS_TCGETPGRP = 0x1D1 // 465
+ SYS_TCSENDBREAK = 0x1D2 // 466
+ SYS_TCSETATTR = 0x1D3 // 467
+ SYS_TCSETPGRP = 0x1D4 // 468
+ SYS_TIMES = 0x1D5 // 469
+ SYS_TTYNAME = 0x1D6 // 470
+ SYS_TZSET = 0x1D7 // 471
+ SYS_UMASK = 0x1D8 // 472
+ SYS_UMOUNT = 0x1D9 // 473
+ SYS_UNAME = 0x1DA // 474
+ SYS_UNLINK = 0x1DB // 475
+ SYS_UTIME = 0x1DC // 476
+ SYS_WAIT = 0x1DD // 477
+ SYS_WAITPID = 0x1DE // 478
+ SYS_WRITE = 0x1DF // 479
+ SYS_CHAUDIT = 0x1E0 // 480
+ SYS_FCHAUDIT = 0x1E1 // 481
+ SYS_GETGROUPSBYNAME = 0x1E2 // 482
+ SYS_SIGWAIT = 0x1E3 // 483
+ SYS_PTHREAD_EXIT = 0x1E4 // 484
+ SYS_PTHREAD_KILL = 0x1E5 // 485
+ SYS_PTHREAD_ATTR_INIT = 0x1E6 // 486
+ SYS_PTHREAD_ATTR_DESTROY = 0x1E7 // 487
+ SYS_PTHREAD_ATTR_SETSTACKSIZE = 0x1E8 // 488
+ SYS_PTHREAD_ATTR_GETSTACKSIZE = 0x1E9 // 489
+ SYS_PTHREAD_ATTR_SETDETACHSTATE = 0x1EA // 490
+ SYS_PTHREAD_ATTR_GETDETACHSTATE = 0x1EB // 491
+ SYS_PTHREAD_ATTR_SETWEIGHT_NP = 0x1EC // 492
+ SYS_PTHREAD_ATTR_GETWEIGHT_NP = 0x1ED // 493
+ SYS_PTHREAD_CANCEL = 0x1EE // 494
+ SYS_PTHREAD_CLEANUP_PUSH = 0x1EF // 495
+ SYS_PTHREAD_CLEANUP_POP = 0x1F0 // 496
+ SYS_PTHREAD_CONDATTR_INIT = 0x1F1 // 497
+ SYS_PTHREAD_CONDATTR_DESTROY = 0x1F2 // 498
+ SYS_PTHREAD_COND_INIT = 0x1F3 // 499
+ SYS_PTHREAD_COND_DESTROY = 0x1F4 // 500
+ SYS_PTHREAD_COND_SIGNAL = 0x1F5 // 501
+ SYS_PTHREAD_COND_BROADCAST = 0x1F6 // 502
+ SYS_PTHREAD_COND_WAIT = 0x1F7 // 503
+ SYS_PTHREAD_COND_TIMEDWAIT = 0x1F8 // 504
+ SYS_PTHREAD_CREATE = 0x1F9 // 505
+ SYS_PTHREAD_DETACH = 0x1FA // 506
+ SYS_PTHREAD_EQUAL = 0x1FB // 507
+ SYS_PTHREAD_GETSPECIFIC = 0x1FC // 508
+ SYS_PTHREAD_JOIN = 0x1FD // 509
+ SYS_PTHREAD_KEY_CREATE = 0x1FE // 510
+ SYS_PTHREAD_MUTEXATTR_INIT = 0x1FF // 511
+ SYS_PTHREAD_MUTEXATTR_DESTROY = 0x200 // 512
+ SYS_PTHREAD_MUTEXATTR_SETKIND_NP = 0x201 // 513
+ SYS_PTHREAD_MUTEXATTR_GETKIND_NP = 0x202 // 514
+ SYS_PTHREAD_MUTEX_INIT = 0x203 // 515
+ SYS_PTHREAD_MUTEX_DESTROY = 0x204 // 516
+ SYS_PTHREAD_MUTEX_LOCK = 0x205 // 517
+ SYS_PTHREAD_MUTEX_TRYLOCK = 0x206 // 518
+ SYS_PTHREAD_MUTEX_UNLOCK = 0x207 // 519
+ SYS_PTHREAD_ONCE = 0x209 // 521
+ SYS_PTHREAD_SELF = 0x20A // 522
+ SYS_PTHREAD_SETINTR = 0x20B // 523
+ SYS_PTHREAD_SETINTRTYPE = 0x20C // 524
+ SYS_PTHREAD_SETSPECIFIC = 0x20D // 525
+ SYS_PTHREAD_TESTINTR = 0x20E // 526
+ SYS_PTHREAD_YIELD = 0x20F // 527
+ SYS_TW_OPEN = 0x210 // 528
+ SYS_TW_FCNTL = 0x211 // 529
+ SYS_PTHREAD_JOIN_D4_NP = 0x212 // 530
+ SYS_PTHREAD_CONDATTR_SETKIND_NP = 0x213 // 531
+ SYS_PTHREAD_CONDATTR_GETKIND_NP = 0x214 // 532
+ SYS_EXTLINK_NP = 0x215 // 533
+ SYS___PASSWD = 0x216 // 534
+ SYS_SETGROUPS = 0x217 // 535
+ SYS_INITGROUPS = 0x218 // 536
+ SYS_WCSPBRK = 0x23F // 575
+ SYS_WCSRCHR = 0x240 // 576
+ SYS_SVC99 = 0x241 // 577
+ SYS___SVC99 = 0x241 // 577
+ SYS_WCSWCS = 0x242 // 578
+ SYS_LOCALECO = 0x243 // 579
+ SYS_LOCALECONV = 0x243 // 579
+ SYS___LIBREL = 0x244 // 580
+ SYS_RELEASE = 0x245 // 581
+ SYS___RLSE = 0x245 // 581
+ SYS_FLOCATE = 0x246 // 582
+ SYS___FLOCT = 0x246 // 582
+ SYS_FDELREC = 0x247 // 583
+ SYS___FDLREC = 0x247 // 583
+ SYS_FETCH = 0x248 // 584
+ SYS___FETCH = 0x248 // 584
+ SYS_QSORT = 0x249 // 585
+ SYS_GETENV = 0x24A // 586
+ SYS_SYSTEM = 0x24B // 587
+ SYS_BSEARCH = 0x24C // 588
+ SYS_LDIV = 0x24D // 589
+ SYS___THROW = 0x25E // 606
+ SYS___RETHROW = 0x25F // 607
+ SYS___CLEANUPCATCH = 0x260 // 608
+ SYS___CATCHMATCH = 0x261 // 609
+ SYS___CLEAN2UPCATCH = 0x262 // 610
+ SYS_PUTENV = 0x26A // 618
+ SYS___GETENV = 0x26F // 623
+ SYS_GETPRIORITY = 0x270 // 624
+ SYS_NICE = 0x271 // 625
+ SYS_SETPRIORITY = 0x272 // 626
+ SYS_GETITIMER = 0x273 // 627
+ SYS_SETITIMER = 0x274 // 628
+ SYS_MSGCTL = 0x275 // 629
+ SYS_MSGGET = 0x276 // 630
+ SYS_MSGRCV = 0x277 // 631
+ SYS_MSGSND = 0x278 // 632
+ SYS_MSGXRCV = 0x279 // 633
+ SYS___MSGXR = 0x279 // 633
+ SYS_SEMCTL = 0x27A // 634
+ SYS_SEMGET = 0x27B // 635
+ SYS_SEMOP = 0x27C // 636
+ SYS_SHMAT = 0x27D // 637
+ SYS_SHMCTL = 0x27E // 638
+ SYS_SHMDT = 0x27F // 639
+ SYS_SHMGET = 0x280 // 640
+ SYS___GETIPC = 0x281 // 641
+ SYS_SETGRENT = 0x282 // 642
+ SYS_GETGRENT = 0x283 // 643
+ SYS_ENDGRENT = 0x284 // 644
+ SYS_SETPWENT = 0x285 // 645
+ SYS_GETPWENT = 0x286 // 646
+ SYS_ENDPWENT = 0x287 // 647
+ SYS_BSD_SIGNAL = 0x288 // 648
+ SYS_KILLPG = 0x289 // 649
+ SYS_SIGALTSTACK = 0x28A // 650
+ SYS_SIGHOLD = 0x28B // 651
+ SYS_SIGIGNORE = 0x28C // 652
+ SYS_SIGINTERRUPT = 0x28D // 653
+ SYS_SIGPAUSE = 0x28E // 654
+ SYS_SIGRELSE = 0x28F // 655
+ SYS_SIGSET = 0x290 // 656
+ SYS_SIGSTACK = 0x291 // 657
+ SYS_GETRLIMIT = 0x292 // 658
+ SYS_SETRLIMIT = 0x293 // 659
+ SYS_GETRUSAGE = 0x294 // 660
+ SYS_MMAP = 0x295 // 661
+ SYS_MPROTECT = 0x296 // 662
+ SYS_MSYNC = 0x297 // 663
+ SYS_MUNMAP = 0x298 // 664
+ SYS_CONFSTR = 0x299 // 665
+ SYS_GETOPT = 0x29A // 666
+ SYS_LCHOWN = 0x29B // 667
+ SYS_TRUNCATE = 0x29C // 668
+ SYS_GETSUBOPT = 0x29D // 669
+ SYS_SETPGRP = 0x29E // 670
+ SYS___GDERR = 0x29F // 671
+ SYS___TZONE = 0x2A0 // 672
+ SYS___DLGHT = 0x2A1 // 673
+ SYS___OPARGF = 0x2A2 // 674
+ SYS___OPOPTF = 0x2A3 // 675
+ SYS___OPINDF = 0x2A4 // 676
+ SYS___OPERRF = 0x2A5 // 677
+ SYS_GETDATE = 0x2A6 // 678
+ SYS_WAIT3 = 0x2A7 // 679
+ SYS_WAITID = 0x2A8 // 680
+ SYS___CATTRM = 0x2A9 // 681
+ SYS___GDTRM = 0x2AA // 682
+ SYS___RNDTRM = 0x2AB // 683
+ SYS_CRYPT = 0x2AC // 684
+ SYS_ENCRYPT = 0x2AD // 685
+ SYS_SETKEY = 0x2AE // 686
+ SYS___CNVBLK = 0x2AF // 687
+ SYS___CRYTRM = 0x2B0 // 688
+ SYS___ECRTRM = 0x2B1 // 689
+ SYS_DRAND48 = 0x2B2 // 690
+ SYS_ERAND48 = 0x2B3 // 691
+ SYS_FSTATVFS = 0x2B4 // 692
+ SYS_STATVFS = 0x2B5 // 693
+ SYS_CATCLOSE = 0x2B6 // 694
+ SYS_CATGETS = 0x2B7 // 695
+ SYS_CATOPEN = 0x2B8 // 696
+ SYS_BCMP = 0x2B9 // 697
+ SYS_BCOPY = 0x2BA // 698
+ SYS_BZERO = 0x2BB // 699
+ SYS_FFS = 0x2BC // 700
+ SYS_INDEX = 0x2BD // 701
+ SYS_RINDEX = 0x2BE // 702
+ SYS_STRCASECMP = 0x2BF // 703
+ SYS_STRDUP = 0x2C0 // 704
+ SYS_STRNCASECMP = 0x2C1 // 705
+ SYS_INITSTATE = 0x2C2 // 706
+ SYS_SETSTATE = 0x2C3 // 707
+ SYS_RANDOM = 0x2C4 // 708
+ SYS_SRANDOM = 0x2C5 // 709
+ SYS_HCREATE = 0x2C6 // 710
+ SYS_HDESTROY = 0x2C7 // 711
+ SYS_HSEARCH = 0x2C8 // 712
+ SYS_LFIND = 0x2C9 // 713
+ SYS_LSEARCH = 0x2CA // 714
+ SYS_TDELETE = 0x2CB // 715
+ SYS_TFIND = 0x2CC // 716
+ SYS_TSEARCH = 0x2CD // 717
+ SYS_TWALK = 0x2CE // 718
+ SYS_INSQUE = 0x2CF // 719
+ SYS_REMQUE = 0x2D0 // 720
+ SYS_POPEN = 0x2D1 // 721
+ SYS_PCLOSE = 0x2D2 // 722
+ SYS_SWAB = 0x2D3 // 723
+ SYS_MEMCCPY = 0x2D4 // 724
+ SYS_GETPAGESIZE = 0x2D8 // 728
+ SYS_FCHDIR = 0x2D9 // 729
+ SYS___OCLCK = 0x2DA // 730
+ SYS___ATOE = 0x2DB // 731
+ SYS___ATOE_L = 0x2DC // 732
+ SYS___ETOA = 0x2DD // 733
+ SYS___ETOA_L = 0x2DE // 734
+ SYS_SETUTXENT = 0x2DF // 735
+ SYS_GETUTXENT = 0x2E0 // 736
+ SYS_ENDUTXENT = 0x2E1 // 737
+ SYS_GETUTXID = 0x2E2 // 738
+ SYS_GETUTXLINE = 0x2E3 // 739
+ SYS_PUTUTXLINE = 0x2E4 // 740
+ SYS_FMTMSG = 0x2E5 // 741
+ SYS_JRAND48 = 0x2E6 // 742
+ SYS_LRAND48 = 0x2E7 // 743
+ SYS_MRAND48 = 0x2E8 // 744
+ SYS_NRAND48 = 0x2E9 // 745
+ SYS_LCONG48 = 0x2EA // 746
+ SYS_SRAND48 = 0x2EB // 747
+ SYS_SEED48 = 0x2EC // 748
+ SYS_ISASCII = 0x2ED // 749
+ SYS_TOASCII = 0x2EE // 750
+ SYS_A64L = 0x2EF // 751
+ SYS_L64A = 0x2F0 // 752
+ SYS_UALARM = 0x2F1 // 753
+ SYS_USLEEP = 0x2F2 // 754
+ SYS___UTXTRM = 0x2F3 // 755
+ SYS___SRCTRM = 0x2F4 // 756
+ SYS_FTIME = 0x2F5 // 757
+ SYS_GETTIMEOFDAY = 0x2F6 // 758
+ SYS_DBM_CLEARERR = 0x2F7 // 759
+ SYS_DBM_CLOSE = 0x2F8 // 760
+ SYS_DBM_DELETE = 0x2F9 // 761
+ SYS_DBM_ERROR = 0x2FA // 762
+ SYS_DBM_FETCH = 0x2FB // 763
+ SYS_DBM_FIRSTKEY = 0x2FC // 764
+ SYS_DBM_NEXTKEY = 0x2FD // 765
+ SYS_DBM_OPEN = 0x2FE // 766
+ SYS_DBM_STORE = 0x2FF // 767
+ SYS___NDMTRM = 0x300 // 768
+ SYS_FTOK = 0x301 // 769
+ SYS_BASENAME = 0x302 // 770
+ SYS_DIRNAME = 0x303 // 771
+ SYS_GETDTABLESIZE = 0x304 // 772
+ SYS_MKSTEMP = 0x305 // 773
+ SYS_MKTEMP = 0x306 // 774
+ SYS_NFTW = 0x307 // 775
+ SYS_GETWD = 0x308 // 776
+ SYS_LOCKF = 0x309 // 777
+ SYS__LONGJMP = 0x30D // 781
+ SYS__SETJMP = 0x30E // 782
+ SYS_VFORK = 0x30F // 783
+ SYS_WORDEXP = 0x310 // 784
+ SYS_WORDFREE = 0x311 // 785
+ SYS_GETPGID = 0x312 // 786
+ SYS_GETSID = 0x313 // 787
+ SYS___UTMPXNAME = 0x314 // 788
+ SYS_CUSERID = 0x315 // 789
+ SYS_GETPASS = 0x316 // 790
+ SYS_FNMATCH = 0x317 // 791
+ SYS_FTW = 0x318 // 792
+ SYS_GETW = 0x319 // 793
+ SYS_GLOB = 0x31A // 794
+ SYS_GLOBFREE = 0x31B // 795
+ SYS_PUTW = 0x31C // 796
+ SYS_SEEKDIR = 0x31D // 797
+ SYS_TELLDIR = 0x31E // 798
+ SYS_TEMPNAM = 0x31F // 799
+ SYS_ACOSH = 0x320 // 800
+ SYS_ASINH = 0x321 // 801
+ SYS_ATANH = 0x322 // 802
+ SYS_CBRT = 0x323 // 803
+ SYS_EXPM1 = 0x324 // 804
+ SYS_ILOGB = 0x325 // 805
+ SYS_LOGB = 0x326 // 806
+ SYS_LOG1P = 0x327 // 807
+ SYS_NEXTAFTER = 0x328 // 808
+ SYS_RINT = 0x329 // 809
+ SYS_REMAINDER = 0x32A // 810
+ SYS_SCALB = 0x32B // 811
+ SYS_LGAMMA = 0x32C // 812
+ SYS_TTYSLOT = 0x32D // 813
+ SYS_GETTIMEOFDAY_R = 0x32E // 814
+ SYS_SYNC = 0x32F // 815
+ SYS_SPAWN = 0x330 // 816
+ SYS_SPAWNP = 0x331 // 817
+ SYS_GETLOGIN_UU = 0x332 // 818
+ SYS_ECVT = 0x333 // 819
+ SYS_FCVT = 0x334 // 820
+ SYS_GCVT = 0x335 // 821
+ SYS_ACCEPT = 0x336 // 822
+ SYS_BIND = 0x337 // 823
+ SYS_CONNECT = 0x338 // 824
+ SYS_ENDHOSTENT = 0x339 // 825
+ SYS_ENDPROTOENT = 0x33A // 826
+ SYS_ENDSERVENT = 0x33B // 827
+ SYS_GETHOSTBYADDR_R = 0x33C // 828
+ SYS_GETHOSTBYADDR = 0x33D // 829
+ SYS_GETHOSTBYNAME_R = 0x33E // 830
+ SYS_GETHOSTBYNAME = 0x33F // 831
+ SYS_GETHOSTENT = 0x340 // 832
+ SYS_GETHOSTID = 0x341 // 833
+ SYS_GETHOSTNAME = 0x342 // 834
+ SYS_GETNETBYADDR = 0x343 // 835
+ SYS_GETNETBYNAME = 0x344 // 836
+ SYS_GETNETENT = 0x345 // 837
+ SYS_GETPEERNAME = 0x346 // 838
+ SYS_GETPROTOBYNAME = 0x347 // 839
+ SYS_GETPROTOBYNUMBER = 0x348 // 840
+ SYS_GETPROTOENT = 0x349 // 841
+ SYS_GETSERVBYNAME = 0x34A // 842
+ SYS_GETSERVBYPORT = 0x34B // 843
+ SYS_GETSERVENT = 0x34C // 844
+ SYS_GETSOCKNAME = 0x34D // 845
+ SYS_GETSOCKOPT = 0x34E // 846
+ SYS_INET_ADDR = 0x34F // 847
+ SYS_INET_LNAOF = 0x350 // 848
+ SYS_INET_MAKEADDR = 0x351 // 849
+ SYS_INET_NETOF = 0x352 // 850
+ SYS_INET_NETWORK = 0x353 // 851
+ SYS_INET_NTOA = 0x354 // 852
+ SYS_IOCTL = 0x355 // 853
+ SYS_LISTEN = 0x356 // 854
+ SYS_READV = 0x357 // 855
+ SYS_RECV = 0x358 // 856
+ SYS_RECVFROM = 0x359 // 857
+ SYS_SELECT = 0x35B // 859
+ SYS_SELECTEX = 0x35C // 860
+ SYS_SEND = 0x35D // 861
+ SYS_SENDTO = 0x35F // 863
+ SYS_SETHOSTENT = 0x360 // 864
+ SYS_SETNETENT = 0x361 // 865
+ SYS_SETPEER = 0x362 // 866
+ SYS_SETPROTOENT = 0x363 // 867
+ SYS_SETSERVENT = 0x364 // 868
+ SYS_SETSOCKOPT = 0x365 // 869
+ SYS_SHUTDOWN = 0x366 // 870
+ SYS_SOCKET = 0x367 // 871
+ SYS_SOCKETPAIR = 0x368 // 872
+ SYS_WRITEV = 0x369 // 873
+ SYS_CHROOT = 0x36A // 874
+ SYS_W_STATVFS = 0x36B // 875
+ SYS_ULIMIT = 0x36C // 876
+ SYS_ISNAN = 0x36D // 877
+ SYS_UTIMES = 0x36E // 878
+ SYS___H_ERRNO = 0x36F // 879
+ SYS_ENDNETENT = 0x370 // 880
+ SYS_CLOSELOG = 0x371 // 881
+ SYS_OPENLOG = 0x372 // 882
+ SYS_SETLOGMASK = 0x373 // 883
+ SYS_SYSLOG = 0x374 // 884
+ SYS_PTSNAME = 0x375 // 885
+ SYS_SETREUID = 0x376 // 886
+ SYS_SETREGID = 0x377 // 887
+ SYS_REALPATH = 0x378 // 888
+ SYS___SIGNGAM = 0x379 // 889
+ SYS_GRANTPT = 0x37A // 890
+ SYS_UNLOCKPT = 0x37B // 891
+ SYS_TCGETSID = 0x37C // 892
+ SYS___TCGETCP = 0x37D // 893
+ SYS___TCSETCP = 0x37E // 894
+ SYS___TCSETTABLES = 0x37F // 895
+ SYS_POLL = 0x380 // 896
+ SYS_REXEC = 0x381 // 897
+ SYS___ISASCII2 = 0x382 // 898
+ SYS___TOASCII2 = 0x383 // 899
+ SYS_CHPRIORITY = 0x384 // 900
+ SYS_PTHREAD_ATTR_SETSYNCTYPE_NP = 0x385 // 901
+ SYS_PTHREAD_ATTR_GETSYNCTYPE_NP = 0x386 // 902
+ SYS_PTHREAD_SET_LIMIT_NP = 0x387 // 903
+ SYS___STNETENT = 0x388 // 904
+ SYS___STPROTOENT = 0x389 // 905
+ SYS___STSERVENT = 0x38A // 906
+ SYS___STHOSTENT = 0x38B // 907
+ SYS_NLIST = 0x38C // 908
+ SYS___IPDBCS = 0x38D // 909
+ SYS___IPDSPX = 0x38E // 910
+ SYS___IPMSGC = 0x38F // 911
+ SYS___SELECT1 = 0x390 // 912
+ SYS_PTHREAD_SECURITY_NP = 0x391 // 913
+ SYS___CHECK_RESOURCE_AUTH_NP = 0x392 // 914
+ SYS___CONVERT_ID_NP = 0x393 // 915
+ SYS___OPENVMREL = 0x394 // 916
+ SYS_WMEMCHR = 0x395 // 917
+ SYS_WMEMCMP = 0x396 // 918
+ SYS_WMEMCPY = 0x397 // 919
+ SYS_WMEMMOVE = 0x398 // 920
+ SYS_WMEMSET = 0x399 // 921
+ SYS___FPUTWC = 0x400 // 1024
+ SYS___PUTWC = 0x401 // 1025
+ SYS___PWCHAR = 0x402 // 1026
+ SYS___WCSFTM = 0x403 // 1027
+ SYS___WCSTOK = 0x404 // 1028
+ SYS___WCWDTH = 0x405 // 1029
+ SYS_T_ACCEPT = 0x409 // 1033
+ SYS_T_ALLOC = 0x40A // 1034
+ SYS_T_BIND = 0x40B // 1035
+ SYS_T_CLOSE = 0x40C // 1036
+ SYS_T_CONNECT = 0x40D // 1037
+ SYS_T_ERROR = 0x40E // 1038
+ SYS_T_FREE = 0x40F // 1039
+ SYS_T_GETINFO = 0x410 // 1040
+ SYS_T_GETPROTADDR = 0x411 // 1041
+ SYS_T_GETSTATE = 0x412 // 1042
+ SYS_T_LISTEN = 0x413 // 1043
+ SYS_T_LOOK = 0x414 // 1044
+ SYS_T_OPEN = 0x415 // 1045
+ SYS_T_OPTMGMT = 0x416 // 1046
+ SYS_T_RCV = 0x417 // 1047
+ SYS_T_RCVCONNECT = 0x418 // 1048
+ SYS_T_RCVDIS = 0x419 // 1049
+ SYS_T_RCVREL = 0x41A // 1050
+ SYS_T_RCVUDATA = 0x41B // 1051
+ SYS_T_RCVUDERR = 0x41C // 1052
+ SYS_T_SND = 0x41D // 1053
+ SYS_T_SNDDIS = 0x41E // 1054
+ SYS_T_SNDREL = 0x41F // 1055
+ SYS_T_SNDUDATA = 0x420 // 1056
+ SYS_T_STRERROR = 0x421 // 1057
+ SYS_T_SYNC = 0x422 // 1058
+ SYS_T_UNBIND = 0x423 // 1059
+ SYS___T_ERRNO = 0x424 // 1060
+ SYS___RECVMSG2 = 0x425 // 1061
+ SYS___SENDMSG2 = 0x426 // 1062
+ SYS_FATTACH = 0x427 // 1063
+ SYS_FDETACH = 0x428 // 1064
+ SYS_GETMSG = 0x429 // 1065
+ SYS_GETPMSG = 0x42A // 1066
+ SYS_ISASTREAM = 0x42B // 1067
+ SYS_PUTMSG = 0x42C // 1068
+ SYS_PUTPMSG = 0x42D // 1069
+ SYS___ISPOSIXON = 0x42E // 1070
+ SYS___OPENMVSREL = 0x42F // 1071
+ SYS_GETCONTEXT = 0x430 // 1072
+ SYS_SETCONTEXT = 0x431 // 1073
+ SYS_MAKECONTEXT = 0x432 // 1074
+ SYS_SWAPCONTEXT = 0x433 // 1075
+ SYS_PTHREAD_GETSPECIFIC_D8_NP = 0x434 // 1076
+ SYS_GETCLIENTID = 0x470 // 1136
+ SYS___GETCLIENTID = 0x471 // 1137
+ SYS_GETSTABLESIZE = 0x472 // 1138
+ SYS_GETIBMOPT = 0x473 // 1139
+ SYS_GETIBMSOCKOPT = 0x474 // 1140
+ SYS_GIVESOCKET = 0x475 // 1141
+ SYS_IBMSFLUSH = 0x476 // 1142
+ SYS_MAXDESC = 0x477 // 1143
+ SYS_SETIBMOPT = 0x478 // 1144
+ SYS_SETIBMSOCKOPT = 0x479 // 1145
+ SYS_SOCK_DEBUG = 0x47A // 1146
+ SYS_SOCK_DO_TESTSTOR = 0x47D // 1149
+ SYS_TAKESOCKET = 0x47E // 1150
+ SYS___SERVER_INIT = 0x47F // 1151
+ SYS___SERVER_PWU = 0x480 // 1152
+ SYS_PTHREAD_TAG_NP = 0x481 // 1153
+ SYS___CONSOLE = 0x482 // 1154
+ SYS___WSINIT = 0x483 // 1155
+ SYS___IPTCPN = 0x489 // 1161
+ SYS___SMF_RECORD = 0x48A // 1162
+ SYS___IPHOST = 0x48B // 1163
+ SYS___IPNODE = 0x48C // 1164
+ SYS___SERVER_CLASSIFY_CREATE = 0x48D // 1165
+ SYS___SERVER_CLASSIFY_DESTROY = 0x48E // 1166
+ SYS___SERVER_CLASSIFY_RESET = 0x48F // 1167
+ SYS___SERVER_CLASSIFY = 0x490 // 1168
+ SYS___HEAPRPT = 0x496 // 1174
+ SYS___FNWSA = 0x49B // 1179
+ SYS___SPAWN2 = 0x49D // 1181
+ SYS___SPAWNP2 = 0x49E // 1182
+ SYS___GDRR = 0x4A1 // 1185
+ SYS___HRRNO = 0x4A2 // 1186
+ SYS___OPRG = 0x4A3 // 1187
+ SYS___OPRR = 0x4A4 // 1188
+ SYS___OPND = 0x4A5 // 1189
+ SYS___OPPT = 0x4A6 // 1190
+ SYS___SIGGM = 0x4A7 // 1191
+ SYS___DGHT = 0x4A8 // 1192
+ SYS___TZNE = 0x4A9 // 1193
+ SYS___TZZN = 0x4AA // 1194
+ SYS___TRRNO = 0x4AF // 1199
+ SYS___ENVN = 0x4B0 // 1200
+ SYS___MLOCKALL = 0x4B1 // 1201
+ SYS_CREATEWO = 0x4B2 // 1202
+ SYS_CREATEWORKUNIT = 0x4B2 // 1202
+ SYS_CONTINUE = 0x4B3 // 1203
+ SYS_CONTINUEWORKUNIT = 0x4B3 // 1203
+ SYS_CONNECTW = 0x4B4 // 1204
+ SYS_CONNECTWORKMGR = 0x4B4 // 1204
+ SYS_CONNECTS = 0x4B5 // 1205
+ SYS_CONNECTSERVER = 0x4B5 // 1205
+ SYS_DISCONNE = 0x4B6 // 1206
+ SYS_DISCONNECTSERVER = 0x4B6 // 1206
+ SYS_JOINWORK = 0x4B7 // 1207
+ SYS_JOINWORKUNIT = 0x4B7 // 1207
+ SYS_LEAVEWOR = 0x4B8 // 1208
+ SYS_LEAVEWORKUNIT = 0x4B8 // 1208
+ SYS_DELETEWO = 0x4B9 // 1209
+ SYS_DELETEWORKUNIT = 0x4B9 // 1209
+ SYS_QUERYMET = 0x4BA // 1210
+ SYS_QUERYMETRICS = 0x4BA // 1210
+ SYS_QUERYSCH = 0x4BB // 1211
+ SYS_QUERYSCHENV = 0x4BB // 1211
+ SYS_CHECKSCH = 0x4BC // 1212
+ SYS_CHECKSCHENV = 0x4BC // 1212
+ SYS___PID_AFFINITY = 0x4BD // 1213
+ SYS___ASINH_B = 0x4BE // 1214
+ SYS___ATAN_B = 0x4BF // 1215
+ SYS___CBRT_B = 0x4C0 // 1216
+ SYS___CEIL_B = 0x4C1 // 1217
+ SYS_COPYSIGN = 0x4C2 // 1218
+ SYS___COS_B = 0x4C3 // 1219
+ SYS___ERF_B = 0x4C4 // 1220
+ SYS___ERFC_B = 0x4C5 // 1221
+ SYS___EXPM1_B = 0x4C6 // 1222
+ SYS___FABS_B = 0x4C7 // 1223
+ SYS_FINITE = 0x4C8 // 1224
+ SYS___FLOOR_B = 0x4C9 // 1225
+ SYS___FREXP_B = 0x4CA // 1226
+ SYS___ILOGB_B = 0x4CB // 1227
+ SYS___ISNAN_B = 0x4CC // 1228
+ SYS___LDEXP_B = 0x4CD // 1229
+ SYS___LOG1P_B = 0x4CE // 1230
+ SYS___LOGB_B = 0x4CF // 1231
+ SYS_MATHERR = 0x4D0 // 1232
+ SYS___MODF_B = 0x4D1 // 1233
+ SYS___NEXTAFTER_B = 0x4D2 // 1234
+ SYS___RINT_B = 0x4D3 // 1235
+ SYS_SCALBN = 0x4D4 // 1236
+ SYS_SIGNIFIC = 0x4D5 // 1237
+ SYS_SIGNIFICAND = 0x4D5 // 1237
+ SYS___SIN_B = 0x4D6 // 1238
+ SYS___TAN_B = 0x4D7 // 1239
+ SYS___TANH_B = 0x4D8 // 1240
+ SYS___ACOS_B = 0x4D9 // 1241
+ SYS___ACOSH_B = 0x4DA // 1242
+ SYS___ASIN_B = 0x4DB // 1243
+ SYS___ATAN2_B = 0x4DC // 1244
+ SYS___ATANH_B = 0x4DD // 1245
+ SYS___COSH_B = 0x4DE // 1246
+ SYS___EXP_B = 0x4DF // 1247
+ SYS___FMOD_B = 0x4E0 // 1248
+ SYS___GAMMA_B = 0x4E1 // 1249
+ SYS_GAMMA_R = 0x4E2 // 1250
+ SYS___HYPOT_B = 0x4E3 // 1251
+ SYS___J0_B = 0x4E4 // 1252
+ SYS___Y0_B = 0x4E5 // 1253
+ SYS___J1_B = 0x4E6 // 1254
+ SYS___Y1_B = 0x4E7 // 1255
+ SYS___JN_B = 0x4E8 // 1256
+ SYS___YN_B = 0x4E9 // 1257
+ SYS___LGAMMA_B = 0x4EA // 1258
+ SYS_LGAMMA_R = 0x4EB // 1259
+ SYS___LOG_B = 0x4EC // 1260
+ SYS___LOG10_B = 0x4ED // 1261
+ SYS___POW_B = 0x4EE // 1262
+ SYS___REMAINDER_B = 0x4EF // 1263
+ SYS___SCALB_B = 0x4F0 // 1264
+ SYS___SINH_B = 0x4F1 // 1265
+ SYS___SQRT_B = 0x4F2 // 1266
+ SYS___OPENDIR2 = 0x4F3 // 1267
+ SYS___READDIR2 = 0x4F4 // 1268
+ SYS___LOGIN = 0x4F5 // 1269
+ SYS___OPEN_STAT = 0x4F6 // 1270
+ SYS_ACCEPT_AND_RECV = 0x4F7 // 1271
+ SYS___FP_SETMODE = 0x4F8 // 1272
+ SYS___SIGACTIONSET = 0x4FB // 1275
+ SYS___UCREATE = 0x4FC // 1276
+ SYS___UMALLOC = 0x4FD // 1277
+ SYS___UFREE = 0x4FE // 1278
+ SYS___UHEAPREPORT = 0x4FF // 1279
+ SYS___ISBFP = 0x500 // 1280
+ SYS___FP_CAST = 0x501 // 1281
+ SYS___CERTIFICATE = 0x502 // 1282
+ SYS_SEND_FILE = 0x503 // 1283
+ SYS_AIO_CANCEL = 0x504 // 1284
+ SYS_AIO_ERROR = 0x505 // 1285
+ SYS_AIO_READ = 0x506 // 1286
+ SYS_AIO_RETURN = 0x507 // 1287
+ SYS_AIO_SUSPEND = 0x508 // 1288
+ SYS_AIO_WRITE = 0x509 // 1289
+ SYS_PTHREAD_MUTEXATTR_GETPSHARED = 0x50A // 1290
+ SYS_PTHREAD_MUTEXATTR_SETPSHARED = 0x50B // 1291
+ SYS_PTHREAD_RWLOCK_DESTROY = 0x50C // 1292
+ SYS_PTHREAD_RWLOCK_INIT = 0x50D // 1293
+ SYS_PTHREAD_RWLOCK_RDLOCK = 0x50E // 1294
+ SYS_PTHREAD_RWLOCK_TRYRDLOCK = 0x50F // 1295
+ SYS_PTHREAD_RWLOCK_TRYWRLOCK = 0x510 // 1296
+ SYS_PTHREAD_RWLOCK_UNLOCK = 0x511 // 1297
+ SYS_PTHREAD_RWLOCK_WRLOCK = 0x512 // 1298
+ SYS_PTHREAD_RWLOCKATTR_GETPSHARED = 0x513 // 1299
+ SYS_PTHREAD_RWLOCKATTR_SETPSHARED = 0x514 // 1300
+ SYS_PTHREAD_RWLOCKATTR_INIT = 0x515 // 1301
+ SYS_PTHREAD_RWLOCKATTR_DESTROY = 0x516 // 1302
+ SYS___CTTBL = 0x517 // 1303
+ SYS_PTHREAD_MUTEXATTR_SETTYPE = 0x518 // 1304
+ SYS_PTHREAD_MUTEXATTR_GETTYPE = 0x519 // 1305
+ SYS___FP_CLR_FLAG = 0x51A // 1306
+ SYS___FP_READ_FLAG = 0x51B // 1307
+ SYS___FP_RAISE_XCP = 0x51C // 1308
+ SYS___FP_CLASS = 0x51D // 1309
+ SYS___FP_FINITE = 0x51E // 1310
+ SYS___FP_ISNAN = 0x51F // 1311
+ SYS___FP_UNORDERED = 0x520 // 1312
+ SYS___FP_READ_RND = 0x521 // 1313
+ SYS___FP_READ_RND_B = 0x522 // 1314
+ SYS___FP_SWAP_RND = 0x523 // 1315
+ SYS___FP_SWAP_RND_B = 0x524 // 1316
+ SYS___FP_LEVEL = 0x525 // 1317
+ SYS___FP_BTOH = 0x526 // 1318
+ SYS___FP_HTOB = 0x527 // 1319
+ SYS___FPC_RD = 0x528 // 1320
+ SYS___FPC_WR = 0x529 // 1321
+ SYS___FPC_RW = 0x52A // 1322
+ SYS___FPC_SM = 0x52B // 1323
+ SYS___FPC_RS = 0x52C // 1324
+ SYS_SIGTIMEDWAIT = 0x52D // 1325
+ SYS_SIGWAITINFO = 0x52E // 1326
+ SYS___CHKBFP = 0x52F // 1327
+ SYS___W_PIOCTL = 0x59E // 1438
+ SYS___OSENV = 0x59F // 1439
+ SYS_EXPORTWO = 0x5A1 // 1441
+ SYS_EXPORTWORKUNIT = 0x5A1 // 1441
+ SYS_UNDOEXPO = 0x5A2 // 1442
+ SYS_UNDOEXPORTWORKUNIT = 0x5A2 // 1442
+ SYS_IMPORTWO = 0x5A3 // 1443
+ SYS_IMPORTWORKUNIT = 0x5A3 // 1443
+ SYS_UNDOIMPO = 0x5A4 // 1444
+ SYS_UNDOIMPORTWORKUNIT = 0x5A4 // 1444
+ SYS_EXTRACTW = 0x5A5 // 1445
+ SYS_EXTRACTWORKUNIT = 0x5A5 // 1445
+ SYS___CPL = 0x5A6 // 1446
+ SYS___MAP_INIT = 0x5A7 // 1447
+ SYS___MAP_SERVICE = 0x5A8 // 1448
+ SYS_SIGQUEUE = 0x5A9 // 1449
+ SYS___MOUNT = 0x5AA // 1450
+ SYS___GETUSERID = 0x5AB // 1451
+ SYS___IPDOMAINNAME = 0x5AC // 1452
+ SYS_QUERYENC = 0x5AD // 1453
+ SYS_QUERYWORKUNITCLASSIFICATION = 0x5AD // 1453
+ SYS_CONNECTE = 0x5AE // 1454
+ SYS_CONNECTEXPORTIMPORT = 0x5AE // 1454
+ SYS___FP_SWAPMODE = 0x5AF // 1455
+ SYS_STRTOLL = 0x5B0 // 1456
+ SYS_STRTOULL = 0x5B1 // 1457
+ SYS___DSA_PREV = 0x5B2 // 1458
+ SYS___EP_FIND = 0x5B3 // 1459
+ SYS___SERVER_THREADS_QUERY = 0x5B4 // 1460
+ SYS___MSGRCV_TIMED = 0x5B7 // 1463
+ SYS___SEMOP_TIMED = 0x5B8 // 1464
+ SYS___GET_CPUID = 0x5B9 // 1465
+ SYS___GET_SYSTEM_SETTINGS = 0x5BA // 1466
+ SYS_FTELLO = 0x5C8 // 1480
+ SYS_FSEEKO = 0x5C9 // 1481
+ SYS_LLDIV = 0x5CB // 1483
+ SYS_WCSTOLL = 0x5CC // 1484
+ SYS_WCSTOULL = 0x5CD // 1485
+ SYS_LLABS = 0x5CE // 1486
+ SYS___CONSOLE2 = 0x5D2 // 1490
+ SYS_INET_NTOP = 0x5D3 // 1491
+ SYS_INET_PTON = 0x5D4 // 1492
+ SYS___RES = 0x5D6 // 1494
+ SYS_RES_MKQUERY = 0x5D7 // 1495
+ SYS_RES_INIT = 0x5D8 // 1496
+ SYS_RES_QUERY = 0x5D9 // 1497
+ SYS_RES_SEARCH = 0x5DA // 1498
+ SYS_RES_SEND = 0x5DB // 1499
+ SYS_RES_QUERYDOMAIN = 0x5DC // 1500
+ SYS_DN_EXPAND = 0x5DD // 1501
+ SYS_DN_SKIPNAME = 0x5DE // 1502
+ SYS_DN_COMP = 0x5DF // 1503
+ SYS_ASCTIME_R = 0x5E0 // 1504
+ SYS_CTIME_R = 0x5E1 // 1505
+ SYS_GMTIME_R = 0x5E2 // 1506
+ SYS_LOCALTIME_R = 0x5E3 // 1507
+ SYS_RAND_R = 0x5E4 // 1508
+ SYS_STRTOK_R = 0x5E5 // 1509
+ SYS_READDIR_R = 0x5E6 // 1510
+ SYS_GETGRGID_R = 0x5E7 // 1511
+ SYS_GETGRNAM_R = 0x5E8 // 1512
+ SYS_GETLOGIN_R = 0x5E9 // 1513
+ SYS_GETPWNAM_R = 0x5EA // 1514
+ SYS_GETPWUID_R = 0x5EB // 1515
+ SYS_TTYNAME_R = 0x5EC // 1516
+ SYS_PTHREAD_ATFORK = 0x5ED // 1517
+ SYS_PTHREAD_ATTR_GETGUARDSIZE = 0x5EE // 1518
+ SYS_PTHREAD_ATTR_GETSTACKADDR = 0x5EF // 1519
+ SYS_PTHREAD_ATTR_SETGUARDSIZE = 0x5F0 // 1520
+ SYS_PTHREAD_ATTR_SETSTACKADDR = 0x5F1 // 1521
+ SYS_PTHREAD_CONDATTR_GETPSHARED = 0x5F2 // 1522
+ SYS_PTHREAD_CONDATTR_SETPSHARED = 0x5F3 // 1523
+ SYS_PTHREAD_GETCONCURRENCY = 0x5F4 // 1524
+ SYS_PTHREAD_KEY_DELETE = 0x5F5 // 1525
+ SYS_PTHREAD_SETCONCURRENCY = 0x5F6 // 1526
+ SYS_PTHREAD_SIGMASK = 0x5F7 // 1527
+ SYS___DISCARDDATA = 0x5F8 // 1528
+ SYS_PTHREAD_ATTR_GETSCHEDPARAM = 0x5F9 // 1529
+ SYS_PTHREAD_ATTR_SETSCHEDPARAM = 0x5FA // 1530
+ SYS_PTHREAD_ATTR_GETDETACHSTATE_U98 = 0x5FB // 1531
+ SYS_PTHREAD_ATTR_SETDETACHSTATE_U98 = 0x5FC // 1532
+ SYS_PTHREAD_DETACH_U98 = 0x5FD // 1533
+ SYS_PTHREAD_GETSPECIFIC_U98 = 0x5FE // 1534
+ SYS_PTHREAD_SETCANCELSTATE = 0x5FF // 1535
+ SYS_PTHREAD_SETCANCELTYPE = 0x600 // 1536
+ SYS_PTHREAD_TESTCANCEL = 0x601 // 1537
+ SYS___ATANF_B = 0x602 // 1538
+ SYS___ATANL_B = 0x603 // 1539
+ SYS___CEILF_B = 0x604 // 1540
+ SYS___CEILL_B = 0x605 // 1541
+ SYS___COSF_B = 0x606 // 1542
+ SYS___COSL_B = 0x607 // 1543
+ SYS___FABSF_B = 0x608 // 1544
+ SYS___FABSL_B = 0x609 // 1545
+ SYS___FLOORF_B = 0x60A // 1546
+ SYS___FLOORL_B = 0x60B // 1547
+ SYS___FREXPF_B = 0x60C // 1548
+ SYS___FREXPL_B = 0x60D // 1549
+ SYS___LDEXPF_B = 0x60E // 1550
+ SYS___LDEXPL_B = 0x60F // 1551
+ SYS___SINF_B = 0x610 // 1552
+ SYS___SINL_B = 0x611 // 1553
+ SYS___TANF_B = 0x612 // 1554
+ SYS___TANL_B = 0x613 // 1555
+ SYS___TANHF_B = 0x614 // 1556
+ SYS___TANHL_B = 0x615 // 1557
+ SYS___ACOSF_B = 0x616 // 1558
+ SYS___ACOSL_B = 0x617 // 1559
+ SYS___ASINF_B = 0x618 // 1560
+ SYS___ASINL_B = 0x619 // 1561
+ SYS___ATAN2F_B = 0x61A // 1562
+ SYS___ATAN2L_B = 0x61B // 1563
+ SYS___COSHF_B = 0x61C // 1564
+ SYS___COSHL_B = 0x61D // 1565
+ SYS___EXPF_B = 0x61E // 1566
+ SYS___EXPL_B = 0x61F // 1567
+ SYS___LOGF_B = 0x620 // 1568
+ SYS___LOGL_B = 0x621 // 1569
+ SYS___LOG10F_B = 0x622 // 1570
+ SYS___LOG10L_B = 0x623 // 1571
+ SYS___POWF_B = 0x624 // 1572
+ SYS___POWL_B = 0x625 // 1573
+ SYS___SINHF_B = 0x626 // 1574
+ SYS___SINHL_B = 0x627 // 1575
+ SYS___SQRTF_B = 0x628 // 1576
+ SYS___SQRTL_B = 0x629 // 1577
+ SYS___ABSF_B = 0x62A // 1578
+ SYS___ABS_B = 0x62B // 1579
+ SYS___ABSL_B = 0x62C // 1580
+ SYS___FMODF_B = 0x62D // 1581
+ SYS___FMODL_B = 0x62E // 1582
+ SYS___MODFF_B = 0x62F // 1583
+ SYS___MODFL_B = 0x630 // 1584
+ SYS_ABSF = 0x631 // 1585
+ SYS_ABSL = 0x632 // 1586
+ SYS_ACOSF = 0x633 // 1587
+ SYS_ACOSL = 0x634 // 1588
+ SYS_ASINF = 0x635 // 1589
+ SYS_ASINL = 0x636 // 1590
+ SYS_ATAN2F = 0x637 // 1591
+ SYS_ATAN2L = 0x638 // 1592
+ SYS_ATANF = 0x639 // 1593
+ SYS_ATANL = 0x63A // 1594
+ SYS_CEILF = 0x63B // 1595
+ SYS_CEILL = 0x63C // 1596
+ SYS_COSF = 0x63D // 1597
+ SYS_COSL = 0x63E // 1598
+ SYS_COSHF = 0x63F // 1599
+ SYS_COSHL = 0x640 // 1600
+ SYS_EXPF = 0x641 // 1601
+ SYS_EXPL = 0x642 // 1602
+ SYS_TANHF = 0x643 // 1603
+ SYS_TANHL = 0x644 // 1604
+ SYS_LOG10F = 0x645 // 1605
+ SYS_LOG10L = 0x646 // 1606
+ SYS_LOGF = 0x647 // 1607
+ SYS_LOGL = 0x648 // 1608
+ SYS_POWF = 0x649 // 1609
+ SYS_POWL = 0x64A // 1610
+ SYS_SINF = 0x64B // 1611
+ SYS_SINL = 0x64C // 1612
+ SYS_SQRTF = 0x64D // 1613
+ SYS_SQRTL = 0x64E // 1614
+ SYS_SINHF = 0x64F // 1615
+ SYS_SINHL = 0x650 // 1616
+ SYS_TANF = 0x651 // 1617
+ SYS_TANL = 0x652 // 1618
+ SYS_FABSF = 0x653 // 1619
+ SYS_FABSL = 0x654 // 1620
+ SYS_FLOORF = 0x655 // 1621
+ SYS_FLOORL = 0x656 // 1622
+ SYS_FMODF = 0x657 // 1623
+ SYS_FMODL = 0x658 // 1624
+ SYS_FREXPF = 0x659 // 1625
+ SYS_FREXPL = 0x65A // 1626
+ SYS_LDEXPF = 0x65B // 1627
+ SYS_LDEXPL = 0x65C // 1628
+ SYS_MODFF = 0x65D // 1629
+ SYS_MODFL = 0x65E // 1630
+ SYS_BTOWC = 0x65F // 1631
+ SYS___CHATTR = 0x660 // 1632
+ SYS___FCHATTR = 0x661 // 1633
+ SYS___TOCCSID = 0x662 // 1634
+ SYS___CSNAMETYPE = 0x663 // 1635
+ SYS___TOCSNAME = 0x664 // 1636
+ SYS___CCSIDTYPE = 0x665 // 1637
+ SYS___AE_CORRESTBL_QUERY = 0x666 // 1638
+ SYS___AE_AUTOCONVERT_STATE = 0x667 // 1639
+ SYS_DN_FIND = 0x668 // 1640
+ SYS___GETHOSTBYADDR_A = 0x669 // 1641
+ SYS___GETHOSTBYNAME_A = 0x66A // 1642
+ SYS___RES_INIT_A = 0x66B // 1643
+ SYS___GETHOSTBYADDR_R_A = 0x66C // 1644
+ SYS___GETHOSTBYNAME_R_A = 0x66D // 1645
+ SYS___CHARMAP_INIT_A = 0x66E // 1646
+ SYS___MBLEN_A = 0x66F // 1647
+ SYS___MBLEN_SB_A = 0x670 // 1648
+ SYS___MBLEN_STD_A = 0x671 // 1649
+ SYS___MBLEN_UTF = 0x672 // 1650
+ SYS___MBSTOWCS_A = 0x673 // 1651
+ SYS___MBSTOWCS_STD_A = 0x674 // 1652
+ SYS___MBTOWC_A = 0x675 // 1653
+ SYS___MBTOWC_ISO1 = 0x676 // 1654
+ SYS___MBTOWC_SBCS = 0x677 // 1655
+ SYS___MBTOWC_MBCS = 0x678 // 1656
+ SYS___MBTOWC_UTF = 0x679 // 1657
+ SYS___WCSTOMBS_A = 0x67A // 1658
+ SYS___WCSTOMBS_STD_A = 0x67B // 1659
+ SYS___WCSWIDTH_A = 0x67C // 1660
+ SYS___GETGRGID_R_A = 0x67D // 1661
+ SYS___WCSWIDTH_STD_A = 0x67E // 1662
+ SYS___WCSWIDTH_ASIA = 0x67F // 1663
+ SYS___CSID_A = 0x680 // 1664
+ SYS___CSID_STD_A = 0x681 // 1665
+ SYS___WCSID_A = 0x682 // 1666
+ SYS___WCSID_STD_A = 0x683 // 1667
+ SYS___WCTOMB_A = 0x684 // 1668
+ SYS___WCTOMB_ISO1 = 0x685 // 1669
+ SYS___WCTOMB_STD_A = 0x686 // 1670
+ SYS___WCTOMB_UTF = 0x687 // 1671
+ SYS___WCWIDTH_A = 0x688 // 1672
+ SYS___GETGRNAM_R_A = 0x689 // 1673
+ SYS___WCWIDTH_STD_A = 0x68A // 1674
+ SYS___WCWIDTH_ASIA = 0x68B // 1675
+ SYS___GETPWNAM_R_A = 0x68C // 1676
+ SYS___GETPWUID_R_A = 0x68D // 1677
+ SYS___GETLOGIN_R_A = 0x68E // 1678
+ SYS___TTYNAME_R_A = 0x68F // 1679
+ SYS___READDIR_R_A = 0x690 // 1680
+ SYS___E2A_S = 0x691 // 1681
+ SYS___FNMATCH_A = 0x692 // 1682
+ SYS___FNMATCH_C_A = 0x693 // 1683
+ SYS___EXECL_A = 0x694 // 1684
+ SYS___FNMATCH_STD_A = 0x695 // 1685
+ SYS___REGCOMP_A = 0x696 // 1686
+ SYS___REGCOMP_STD_A = 0x697 // 1687
+ SYS___REGERROR_A = 0x698 // 1688
+ SYS___REGERROR_STD_A = 0x699 // 1689
+ SYS___REGEXEC_A = 0x69A // 1690
+ SYS___REGEXEC_STD_A = 0x69B // 1691
+ SYS___REGFREE_A = 0x69C // 1692
+ SYS___REGFREE_STD_A = 0x69D // 1693
+ SYS___STRCOLL_A = 0x69E // 1694
+ SYS___STRCOLL_C_A = 0x69F // 1695
+ SYS___EXECLE_A = 0x6A0 // 1696
+ SYS___STRCOLL_STD_A = 0x6A1 // 1697
+ SYS___STRXFRM_A = 0x6A2 // 1698
+ SYS___STRXFRM_C_A = 0x6A3 // 1699
+ SYS___EXECLP_A = 0x6A4 // 1700
+ SYS___STRXFRM_STD_A = 0x6A5 // 1701
+ SYS___WCSCOLL_A = 0x6A6 // 1702
+ SYS___WCSCOLL_C_A = 0x6A7 // 1703
+ SYS___WCSCOLL_STD_A = 0x6A8 // 1704
+ SYS___WCSXFRM_A = 0x6A9 // 1705
+ SYS___WCSXFRM_C_A = 0x6AA // 1706
+ SYS___WCSXFRM_STD_A = 0x6AB // 1707
+ SYS___COLLATE_INIT_A = 0x6AC // 1708
+ SYS___WCTYPE_A = 0x6AD // 1709
+ SYS___GET_WCTYPE_STD_A = 0x6AE // 1710
+ SYS___CTYPE_INIT_A = 0x6AF // 1711
+ SYS___ISWCTYPE_A = 0x6B0 // 1712
+ SYS___EXECV_A = 0x6B1 // 1713
+ SYS___IS_WCTYPE_STD_A = 0x6B2 // 1714
+ SYS___TOWLOWER_A = 0x6B3 // 1715
+ SYS___TOWLOWER_STD_A = 0x6B4 // 1716
+ SYS___TOWUPPER_A = 0x6B5 // 1717
+ SYS___TOWUPPER_STD_A = 0x6B6 // 1718
+ SYS___LOCALE_INIT_A = 0x6B7 // 1719
+ SYS___LOCALECONV_A = 0x6B8 // 1720
+ SYS___LOCALECONV_STD_A = 0x6B9 // 1721
+ SYS___NL_LANGINFO_A = 0x6BA // 1722
+ SYS___NL_LNAGINFO_STD_A = 0x6BB // 1723
+ SYS___MONETARY_INIT_A = 0x6BC // 1724
+ SYS___STRFMON_A = 0x6BD // 1725
+ SYS___STRFMON_STD_A = 0x6BE // 1726
+ SYS___GETADDRINFO_A = 0x6BF // 1727
+ SYS___CATGETS_A = 0x6C0 // 1728
+ SYS___EXECVE_A = 0x6C1 // 1729
+ SYS___EXECVP_A = 0x6C2 // 1730
+ SYS___SPAWN_A = 0x6C3 // 1731
+ SYS___GETNAMEINFO_A = 0x6C4 // 1732
+ SYS___SPAWNP_A = 0x6C5 // 1733
+ SYS___NUMERIC_INIT_A = 0x6C6 // 1734
+ SYS___RESP_INIT_A = 0x6C7 // 1735
+ SYS___RPMATCH_A = 0x6C8 // 1736
+ SYS___RPMATCH_C_A = 0x6C9 // 1737
+ SYS___RPMATCH_STD_A = 0x6CA // 1738
+ SYS___TIME_INIT_A = 0x6CB // 1739
+ SYS___STRFTIME_A = 0x6CC // 1740
+ SYS___STRFTIME_STD_A = 0x6CD // 1741
+ SYS___STRPTIME_A = 0x6CE // 1742
+ SYS___STRPTIME_STD_A = 0x6CF // 1743
+ SYS___WCSFTIME_A = 0x6D0 // 1744
+ SYS___WCSFTIME_STD_A = 0x6D1 // 1745
+ SYS_____SPAWN2_A = 0x6D2 // 1746
+ SYS_____SPAWNP2_A = 0x6D3 // 1747
+ SYS___SYNTAX_INIT_A = 0x6D4 // 1748
+ SYS___TOD_INIT_A = 0x6D5 // 1749
+ SYS___NL_CSINFO_A = 0x6D6 // 1750
+ SYS___NL_MONINFO_A = 0x6D7 // 1751
+ SYS___NL_NUMINFO_A = 0x6D8 // 1752
+ SYS___NL_RESPINFO_A = 0x6D9 // 1753
+ SYS___NL_TIMINFO_A = 0x6DA // 1754
+ SYS___IF_NAMETOINDEX_A = 0x6DB // 1755
+ SYS___IF_INDEXTONAME_A = 0x6DC // 1756
+ SYS___PRINTF_A = 0x6DD // 1757
+ SYS___ICONV_OPEN_A = 0x6DE // 1758
+ SYS___DLLLOAD_A = 0x6DF // 1759
+ SYS___DLLQUERYFN_A = 0x6E0 // 1760
+ SYS___DLLQUERYVAR_A = 0x6E1 // 1761
+ SYS_____CHATTR_A = 0x6E2 // 1762
+ SYS___E2A_L = 0x6E3 // 1763
+ SYS_____TOCCSID_A = 0x6E4 // 1764
+ SYS_____TOCSNAME_A = 0x6E5 // 1765
+ SYS_____CCSIDTYPE_A = 0x6E6 // 1766
+ SYS_____CSNAMETYPE_A = 0x6E7 // 1767
+ SYS___CHMOD_A = 0x6E8 // 1768
+ SYS___MKDIR_A = 0x6E9 // 1769
+ SYS___STAT_A = 0x6EA // 1770
+ SYS___STAT_O_A = 0x6EB // 1771
+ SYS___MKFIFO_A = 0x6EC // 1772
+ SYS_____OPEN_STAT_A = 0x6ED // 1773
+ SYS___LSTAT_A = 0x6EE // 1774
+ SYS___LSTAT_O_A = 0x6EF // 1775
+ SYS___MKNOD_A = 0x6F0 // 1776
+ SYS___MOUNT_A = 0x6F1 // 1777
+ SYS___UMOUNT_A = 0x6F2 // 1778
+ SYS___CHAUDIT_A = 0x6F4 // 1780
+ SYS___W_GETMNTENT_A = 0x6F5 // 1781
+ SYS___CREAT_A = 0x6F6 // 1782
+ SYS___OPEN_A = 0x6F7 // 1783
+ SYS___SETLOCALE_A = 0x6F9 // 1785
+ SYS___FPRINTF_A = 0x6FA // 1786
+ SYS___SPRINTF_A = 0x6FB // 1787
+ SYS___VFPRINTF_A = 0x6FC // 1788
+ SYS___VPRINTF_A = 0x6FD // 1789
+ SYS___VSPRINTF_A = 0x6FE // 1790
+ SYS___VSWPRINTF_A = 0x6FF // 1791
+ SYS___SWPRINTF_A = 0x700 // 1792
+ SYS___FSCANF_A = 0x701 // 1793
+ SYS___SCANF_A = 0x702 // 1794
+ SYS___SSCANF_A = 0x703 // 1795
+ SYS___SWSCANF_A = 0x704 // 1796
+ SYS___ATOF_A = 0x705 // 1797
+ SYS___ATOI_A = 0x706 // 1798
+ SYS___ATOL_A = 0x707 // 1799
+ SYS___STRTOD_A = 0x708 // 1800
+ SYS___STRTOL_A = 0x709 // 1801
+ SYS___STRTOUL_A = 0x70A // 1802
+ SYS_____AE_CORRESTBL_QUERY_A = 0x70B // 1803
+ SYS___A64L_A = 0x70C // 1804
+ SYS___ECVT_A = 0x70D // 1805
+ SYS___FCVT_A = 0x70E // 1806
+ SYS___GCVT_A = 0x70F // 1807
+ SYS___L64A_A = 0x710 // 1808
+ SYS___STRERROR_A = 0x711 // 1809
+ SYS___PERROR_A = 0x712 // 1810
+ SYS___FETCH_A = 0x713 // 1811
+ SYS___GETENV_A = 0x714 // 1812
+ SYS___MKSTEMP_A = 0x717 // 1815
+ SYS___PTSNAME_A = 0x718 // 1816
+ SYS___PUTENV_A = 0x719 // 1817
+ SYS___REALPATH_A = 0x71A // 1818
+ SYS___SETENV_A = 0x71B // 1819
+ SYS___SYSTEM_A = 0x71C // 1820
+ SYS___GETOPT_A = 0x71D // 1821
+ SYS___CATOPEN_A = 0x71E // 1822
+ SYS___ACCESS_A = 0x71F // 1823
+ SYS___CHDIR_A = 0x720 // 1824
+ SYS___CHOWN_A = 0x721 // 1825
+ SYS___CHROOT_A = 0x722 // 1826
+ SYS___GETCWD_A = 0x723 // 1827
+ SYS___GETWD_A = 0x724 // 1828
+ SYS___LCHOWN_A = 0x725 // 1829
+ SYS___LINK_A = 0x726 // 1830
+ SYS___PATHCONF_A = 0x727 // 1831
+ SYS___IF_NAMEINDEX_A = 0x728 // 1832
+ SYS___READLINK_A = 0x729 // 1833
+ SYS___RMDIR_A = 0x72A // 1834
+ SYS___STATVFS_A = 0x72B // 1835
+ SYS___SYMLINK_A = 0x72C // 1836
+ SYS___TRUNCATE_A = 0x72D // 1837
+ SYS___UNLINK_A = 0x72E // 1838
+ SYS___GAI_STRERROR_A = 0x72F // 1839
+ SYS___EXTLINK_NP_A = 0x730 // 1840
+ SYS___ISALNUM_A = 0x731 // 1841
+ SYS___ISALPHA_A = 0x732 // 1842
+ SYS___A2E_S = 0x733 // 1843
+ SYS___ISCNTRL_A = 0x734 // 1844
+ SYS___ISDIGIT_A = 0x735 // 1845
+ SYS___ISGRAPH_A = 0x736 // 1846
+ SYS___ISLOWER_A = 0x737 // 1847
+ SYS___ISPRINT_A = 0x738 // 1848
+ SYS___ISPUNCT_A = 0x739 // 1849
+ SYS___ISSPACE_A = 0x73A // 1850
+ SYS___ISUPPER_A = 0x73B // 1851
+ SYS___ISXDIGIT_A = 0x73C // 1852
+ SYS___TOLOWER_A = 0x73D // 1853
+ SYS___TOUPPER_A = 0x73E // 1854
+ SYS___ISWALNUM_A = 0x73F // 1855
+ SYS___ISWALPHA_A = 0x740 // 1856
+ SYS___A2E_L = 0x741 // 1857
+ SYS___ISWCNTRL_A = 0x742 // 1858
+ SYS___ISWDIGIT_A = 0x743 // 1859
+ SYS___ISWGRAPH_A = 0x744 // 1860
+ SYS___ISWLOWER_A = 0x745 // 1861
+ SYS___ISWPRINT_A = 0x746 // 1862
+ SYS___ISWPUNCT_A = 0x747 // 1863
+ SYS___ISWSPACE_A = 0x748 // 1864
+ SYS___ISWUPPER_A = 0x749 // 1865
+ SYS___ISWXDIGIT_A = 0x74A // 1866
+ SYS___CONFSTR_A = 0x74B // 1867
+ SYS___FTOK_A = 0x74C // 1868
+ SYS___MKTEMP_A = 0x74D // 1869
+ SYS___FDOPEN_A = 0x74E // 1870
+ SYS___FLDATA_A = 0x74F // 1871
+ SYS___REMOVE_A = 0x750 // 1872
+ SYS___RENAME_A = 0x751 // 1873
+ SYS___TMPNAM_A = 0x752 // 1874
+ SYS___FOPEN_A = 0x753 // 1875
+ SYS___FREOPEN_A = 0x754 // 1876
+ SYS___CUSERID_A = 0x755 // 1877
+ SYS___POPEN_A = 0x756 // 1878
+ SYS___TEMPNAM_A = 0x757 // 1879
+ SYS___FTW_A = 0x758 // 1880
+ SYS___GETGRENT_A = 0x759 // 1881
+ SYS___GETGRGID_A = 0x75A // 1882
+ SYS___GETGRNAM_A = 0x75B // 1883
+ SYS___GETGROUPSBYNAME_A = 0x75C // 1884
+ SYS___GETHOSTENT_A = 0x75D // 1885
+ SYS___GETHOSTNAME_A = 0x75E // 1886
+ SYS___GETLOGIN_A = 0x75F // 1887
+ SYS___INET_NTOP_A = 0x760 // 1888
+ SYS___GETPASS_A = 0x761 // 1889
+ SYS___GETPWENT_A = 0x762 // 1890
+ SYS___GETPWNAM_A = 0x763 // 1891
+ SYS___GETPWUID_A = 0x764 // 1892
+ SYS_____CHECK_RESOURCE_AUTH_NP_A = 0x765 // 1893
+ SYS___CHECKSCHENV_A = 0x766 // 1894
+ SYS___CONNECTSERVER_A = 0x767 // 1895
+ SYS___CONNECTWORKMGR_A = 0x768 // 1896
+ SYS_____CONSOLE_A = 0x769 // 1897
+ SYS___CREATEWORKUNIT_A = 0x76A // 1898
+ SYS___CTERMID_A = 0x76B // 1899
+ SYS___FMTMSG_A = 0x76C // 1900
+ SYS___INITGROUPS_A = 0x76D // 1901
+ SYS_____LOGIN_A = 0x76E // 1902
+ SYS___MSGRCV_A = 0x76F // 1903
+ SYS___MSGSND_A = 0x770 // 1904
+ SYS___MSGXRCV_A = 0x771 // 1905
+ SYS___NFTW_A = 0x772 // 1906
+ SYS_____PASSWD_A = 0x773 // 1907
+ SYS___PTHREAD_SECURITY_NP_A = 0x774 // 1908
+ SYS___QUERYMETRICS_A = 0x775 // 1909
+ SYS___QUERYSCHENV = 0x776 // 1910
+ SYS___READV_A = 0x777 // 1911
+ SYS_____SERVER_CLASSIFY_A = 0x778 // 1912
+ SYS_____SERVER_INIT_A = 0x779 // 1913
+ SYS_____SERVER_PWU_A = 0x77A // 1914
+ SYS___STRCASECMP_A = 0x77B // 1915
+ SYS___STRNCASECMP_A = 0x77C // 1916
+ SYS___TTYNAME_A = 0x77D // 1917
+ SYS___UNAME_A = 0x77E // 1918
+ SYS___UTIMES_A = 0x77F // 1919
+ SYS___W_GETPSENT_A = 0x780 // 1920
+ SYS___WRITEV_A = 0x781 // 1921
+ SYS___W_STATFS_A = 0x782 // 1922
+ SYS___W_STATVFS_A = 0x783 // 1923
+ SYS___FPUTC_A = 0x784 // 1924
+ SYS___PUTCHAR_A = 0x785 // 1925
+ SYS___PUTS_A = 0x786 // 1926
+ SYS___FGETS_A = 0x787 // 1927
+ SYS___GETS_A = 0x788 // 1928
+ SYS___FPUTS_A = 0x789 // 1929
+ SYS___FREAD_A = 0x78A // 1930
+ SYS___FWRITE_A = 0x78B // 1931
+ SYS___OPEN_O_A = 0x78C // 1932
+ SYS___ISASCII = 0x78D // 1933
+ SYS___CREAT_O_A = 0x78E // 1934
+ SYS___ENVNA = 0x78F // 1935
+ SYS___PUTC_A = 0x790 // 1936
+ SYS___AE_THREAD_SETMODE = 0x791 // 1937
+ SYS___AE_THREAD_SWAPMODE = 0x792 // 1938
+ SYS___GETNETBYADDR_A = 0x793 // 1939
+ SYS___GETNETBYNAME_A = 0x794 // 1940
+ SYS___GETNETENT_A = 0x795 // 1941
+ SYS___GETPROTOBYNAME_A = 0x796 // 1942
+ SYS___GETPROTOBYNUMBER_A = 0x797 // 1943
+ SYS___GETPROTOENT_A = 0x798 // 1944
+ SYS___GETSERVBYNAME_A = 0x799 // 1945
+ SYS___GETSERVBYPORT_A = 0x79A // 1946
+ SYS___GETSERVENT_A = 0x79B // 1947
+ SYS___ASCTIME_A = 0x79C // 1948
+ SYS___CTIME_A = 0x79D // 1949
+ SYS___GETDATE_A = 0x79E // 1950
+ SYS___TZSET_A = 0x79F // 1951
+ SYS___UTIME_A = 0x7A0 // 1952
+ SYS___ASCTIME_R_A = 0x7A1 // 1953
+ SYS___CTIME_R_A = 0x7A2 // 1954
+ SYS___STRTOLL_A = 0x7A3 // 1955
+ SYS___STRTOULL_A = 0x7A4 // 1956
+ SYS___FPUTWC_A = 0x7A5 // 1957
+ SYS___PUTWC_A = 0x7A6 // 1958
+ SYS___PUTWCHAR_A = 0x7A7 // 1959
+ SYS___FPUTWS_A = 0x7A8 // 1960
+ SYS___UNGETWC_A = 0x7A9 // 1961
+ SYS___FGETWC_A = 0x7AA // 1962
+ SYS___GETWC_A = 0x7AB // 1963
+ SYS___GETWCHAR_A = 0x7AC // 1964
+ SYS___FGETWS_A = 0x7AD // 1965
+ SYS___GETTIMEOFDAY_A = 0x7AE // 1966
+ SYS___GMTIME_A = 0x7AF // 1967
+ SYS___GMTIME_R_A = 0x7B0 // 1968
+ SYS___LOCALTIME_A = 0x7B1 // 1969
+ SYS___LOCALTIME_R_A = 0x7B2 // 1970
+ SYS___MKTIME_A = 0x7B3 // 1971
+ SYS___TZZNA = 0x7B4 // 1972
+ SYS_UNATEXIT = 0x7B5 // 1973
+ SYS___CEE3DMP_A = 0x7B6 // 1974
+ SYS___CDUMP_A = 0x7B7 // 1975
+ SYS___CSNAP_A = 0x7B8 // 1976
+ SYS___CTEST_A = 0x7B9 // 1977
+ SYS___CTRACE_A = 0x7BA // 1978
+ SYS___VSWPRNTF2_A = 0x7BB // 1979
+ SYS___INET_PTON_A = 0x7BC // 1980
+ SYS___SYSLOG_A = 0x7BD // 1981
+ SYS___CRYPT_A = 0x7BE // 1982
+ SYS_____OPENDIR2_A = 0x7BF // 1983
+ SYS_____READDIR2_A = 0x7C0 // 1984
+ SYS___OPENDIR_A = 0x7C2 // 1986
+ SYS___READDIR_A = 0x7C3 // 1987
+ SYS_PREAD = 0x7C7 // 1991
+ SYS_PWRITE = 0x7C8 // 1992
+ SYS_M_CREATE_LAYOUT = 0x7C9 // 1993
+ SYS_M_DESTROY_LAYOUT = 0x7CA // 1994
+ SYS_M_GETVALUES_LAYOUT = 0x7CB // 1995
+ SYS_M_SETVALUES_LAYOUT = 0x7CC // 1996
+ SYS_M_TRANSFORM_LAYOUT = 0x7CD // 1997
+ SYS_M_WTRANSFORM_LAYOUT = 0x7CE // 1998
+ SYS_FWPRINTF = 0x7D1 // 2001
+ SYS_WPRINTF = 0x7D2 // 2002
+ SYS_VFWPRINT = 0x7D3 // 2003
+ SYS_VFWPRINTF = 0x7D3 // 2003
+ SYS_VWPRINTF = 0x7D4 // 2004
+ SYS_FWSCANF = 0x7D5 // 2005
+ SYS_WSCANF = 0x7D6 // 2006
+ SYS_WCTRANS = 0x7D7 // 2007
+ SYS_TOWCTRAN = 0x7D8 // 2008
+ SYS_TOWCTRANS = 0x7D8 // 2008
+ SYS___WCSTOD_A = 0x7D9 // 2009
+ SYS___WCSTOL_A = 0x7DA // 2010
+ SYS___WCSTOUL_A = 0x7DB // 2011
+ SYS___BASENAME_A = 0x7DC // 2012
+ SYS___DIRNAME_A = 0x7DD // 2013
+ SYS___GLOB_A = 0x7DE // 2014
+ SYS_FWIDE = 0x7DF // 2015
+ SYS___OSNAME = 0x7E0 // 2016
+ SYS_____OSNAME_A = 0x7E1 // 2017
+ SYS___BTOWC_A = 0x7E4 // 2020
+ SYS___WCTOB_A = 0x7E5 // 2021
+ SYS___DBM_OPEN_A = 0x7E6 // 2022
+ SYS___VFPRINTF2_A = 0x7E7 // 2023
+ SYS___VPRINTF2_A = 0x7E8 // 2024
+ SYS___VSPRINTF2_A = 0x7E9 // 2025
+ SYS___CEIL_H = 0x7EA // 2026
+ SYS___FLOOR_H = 0x7EB // 2027
+ SYS___MODF_H = 0x7EC // 2028
+ SYS___FABS_H = 0x7ED // 2029
+ SYS___J0_H = 0x7EE // 2030
+ SYS___J1_H = 0x7EF // 2031
+ SYS___JN_H = 0x7F0 // 2032
+ SYS___Y0_H = 0x7F1 // 2033
+ SYS___Y1_H = 0x7F2 // 2034
+ SYS___YN_H = 0x7F3 // 2035
+ SYS___CEILF_H = 0x7F4 // 2036
+ SYS___CEILL_H = 0x7F5 // 2037
+ SYS___FLOORF_H = 0x7F6 // 2038
+ SYS___FLOORL_H = 0x7F7 // 2039
+ SYS___MODFF_H = 0x7F8 // 2040
+ SYS___MODFL_H = 0x7F9 // 2041
+ SYS___FABSF_H = 0x7FA // 2042
+ SYS___FABSL_H = 0x7FB // 2043
+ SYS___MALLOC24 = 0x7FC // 2044
+ SYS___MALLOC31 = 0x7FD // 2045
+ SYS_ACL_INIT = 0x7FE // 2046
+ SYS_ACL_FREE = 0x7FF // 2047
+ SYS_ACL_FIRST_ENTRY = 0x800 // 2048
+ SYS_ACL_GET_ENTRY = 0x801 // 2049
+ SYS_ACL_VALID = 0x802 // 2050
+ SYS_ACL_CREATE_ENTRY = 0x803 // 2051
+ SYS_ACL_DELETE_ENTRY = 0x804 // 2052
+ SYS_ACL_UPDATE_ENTRY = 0x805 // 2053
+ SYS_ACL_DELETE_FD = 0x806 // 2054
+ SYS_ACL_DELETE_FILE = 0x807 // 2055
+ SYS_ACL_GET_FD = 0x808 // 2056
+ SYS_ACL_GET_FILE = 0x809 // 2057
+ SYS_ACL_SET_FD = 0x80A // 2058
+ SYS_ACL_SET_FILE = 0x80B // 2059
+ SYS_ACL_FROM_TEXT = 0x80C // 2060
+ SYS_ACL_TO_TEXT = 0x80D // 2061
+ SYS_ACL_SORT = 0x80E // 2062
+ SYS___SHUTDOWN_REGISTRATION = 0x80F // 2063
+ SYS___ERFL_B = 0x810 // 2064
+ SYS___ERFCL_B = 0x811 // 2065
+ SYS___LGAMMAL_B = 0x812 // 2066
+ SYS___SETHOOKEVENTS = 0x813 // 2067
+ SYS_IF_NAMETOINDEX = 0x814 // 2068
+ SYS_IF_INDEXTONAME = 0x815 // 2069
+ SYS_IF_NAMEINDEX = 0x816 // 2070
+ SYS_IF_FREENAMEINDEX = 0x817 // 2071
+ SYS_GETADDRINFO = 0x818 // 2072
+ SYS_GETNAMEINFO = 0x819 // 2073
+ SYS_FREEADDRINFO = 0x81A // 2074
+ SYS_GAI_STRERROR = 0x81B // 2075
+ SYS_REXEC_AF = 0x81C // 2076
+ SYS___POE = 0x81D // 2077
+ SYS___DYNALLOC_A = 0x81F // 2079
+ SYS___DYNFREE_A = 0x820 // 2080
+ SYS___RES_QUERY_A = 0x821 // 2081
+ SYS___RES_SEARCH_A = 0x822 // 2082
+ SYS___RES_QUERYDOMAIN_A = 0x823 // 2083
+ SYS___RES_MKQUERY_A = 0x824 // 2084
+ SYS___RES_SEND_A = 0x825 // 2085
+ SYS___DN_EXPAND_A = 0x826 // 2086
+ SYS___DN_SKIPNAME_A = 0x827 // 2087
+ SYS___DN_COMP_A = 0x828 // 2088
+ SYS___DN_FIND_A = 0x829 // 2089
+ SYS___NLIST_A = 0x82A // 2090
+ SYS_____TCGETCP_A = 0x82B // 2091
+ SYS_____TCSETCP_A = 0x82C // 2092
+ SYS_____W_PIOCTL_A = 0x82E // 2094
+ SYS___INET_ADDR_A = 0x82F // 2095
+ SYS___INET_NTOA_A = 0x830 // 2096
+ SYS___INET_NETWORK_A = 0x831 // 2097
+ SYS___ACCEPT_A = 0x832 // 2098
+ SYS___ACCEPT_AND_RECV_A = 0x833 // 2099
+ SYS___BIND_A = 0x834 // 2100
+ SYS___CONNECT_A = 0x835 // 2101
+ SYS___GETPEERNAME_A = 0x836 // 2102
+ SYS___GETSOCKNAME_A = 0x837 // 2103
+ SYS___RECVFROM_A = 0x838 // 2104
+ SYS___SENDTO_A = 0x839 // 2105
+ SYS___SENDMSG_A = 0x83A // 2106
+ SYS___RECVMSG_A = 0x83B // 2107
+ SYS_____LCHATTR_A = 0x83C // 2108
+ SYS___CABEND = 0x83D // 2109
+ SYS___LE_CIB_GET = 0x83E // 2110
+ SYS___SET_LAA_FOR_JIT = 0x83F // 2111
+ SYS___LCHATTR = 0x840 // 2112
+ SYS___WRITEDOWN = 0x841 // 2113
+ SYS_PTHREAD_MUTEX_INIT2 = 0x842 // 2114
+ SYS___ACOSHF_B = 0x843 // 2115
+ SYS___ACOSHL_B = 0x844 // 2116
+ SYS___ASINHF_B = 0x845 // 2117
+ SYS___ASINHL_B = 0x846 // 2118
+ SYS___ATANHF_B = 0x847 // 2119
+ SYS___ATANHL_B = 0x848 // 2120
+ SYS___CBRTF_B = 0x849 // 2121
+ SYS___CBRTL_B = 0x84A // 2122
+ SYS___COPYSIGNF_B = 0x84B // 2123
+ SYS___COPYSIGNL_B = 0x84C // 2124
+ SYS___COTANF_B = 0x84D // 2125
+ SYS___COTAN_B = 0x84E // 2126
+ SYS___COTANL_B = 0x84F // 2127
+ SYS___EXP2F_B = 0x850 // 2128
+ SYS___EXP2L_B = 0x851 // 2129
+ SYS___EXPM1F_B = 0x852 // 2130
+ SYS___EXPM1L_B = 0x853 // 2131
+ SYS___FDIMF_B = 0x854 // 2132
+ SYS___FDIM_B = 0x855 // 2133
+ SYS___FDIML_B = 0x856 // 2134
+ SYS___HYPOTF_B = 0x857 // 2135
+ SYS___HYPOTL_B = 0x858 // 2136
+ SYS___LOG1PF_B = 0x859 // 2137
+ SYS___LOG1PL_B = 0x85A // 2138
+ SYS___LOG2F_B = 0x85B // 2139
+ SYS___LOG2_B = 0x85C // 2140
+ SYS___LOG2L_B = 0x85D // 2141
+ SYS___REMAINDERF_B = 0x85E // 2142
+ SYS___REMAINDERL_B = 0x85F // 2143
+ SYS___REMQUOF_B = 0x860 // 2144
+ SYS___REMQUO_B = 0x861 // 2145
+ SYS___REMQUOL_B = 0x862 // 2146
+ SYS___TGAMMAF_B = 0x863 // 2147
+ SYS___TGAMMA_B = 0x864 // 2148
+ SYS___TGAMMAL_B = 0x865 // 2149
+ SYS___TRUNCF_B = 0x866 // 2150
+ SYS___TRUNC_B = 0x867 // 2151
+ SYS___TRUNCL_B = 0x868 // 2152
+ SYS___LGAMMAF_B = 0x869 // 2153
+ SYS___LROUNDF_B = 0x86A // 2154
+ SYS___LROUND_B = 0x86B // 2155
+ SYS___ERFF_B = 0x86C // 2156
+ SYS___ERFCF_B = 0x86D // 2157
+ SYS_ACOSHF = 0x86E // 2158
+ SYS_ACOSHL = 0x86F // 2159
+ SYS_ASINHF = 0x870 // 2160
+ SYS_ASINHL = 0x871 // 2161
+ SYS_ATANHF = 0x872 // 2162
+ SYS_ATANHL = 0x873 // 2163
+ SYS_CBRTF = 0x874 // 2164
+ SYS_CBRTL = 0x875 // 2165
+ SYS_COPYSIGNF = 0x876 // 2166
+ SYS_CPYSIGNF = 0x876 // 2166
+ SYS_COPYSIGNL = 0x877 // 2167
+ SYS_CPYSIGNL = 0x877 // 2167
+ SYS_COTANF = 0x878 // 2168
+ SYS___COTANF = 0x878 // 2168
+ SYS_COTAN = 0x879 // 2169
+ SYS___COTAN = 0x879 // 2169
+ SYS_COTANL = 0x87A // 2170
+ SYS___COTANL = 0x87A // 2170
+ SYS_EXP2F = 0x87B // 2171
+ SYS_EXP2L = 0x87C // 2172
+ SYS_EXPM1F = 0x87D // 2173
+ SYS_EXPM1L = 0x87E // 2174
+ SYS_FDIMF = 0x87F // 2175
+ SYS_FDIM = 0x881 // 2177
+ SYS_FDIML = 0x882 // 2178
+ SYS_HYPOTF = 0x883 // 2179
+ SYS_HYPOTL = 0x884 // 2180
+ SYS_LOG1PF = 0x885 // 2181
+ SYS_LOG1PL = 0x886 // 2182
+ SYS_LOG2F = 0x887 // 2183
+ SYS_LOG2 = 0x888 // 2184
+ SYS_LOG2L = 0x889 // 2185
+ SYS_REMAINDERF = 0x88A // 2186
+ SYS_REMAINDF = 0x88A // 2186
+ SYS_REMAINDERL = 0x88B // 2187
+ SYS_REMAINDL = 0x88B // 2187
+ SYS_REMQUOF = 0x88C // 2188
+ SYS_REMQUO = 0x88D // 2189
+ SYS_REMQUOL = 0x88E // 2190
+ SYS_TGAMMAF = 0x88F // 2191
+ SYS_TGAMMA = 0x890 // 2192
+ SYS_TGAMMAL = 0x891 // 2193
+ SYS_TRUNCF = 0x892 // 2194
+ SYS_TRUNC = 0x893 // 2195
+ SYS_TRUNCL = 0x894 // 2196
+ SYS_LGAMMAF = 0x895 // 2197
+ SYS_LGAMMAL = 0x896 // 2198
+ SYS_LROUNDF = 0x897 // 2199
+ SYS_LROUND = 0x898 // 2200
+ SYS_ERFF = 0x899 // 2201
+ SYS_ERFL = 0x89A // 2202
+ SYS_ERFCF = 0x89B // 2203
+ SYS_ERFCL = 0x89C // 2204
+ SYS___EXP2_B = 0x89D // 2205
+ SYS_EXP2 = 0x89E // 2206
+ SYS___FAR_JUMP = 0x89F // 2207
+ SYS___TCGETATTR_A = 0x8A1 // 2209
+ SYS___TCSETATTR_A = 0x8A2 // 2210
+ SYS___SUPERKILL = 0x8A4 // 2212
+ SYS___LE_CONDITION_TOKEN_BUILD = 0x8A5 // 2213
+ SYS___LE_MSG_ADD_INSERT = 0x8A6 // 2214
+ SYS___LE_MSG_GET = 0x8A7 // 2215
+ SYS___LE_MSG_GET_AND_WRITE = 0x8A8 // 2216
+ SYS___LE_MSG_WRITE = 0x8A9 // 2217
+ SYS___ITOA = 0x8AA // 2218
+ SYS___UTOA = 0x8AB // 2219
+ SYS___LTOA = 0x8AC // 2220
+ SYS___ULTOA = 0x8AD // 2221
+ SYS___LLTOA = 0x8AE // 2222
+ SYS___ULLTOA = 0x8AF // 2223
+ SYS___ITOA_A = 0x8B0 // 2224
+ SYS___UTOA_A = 0x8B1 // 2225
+ SYS___LTOA_A = 0x8B2 // 2226
+ SYS___ULTOA_A = 0x8B3 // 2227
+ SYS___LLTOA_A = 0x8B4 // 2228
+ SYS___ULLTOA_A = 0x8B5 // 2229
+ SYS_____GETENV_A = 0x8C3 // 2243
+ SYS___REXEC_A = 0x8C4 // 2244
+ SYS___REXEC_AF_A = 0x8C5 // 2245
+ SYS___GETUTXENT_A = 0x8C6 // 2246
+ SYS___GETUTXID_A = 0x8C7 // 2247
+ SYS___GETUTXLINE_A = 0x8C8 // 2248
+ SYS___PUTUTXLINE_A = 0x8C9 // 2249
+ SYS_____UTMPXNAME_A = 0x8CA // 2250
+ SYS___PUTC_UNLOCKED_A = 0x8CB // 2251
+ SYS___PUTCHAR_UNLOCKED_A = 0x8CC // 2252
+ SYS___SNPRINTF_A = 0x8CD // 2253
+ SYS___VSNPRINTF_A = 0x8CE // 2254
+ SYS___DLOPEN_A = 0x8D0 // 2256
+ SYS___DLSYM_A = 0x8D1 // 2257
+ SYS___DLERROR_A = 0x8D2 // 2258
+ SYS_FLOCKFILE = 0x8D3 // 2259
+ SYS_FTRYLOCKFILE = 0x8D4 // 2260
+ SYS_FUNLOCKFILE = 0x8D5 // 2261
+ SYS_GETC_UNLOCKED = 0x8D6 // 2262
+ SYS_GETCHAR_UNLOCKED = 0x8D7 // 2263
+ SYS_PUTC_UNLOCKED = 0x8D8 // 2264
+ SYS_PUTCHAR_UNLOCKED = 0x8D9 // 2265
+ SYS_SNPRINTF = 0x8DA // 2266
+ SYS_VSNPRINTF = 0x8DB // 2267
+ SYS_DLOPEN = 0x8DD // 2269
+ SYS_DLSYM = 0x8DE // 2270
+ SYS_DLCLOSE = 0x8DF // 2271
+ SYS_DLERROR = 0x8E0 // 2272
+ SYS___SET_EXCEPTION_HANDLER = 0x8E2 // 2274
+ SYS___RESET_EXCEPTION_HANDLER = 0x8E3 // 2275
+ SYS___VHM_EVENT = 0x8E4 // 2276
+ SYS___ABS_H = 0x8E6 // 2278
+ SYS___ABSF_H = 0x8E7 // 2279
+ SYS___ABSL_H = 0x8E8 // 2280
+ SYS___ACOS_H = 0x8E9 // 2281
+ SYS___ACOSF_H = 0x8EA // 2282
+ SYS___ACOSL_H = 0x8EB // 2283
+ SYS___ACOSH_H = 0x8EC // 2284
+ SYS___ASIN_H = 0x8ED // 2285
+ SYS___ASINF_H = 0x8EE // 2286
+ SYS___ASINL_H = 0x8EF // 2287
+ SYS___ASINH_H = 0x8F0 // 2288
+ SYS___ATAN_H = 0x8F1 // 2289
+ SYS___ATANF_H = 0x8F2 // 2290
+ SYS___ATANL_H = 0x8F3 // 2291
+ SYS___ATANH_H = 0x8F4 // 2292
+ SYS___ATANHF_H = 0x8F5 // 2293
+ SYS___ATANHL_H = 0x8F6 // 2294
+ SYS___ATAN2_H = 0x8F7 // 2295
+ SYS___ATAN2F_H = 0x8F8 // 2296
+ SYS___ATAN2L_H = 0x8F9 // 2297
+ SYS___CBRT_H = 0x8FA // 2298
+ SYS___COPYSIGNF_H = 0x8FB // 2299
+ SYS___COPYSIGNL_H = 0x8FC // 2300
+ SYS___COS_H = 0x8FD // 2301
+ SYS___COSF_H = 0x8FE // 2302
+ SYS___COSL_H = 0x8FF // 2303
+ SYS___COSHF_H = 0x900 // 2304
+ SYS___COSHL_H = 0x901 // 2305
+ SYS___COTAN_H = 0x902 // 2306
+ SYS___COTANF_H = 0x903 // 2307
+ SYS___COTANL_H = 0x904 // 2308
+ SYS___ERF_H = 0x905 // 2309
+ SYS___ERFF_H = 0x906 // 2310
+ SYS___ERFL_H = 0x907 // 2311
+ SYS___ERFC_H = 0x908 // 2312
+ SYS___ERFCF_H = 0x909 // 2313
+ SYS___ERFCL_H = 0x90A // 2314
+ SYS___EXP_H = 0x90B // 2315
+ SYS___EXPF_H = 0x90C // 2316
+ SYS___EXPL_H = 0x90D // 2317
+ SYS___EXPM1_H = 0x90E // 2318
+ SYS___FDIM_H = 0x90F // 2319
+ SYS___FDIMF_H = 0x910 // 2320
+ SYS___FDIML_H = 0x911 // 2321
+ SYS___FMOD_H = 0x912 // 2322
+ SYS___FMODF_H = 0x913 // 2323
+ SYS___FMODL_H = 0x914 // 2324
+ SYS___GAMMA_H = 0x915 // 2325
+ SYS___HYPOT_H = 0x916 // 2326
+ SYS___ILOGB_H = 0x917 // 2327
+ SYS___LGAMMA_H = 0x918 // 2328
+ SYS___LGAMMAF_H = 0x919 // 2329
+ SYS___LOG_H = 0x91A // 2330
+ SYS___LOGF_H = 0x91B // 2331
+ SYS___LOGL_H = 0x91C // 2332
+ SYS___LOGB_H = 0x91D // 2333
+ SYS___LOG2_H = 0x91E // 2334
+ SYS___LOG2F_H = 0x91F // 2335
+ SYS___LOG2L_H = 0x920 // 2336
+ SYS___LOG1P_H = 0x921 // 2337
+ SYS___LOG10_H = 0x922 // 2338
+ SYS___LOG10F_H = 0x923 // 2339
+ SYS___LOG10L_H = 0x924 // 2340
+ SYS___LROUND_H = 0x925 // 2341
+ SYS___LROUNDF_H = 0x926 // 2342
+ SYS___NEXTAFTER_H = 0x927 // 2343
+ SYS___POW_H = 0x928 // 2344
+ SYS___POWF_H = 0x929 // 2345
+ SYS___POWL_H = 0x92A // 2346
+ SYS___REMAINDER_H = 0x92B // 2347
+ SYS___RINT_H = 0x92C // 2348
+ SYS___SCALB_H = 0x92D // 2349
+ SYS___SIN_H = 0x92E // 2350
+ SYS___SINF_H = 0x92F // 2351
+ SYS___SINL_H = 0x930 // 2352
+ SYS___SINH_H = 0x931 // 2353
+ SYS___SINHF_H = 0x932 // 2354
+ SYS___SINHL_H = 0x933 // 2355
+ SYS___SQRT_H = 0x934 // 2356
+ SYS___SQRTF_H = 0x935 // 2357
+ SYS___SQRTL_H = 0x936 // 2358
+ SYS___TAN_H = 0x937 // 2359
+ SYS___TANF_H = 0x938 // 2360
+ SYS___TANL_H = 0x939 // 2361
+ SYS___TANH_H = 0x93A // 2362
+ SYS___TANHF_H = 0x93B // 2363
+ SYS___TANHL_H = 0x93C // 2364
+ SYS___TGAMMA_H = 0x93D // 2365
+ SYS___TGAMMAF_H = 0x93E // 2366
+ SYS___TRUNC_H = 0x93F // 2367
+ SYS___TRUNCF_H = 0x940 // 2368
+ SYS___TRUNCL_H = 0x941 // 2369
+ SYS___COSH_H = 0x942 // 2370
+ SYS___LE_DEBUG_SET_RESUME_MCH = 0x943 // 2371
+ SYS_VFSCANF = 0x944 // 2372
+ SYS_VSCANF = 0x946 // 2374
+ SYS_VSSCANF = 0x948 // 2376
+ SYS_VFWSCANF = 0x94A // 2378
+ SYS_VWSCANF = 0x94C // 2380
+ SYS_VSWSCANF = 0x94E // 2382
+ SYS_IMAXABS = 0x950 // 2384
+ SYS_IMAXDIV = 0x951 // 2385
+ SYS_STRTOIMAX = 0x952 // 2386
+ SYS_STRTOUMAX = 0x953 // 2387
+ SYS_WCSTOIMAX = 0x954 // 2388
+ SYS_WCSTOUMAX = 0x955 // 2389
+ SYS_ATOLL = 0x956 // 2390
+ SYS_STRTOF = 0x957 // 2391
+ SYS_STRTOLD = 0x958 // 2392
+ SYS_WCSTOF = 0x959 // 2393
+ SYS_WCSTOLD = 0x95A // 2394
+ SYS_INET6_RTH_SPACE = 0x95B // 2395
+ SYS_INET6_RTH_INIT = 0x95C // 2396
+ SYS_INET6_RTH_ADD = 0x95D // 2397
+ SYS_INET6_RTH_REVERSE = 0x95E // 2398
+ SYS_INET6_RTH_SEGMENTS = 0x95F // 2399
+ SYS_INET6_RTH_GETADDR = 0x960 // 2400
+ SYS_INET6_OPT_INIT = 0x961 // 2401
+ SYS_INET6_OPT_APPEND = 0x962 // 2402
+ SYS_INET6_OPT_FINISH = 0x963 // 2403
+ SYS_INET6_OPT_SET_VAL = 0x964 // 2404
+ SYS_INET6_OPT_NEXT = 0x965 // 2405
+ SYS_INET6_OPT_FIND = 0x966 // 2406
+ SYS_INET6_OPT_GET_VAL = 0x967 // 2407
+ SYS___POW_I = 0x987 // 2439
+ SYS___POW_I_B = 0x988 // 2440
+ SYS___POW_I_H = 0x989 // 2441
+ SYS___POW_II = 0x98A // 2442
+ SYS___POW_II_B = 0x98B // 2443
+ SYS___POW_II_H = 0x98C // 2444
+ SYS_CABS = 0x98E // 2446
+ SYS___CABS_B = 0x98F // 2447
+ SYS___CABS_H = 0x990 // 2448
+ SYS_CABSF = 0x991 // 2449
+ SYS___CABSF_B = 0x992 // 2450
+ SYS___CABSF_H = 0x993 // 2451
+ SYS_CABSL = 0x994 // 2452
+ SYS___CABSL_B = 0x995 // 2453
+ SYS___CABSL_H = 0x996 // 2454
+ SYS_CACOS = 0x997 // 2455
+ SYS___CACOS_B = 0x998 // 2456
+ SYS___CACOS_H = 0x999 // 2457
+ SYS_CACOSF = 0x99A // 2458
+ SYS___CACOSF_B = 0x99B // 2459
+ SYS___CACOSF_H = 0x99C // 2460
+ SYS_CACOSL = 0x99D // 2461
+ SYS___CACOSL_B = 0x99E // 2462
+ SYS___CACOSL_H = 0x99F // 2463
+ SYS_CACOSH = 0x9A0 // 2464
+ SYS___CACOSH_B = 0x9A1 // 2465
+ SYS___CACOSH_H = 0x9A2 // 2466
+ SYS_CACOSHF = 0x9A3 // 2467
+ SYS___CACOSHF_B = 0x9A4 // 2468
+ SYS___CACOSHF_H = 0x9A5 // 2469
+ SYS_CACOSHL = 0x9A6 // 2470
+ SYS___CACOSHL_B = 0x9A7 // 2471
+ SYS___CACOSHL_H = 0x9A8 // 2472
+ SYS_CARG = 0x9A9 // 2473
+ SYS___CARG_B = 0x9AA // 2474
+ SYS___CARG_H = 0x9AB // 2475
+ SYS_CARGF = 0x9AC // 2476
+ SYS___CARGF_B = 0x9AD // 2477
+ SYS___CARGF_H = 0x9AE // 2478
+ SYS_CARGL = 0x9AF // 2479
+ SYS___CARGL_B = 0x9B0 // 2480
+ SYS___CARGL_H = 0x9B1 // 2481
+ SYS_CASIN = 0x9B2 // 2482
+ SYS___CASIN_B = 0x9B3 // 2483
+ SYS___CASIN_H = 0x9B4 // 2484
+ SYS_CASINF = 0x9B5 // 2485
+ SYS___CASINF_B = 0x9B6 // 2486
+ SYS___CASINF_H = 0x9B7 // 2487
+ SYS_CASINL = 0x9B8 // 2488
+ SYS___CASINL_B = 0x9B9 // 2489
+ SYS___CASINL_H = 0x9BA // 2490
+ SYS_CASINH = 0x9BB // 2491
+ SYS___CASINH_B = 0x9BC // 2492
+ SYS___CASINH_H = 0x9BD // 2493
+ SYS_CASINHF = 0x9BE // 2494
+ SYS___CASINHF_B = 0x9BF // 2495
+ SYS___CASINHF_H = 0x9C0 // 2496
+ SYS_CASINHL = 0x9C1 // 2497
+ SYS___CASINHL_B = 0x9C2 // 2498
+ SYS___CASINHL_H = 0x9C3 // 2499
+ SYS_CATAN = 0x9C4 // 2500
+ SYS___CATAN_B = 0x9C5 // 2501
+ SYS___CATAN_H = 0x9C6 // 2502
+ SYS_CATANF = 0x9C7 // 2503
+ SYS___CATANF_B = 0x9C8 // 2504
+ SYS___CATANF_H = 0x9C9 // 2505
+ SYS_CATANL = 0x9CA // 2506
+ SYS___CATANL_B = 0x9CB // 2507
+ SYS___CATANL_H = 0x9CC // 2508
+ SYS_CATANH = 0x9CD // 2509
+ SYS___CATANH_B = 0x9CE // 2510
+ SYS___CATANH_H = 0x9CF // 2511
+ SYS_CATANHF = 0x9D0 // 2512
+ SYS___CATANHF_B = 0x9D1 // 2513
+ SYS___CATANHF_H = 0x9D2 // 2514
+ SYS_CATANHL = 0x9D3 // 2515
+ SYS___CATANHL_B = 0x9D4 // 2516
+ SYS___CATANHL_H = 0x9D5 // 2517
+ SYS_CCOS = 0x9D6 // 2518
+ SYS___CCOS_B = 0x9D7 // 2519
+ SYS___CCOS_H = 0x9D8 // 2520
+ SYS_CCOSF = 0x9D9 // 2521
+ SYS___CCOSF_B = 0x9DA // 2522
+ SYS___CCOSF_H = 0x9DB // 2523
+ SYS_CCOSL = 0x9DC // 2524
+ SYS___CCOSL_B = 0x9DD // 2525
+ SYS___CCOSL_H = 0x9DE // 2526
+ SYS_CCOSH = 0x9DF // 2527
+ SYS___CCOSH_B = 0x9E0 // 2528
+ SYS___CCOSH_H = 0x9E1 // 2529
+ SYS_CCOSHF = 0x9E2 // 2530
+ SYS___CCOSHF_B = 0x9E3 // 2531
+ SYS___CCOSHF_H = 0x9E4 // 2532
+ SYS_CCOSHL = 0x9E5 // 2533
+ SYS___CCOSHL_B = 0x9E6 // 2534
+ SYS___CCOSHL_H = 0x9E7 // 2535
+ SYS_CEXP = 0x9E8 // 2536
+ SYS___CEXP_B = 0x9E9 // 2537
+ SYS___CEXP_H = 0x9EA // 2538
+ SYS_CEXPF = 0x9EB // 2539
+ SYS___CEXPF_B = 0x9EC // 2540
+ SYS___CEXPF_H = 0x9ED // 2541
+ SYS_CEXPL = 0x9EE // 2542
+ SYS___CEXPL_B = 0x9EF // 2543
+ SYS___CEXPL_H = 0x9F0 // 2544
+ SYS_CIMAG = 0x9F1 // 2545
+ SYS___CIMAG_B = 0x9F2 // 2546
+ SYS___CIMAG_H = 0x9F3 // 2547
+ SYS_CIMAGF = 0x9F4 // 2548
+ SYS___CIMAGF_B = 0x9F5 // 2549
+ SYS___CIMAGF_H = 0x9F6 // 2550
+ SYS_CIMAGL = 0x9F7 // 2551
+ SYS___CIMAGL_B = 0x9F8 // 2552
+ SYS___CIMAGL_H = 0x9F9 // 2553
+ SYS___CLOG = 0x9FA // 2554
+ SYS___CLOG_B = 0x9FB // 2555
+ SYS___CLOG_H = 0x9FC // 2556
+ SYS_CLOGF = 0x9FD // 2557
+ SYS___CLOGF_B = 0x9FE // 2558
+ SYS___CLOGF_H = 0x9FF // 2559
+ SYS_CLOGL = 0xA00 // 2560
+ SYS___CLOGL_B = 0xA01 // 2561
+ SYS___CLOGL_H = 0xA02 // 2562
+ SYS_CONJ = 0xA03 // 2563
+ SYS___CONJ_B = 0xA04 // 2564
+ SYS___CONJ_H = 0xA05 // 2565
+ SYS_CONJF = 0xA06 // 2566
+ SYS___CONJF_B = 0xA07 // 2567
+ SYS___CONJF_H = 0xA08 // 2568
+ SYS_CONJL = 0xA09 // 2569
+ SYS___CONJL_B = 0xA0A // 2570
+ SYS___CONJL_H = 0xA0B // 2571
+ SYS_CPOW = 0xA0C // 2572
+ SYS___CPOW_B = 0xA0D // 2573
+ SYS___CPOW_H = 0xA0E // 2574
+ SYS_CPOWF = 0xA0F // 2575
+ SYS___CPOWF_B = 0xA10 // 2576
+ SYS___CPOWF_H = 0xA11 // 2577
+ SYS_CPOWL = 0xA12 // 2578
+ SYS___CPOWL_B = 0xA13 // 2579
+ SYS___CPOWL_H = 0xA14 // 2580
+ SYS_CPROJ = 0xA15 // 2581
+ SYS___CPROJ_B = 0xA16 // 2582
+ SYS___CPROJ_H = 0xA17 // 2583
+ SYS_CPROJF = 0xA18 // 2584
+ SYS___CPROJF_B = 0xA19 // 2585
+ SYS___CPROJF_H = 0xA1A // 2586
+ SYS_CPROJL = 0xA1B // 2587
+ SYS___CPROJL_B = 0xA1C // 2588
+ SYS___CPROJL_H = 0xA1D // 2589
+ SYS_CREAL = 0xA1E // 2590
+ SYS___CREAL_B = 0xA1F // 2591
+ SYS___CREAL_H = 0xA20 // 2592
+ SYS_CREALF = 0xA21 // 2593
+ SYS___CREALF_B = 0xA22 // 2594
+ SYS___CREALF_H = 0xA23 // 2595
+ SYS_CREALL = 0xA24 // 2596
+ SYS___CREALL_B = 0xA25 // 2597
+ SYS___CREALL_H = 0xA26 // 2598
+ SYS_CSIN = 0xA27 // 2599
+ SYS___CSIN_B = 0xA28 // 2600
+ SYS___CSIN_H = 0xA29 // 2601
+ SYS_CSINF = 0xA2A // 2602
+ SYS___CSINF_B = 0xA2B // 2603
+ SYS___CSINF_H = 0xA2C // 2604
+ SYS_CSINL = 0xA2D // 2605
+ SYS___CSINL_B = 0xA2E // 2606
+ SYS___CSINL_H = 0xA2F // 2607
+ SYS_CSINH = 0xA30 // 2608
+ SYS___CSINH_B = 0xA31 // 2609
+ SYS___CSINH_H = 0xA32 // 2610
+ SYS_CSINHF = 0xA33 // 2611
+ SYS___CSINHF_B = 0xA34 // 2612
+ SYS___CSINHF_H = 0xA35 // 2613
+ SYS_CSINHL = 0xA36 // 2614
+ SYS___CSINHL_B = 0xA37 // 2615
+ SYS___CSINHL_H = 0xA38 // 2616
+ SYS_CSQRT = 0xA39 // 2617
+ SYS___CSQRT_B = 0xA3A // 2618
+ SYS___CSQRT_H = 0xA3B // 2619
+ SYS_CSQRTF = 0xA3C // 2620
+ SYS___CSQRTF_B = 0xA3D // 2621
+ SYS___CSQRTF_H = 0xA3E // 2622
+ SYS_CSQRTL = 0xA3F // 2623
+ SYS___CSQRTL_B = 0xA40 // 2624
+ SYS___CSQRTL_H = 0xA41 // 2625
+ SYS_CTAN = 0xA42 // 2626
+ SYS___CTAN_B = 0xA43 // 2627
+ SYS___CTAN_H = 0xA44 // 2628
+ SYS_CTANF = 0xA45 // 2629
+ SYS___CTANF_B = 0xA46 // 2630
+ SYS___CTANF_H = 0xA47 // 2631
+ SYS_CTANL = 0xA48 // 2632
+ SYS___CTANL_B = 0xA49 // 2633
+ SYS___CTANL_H = 0xA4A // 2634
+ SYS_CTANH = 0xA4B // 2635
+ SYS___CTANH_B = 0xA4C // 2636
+ SYS___CTANH_H = 0xA4D // 2637
+ SYS_CTANHF = 0xA4E // 2638
+ SYS___CTANHF_B = 0xA4F // 2639
+ SYS___CTANHF_H = 0xA50 // 2640
+ SYS_CTANHL = 0xA51 // 2641
+ SYS___CTANHL_B = 0xA52 // 2642
+ SYS___CTANHL_H = 0xA53 // 2643
+ SYS___ACOSHF_H = 0xA54 // 2644
+ SYS___ACOSHL_H = 0xA55 // 2645
+ SYS___ASINHF_H = 0xA56 // 2646
+ SYS___ASINHL_H = 0xA57 // 2647
+ SYS___CBRTF_H = 0xA58 // 2648
+ SYS___CBRTL_H = 0xA59 // 2649
+ SYS___COPYSIGN_B = 0xA5A // 2650
+ SYS___EXPM1F_H = 0xA5B // 2651
+ SYS___EXPM1L_H = 0xA5C // 2652
+ SYS___EXP2_H = 0xA5D // 2653
+ SYS___EXP2F_H = 0xA5E // 2654
+ SYS___EXP2L_H = 0xA5F // 2655
+ SYS___LOG1PF_H = 0xA60 // 2656
+ SYS___LOG1PL_H = 0xA61 // 2657
+ SYS___LGAMMAL_H = 0xA62 // 2658
+ SYS_FMA = 0xA63 // 2659
+ SYS___FMA_B = 0xA64 // 2660
+ SYS___FMA_H = 0xA65 // 2661
+ SYS_FMAF = 0xA66 // 2662
+ SYS___FMAF_B = 0xA67 // 2663
+ SYS___FMAF_H = 0xA68 // 2664
+ SYS_FMAL = 0xA69 // 2665
+ SYS___FMAL_B = 0xA6A // 2666
+ SYS___FMAL_H = 0xA6B // 2667
+ SYS_FMAX = 0xA6C // 2668
+ SYS___FMAX_B = 0xA6D // 2669
+ SYS___FMAX_H = 0xA6E // 2670
+ SYS_FMAXF = 0xA6F // 2671
+ SYS___FMAXF_B = 0xA70 // 2672
+ SYS___FMAXF_H = 0xA71 // 2673
+ SYS_FMAXL = 0xA72 // 2674
+ SYS___FMAXL_B = 0xA73 // 2675
+ SYS___FMAXL_H = 0xA74 // 2676
+ SYS_FMIN = 0xA75 // 2677
+ SYS___FMIN_B = 0xA76 // 2678
+ SYS___FMIN_H = 0xA77 // 2679
+ SYS_FMINF = 0xA78 // 2680
+ SYS___FMINF_B = 0xA79 // 2681
+ SYS___FMINF_H = 0xA7A // 2682
+ SYS_FMINL = 0xA7B // 2683
+ SYS___FMINL_B = 0xA7C // 2684
+ SYS___FMINL_H = 0xA7D // 2685
+ SYS_ILOGBF = 0xA7E // 2686
+ SYS___ILOGBF_B = 0xA7F // 2687
+ SYS___ILOGBF_H = 0xA80 // 2688
+ SYS_ILOGBL = 0xA81 // 2689
+ SYS___ILOGBL_B = 0xA82 // 2690
+ SYS___ILOGBL_H = 0xA83 // 2691
+ SYS_LLRINT = 0xA84 // 2692
+ SYS___LLRINT_B = 0xA85 // 2693
+ SYS___LLRINT_H = 0xA86 // 2694
+ SYS_LLRINTF = 0xA87 // 2695
+ SYS___LLRINTF_B = 0xA88 // 2696
+ SYS___LLRINTF_H = 0xA89 // 2697
+ SYS_LLRINTL = 0xA8A // 2698
+ SYS___LLRINTL_B = 0xA8B // 2699
+ SYS___LLRINTL_H = 0xA8C // 2700
+ SYS_LLROUND = 0xA8D // 2701
+ SYS___LLROUND_B = 0xA8E // 2702
+ SYS___LLROUND_H = 0xA8F // 2703
+ SYS_LLROUNDF = 0xA90 // 2704
+ SYS___LLROUNDF_B = 0xA91 // 2705
+ SYS___LLROUNDF_H = 0xA92 // 2706
+ SYS_LLROUNDL = 0xA93 // 2707
+ SYS___LLROUNDL_B = 0xA94 // 2708
+ SYS___LLROUNDL_H = 0xA95 // 2709
+ SYS_LOGBF = 0xA96 // 2710
+ SYS___LOGBF_B = 0xA97 // 2711
+ SYS___LOGBF_H = 0xA98 // 2712
+ SYS_LOGBL = 0xA99 // 2713
+ SYS___LOGBL_B = 0xA9A // 2714
+ SYS___LOGBL_H = 0xA9B // 2715
+ SYS_LRINT = 0xA9C // 2716
+ SYS___LRINT_B = 0xA9D // 2717
+ SYS___LRINT_H = 0xA9E // 2718
+ SYS_LRINTF = 0xA9F // 2719
+ SYS___LRINTF_B = 0xAA0 // 2720
+ SYS___LRINTF_H = 0xAA1 // 2721
+ SYS_LRINTL = 0xAA2 // 2722
+ SYS___LRINTL_B = 0xAA3 // 2723
+ SYS___LRINTL_H = 0xAA4 // 2724
+ SYS_LROUNDL = 0xAA5 // 2725
+ SYS___LROUNDL_B = 0xAA6 // 2726
+ SYS___LROUNDL_H = 0xAA7 // 2727
+ SYS_NAN = 0xAA8 // 2728
+ SYS___NAN_B = 0xAA9 // 2729
+ SYS_NANF = 0xAAA // 2730
+ SYS___NANF_B = 0xAAB // 2731
+ SYS_NANL = 0xAAC // 2732
+ SYS___NANL_B = 0xAAD // 2733
+ SYS_NEARBYINT = 0xAAE // 2734
+ SYS___NEARBYINT_B = 0xAAF // 2735
+ SYS___NEARBYINT_H = 0xAB0 // 2736
+ SYS_NEARBYINTF = 0xAB1 // 2737
+ SYS___NEARBYINTF_B = 0xAB2 // 2738
+ SYS___NEARBYINTF_H = 0xAB3 // 2739
+ SYS_NEARBYINTL = 0xAB4 // 2740
+ SYS___NEARBYINTL_B = 0xAB5 // 2741
+ SYS___NEARBYINTL_H = 0xAB6 // 2742
+ SYS_NEXTAFTERF = 0xAB7 // 2743
+ SYS___NEXTAFTERF_B = 0xAB8 // 2744
+ SYS___NEXTAFTERF_H = 0xAB9 // 2745
+ SYS_NEXTAFTERL = 0xABA // 2746
+ SYS___NEXTAFTERL_B = 0xABB // 2747
+ SYS___NEXTAFTERL_H = 0xABC // 2748
+ SYS_NEXTTOWARD = 0xABD // 2749
+ SYS___NEXTTOWARD_B = 0xABE // 2750
+ SYS___NEXTTOWARD_H = 0xABF // 2751
+ SYS_NEXTTOWARDF = 0xAC0 // 2752
+ SYS___NEXTTOWARDF_B = 0xAC1 // 2753
+ SYS___NEXTTOWARDF_H = 0xAC2 // 2754
+ SYS_NEXTTOWARDL = 0xAC3 // 2755
+ SYS___NEXTTOWARDL_B = 0xAC4 // 2756
+ SYS___NEXTTOWARDL_H = 0xAC5 // 2757
+ SYS___REMAINDERF_H = 0xAC6 // 2758
+ SYS___REMAINDERL_H = 0xAC7 // 2759
+ SYS___REMQUO_H = 0xAC8 // 2760
+ SYS___REMQUOF_H = 0xAC9 // 2761
+ SYS___REMQUOL_H = 0xACA // 2762
+ SYS_RINTF = 0xACB // 2763
+ SYS___RINTF_B = 0xACC // 2764
+ SYS_RINTL = 0xACD // 2765
+ SYS___RINTL_B = 0xACE // 2766
+ SYS_ROUND = 0xACF // 2767
+ SYS___ROUND_B = 0xAD0 // 2768
+ SYS___ROUND_H = 0xAD1 // 2769
+ SYS_ROUNDF = 0xAD2 // 2770
+ SYS___ROUNDF_B = 0xAD3 // 2771
+ SYS___ROUNDF_H = 0xAD4 // 2772
+ SYS_ROUNDL = 0xAD5 // 2773
+ SYS___ROUNDL_B = 0xAD6 // 2774
+ SYS___ROUNDL_H = 0xAD7 // 2775
+ SYS_SCALBLN = 0xAD8 // 2776
+ SYS___SCALBLN_B = 0xAD9 // 2777
+ SYS___SCALBLN_H = 0xADA // 2778
+ SYS_SCALBLNF = 0xADB // 2779
+ SYS___SCALBLNF_B = 0xADC // 2780
+ SYS___SCALBLNF_H = 0xADD // 2781
+ SYS_SCALBLNL = 0xADE // 2782
+ SYS___SCALBLNL_B = 0xADF // 2783
+ SYS___SCALBLNL_H = 0xAE0 // 2784
+ SYS___SCALBN_B = 0xAE1 // 2785
+ SYS___SCALBN_H = 0xAE2 // 2786
+ SYS_SCALBNF = 0xAE3 // 2787
+ SYS___SCALBNF_B = 0xAE4 // 2788
+ SYS___SCALBNF_H = 0xAE5 // 2789
+ SYS_SCALBNL = 0xAE6 // 2790
+ SYS___SCALBNL_B = 0xAE7 // 2791
+ SYS___SCALBNL_H = 0xAE8 // 2792
+ SYS___TGAMMAL_H = 0xAE9 // 2793
+ SYS_FECLEAREXCEPT = 0xAEA // 2794
+ SYS_FEGETENV = 0xAEB // 2795
+ SYS_FEGETEXCEPTFLAG = 0xAEC // 2796
+ SYS_FEGETROUND = 0xAED // 2797
+ SYS_FEHOLDEXCEPT = 0xAEE // 2798
+ SYS_FERAISEEXCEPT = 0xAEF // 2799
+ SYS_FESETENV = 0xAF0 // 2800
+ SYS_FESETEXCEPTFLAG = 0xAF1 // 2801
+ SYS_FESETROUND = 0xAF2 // 2802
+ SYS_FETESTEXCEPT = 0xAF3 // 2803
+ SYS_FEUPDATEENV = 0xAF4 // 2804
+ SYS___COPYSIGN_H = 0xAF5 // 2805
+ SYS___HYPOTF_H = 0xAF6 // 2806
+ SYS___HYPOTL_H = 0xAF7 // 2807
+ SYS___CLASS = 0xAFA // 2810
+ SYS___CLASS_B = 0xAFB // 2811
+ SYS___CLASS_H = 0xAFC // 2812
+ SYS___ISBLANK_A = 0xB2E // 2862
+ SYS___ISWBLANK_A = 0xB2F // 2863
+ SYS___LROUND_FIXUP = 0xB30 // 2864
+ SYS___LROUNDF_FIXUP = 0xB31 // 2865
+ SYS_SCHED_YIELD = 0xB32 // 2866
+ SYS_STRERROR_R = 0xB33 // 2867
+ SYS_UNSETENV = 0xB34 // 2868
+ SYS___LGAMMA_H_C99 = 0xB38 // 2872
+ SYS___LGAMMA_B_C99 = 0xB39 // 2873
+ SYS___LGAMMA_R_C99 = 0xB3A // 2874
+ SYS___FTELL2 = 0xB3B // 2875
+ SYS___FSEEK2 = 0xB3C // 2876
+ SYS___STATIC_REINIT = 0xB3D // 2877
+ SYS_PTHREAD_ATTR_GETSTACK = 0xB3E // 2878
+ SYS_PTHREAD_ATTR_SETSTACK = 0xB3F // 2879
+ SYS___TGAMMA_H_C99 = 0xB78 // 2936
+ SYS___TGAMMAF_H_C99 = 0xB79 // 2937
+ SYS___LE_TRACEBACK = 0xB7A // 2938
+ SYS___MUST_STAY_CLEAN = 0xB7C // 2940
+ SYS___O_ENV = 0xB7D // 2941
+ SYS_ACOSD32 = 0xB7E // 2942
+ SYS_ACOSD64 = 0xB7F // 2943
+ SYS_ACOSD128 = 0xB80 // 2944
+ SYS_ACOSHD32 = 0xB81 // 2945
+ SYS_ACOSHD64 = 0xB82 // 2946
+ SYS_ACOSHD128 = 0xB83 // 2947
+ SYS_ASIND32 = 0xB84 // 2948
+ SYS_ASIND64 = 0xB85 // 2949
+ SYS_ASIND128 = 0xB86 // 2950
+ SYS_ASINHD32 = 0xB87 // 2951
+ SYS_ASINHD64 = 0xB88 // 2952
+ SYS_ASINHD128 = 0xB89 // 2953
+ SYS_ATAND32 = 0xB8A // 2954
+ SYS_ATAND64 = 0xB8B // 2955
+ SYS_ATAND128 = 0xB8C // 2956
+ SYS_ATAN2D32 = 0xB8D // 2957
+ SYS_ATAN2D64 = 0xB8E // 2958
+ SYS_ATAN2D128 = 0xB8F // 2959
+ SYS_ATANHD32 = 0xB90 // 2960
+ SYS_ATANHD64 = 0xB91 // 2961
+ SYS_ATANHD128 = 0xB92 // 2962
+ SYS_CBRTD32 = 0xB93 // 2963
+ SYS_CBRTD64 = 0xB94 // 2964
+ SYS_CBRTD128 = 0xB95 // 2965
+ SYS_CEILD32 = 0xB96 // 2966
+ SYS_CEILD64 = 0xB97 // 2967
+ SYS_CEILD128 = 0xB98 // 2968
+ SYS___CLASS2 = 0xB99 // 2969
+ SYS___CLASS2_B = 0xB9A // 2970
+ SYS___CLASS2_H = 0xB9B // 2971
+ SYS_COPYSIGND32 = 0xB9C // 2972
+ SYS_COPYSIGND64 = 0xB9D // 2973
+ SYS_COPYSIGND128 = 0xB9E // 2974
+ SYS_COSD32 = 0xB9F // 2975
+ SYS_COSD64 = 0xBA0 // 2976
+ SYS_COSD128 = 0xBA1 // 2977
+ SYS_COSHD32 = 0xBA2 // 2978
+ SYS_COSHD64 = 0xBA3 // 2979
+ SYS_COSHD128 = 0xBA4 // 2980
+ SYS_ERFD32 = 0xBA5 // 2981
+ SYS_ERFD64 = 0xBA6 // 2982
+ SYS_ERFD128 = 0xBA7 // 2983
+ SYS_ERFCD32 = 0xBA8 // 2984
+ SYS_ERFCD64 = 0xBA9 // 2985
+ SYS_ERFCD128 = 0xBAA // 2986
+ SYS_EXPD32 = 0xBAB // 2987
+ SYS_EXPD64 = 0xBAC // 2988
+ SYS_EXPD128 = 0xBAD // 2989
+ SYS_EXP2D32 = 0xBAE // 2990
+ SYS_EXP2D64 = 0xBAF // 2991
+ SYS_EXP2D128 = 0xBB0 // 2992
+ SYS_EXPM1D32 = 0xBB1 // 2993
+ SYS_EXPM1D64 = 0xBB2 // 2994
+ SYS_EXPM1D128 = 0xBB3 // 2995
+ SYS_FABSD32 = 0xBB4 // 2996
+ SYS_FABSD64 = 0xBB5 // 2997
+ SYS_FABSD128 = 0xBB6 // 2998
+ SYS_FDIMD32 = 0xBB7 // 2999
+ SYS_FDIMD64 = 0xBB8 // 3000
+ SYS_FDIMD128 = 0xBB9 // 3001
+ SYS_FE_DEC_GETROUND = 0xBBA // 3002
+ SYS_FE_DEC_SETROUND = 0xBBB // 3003
+ SYS_FLOORD32 = 0xBBC // 3004
+ SYS_FLOORD64 = 0xBBD // 3005
+ SYS_FLOORD128 = 0xBBE // 3006
+ SYS_FMAD32 = 0xBBF // 3007
+ SYS_FMAD64 = 0xBC0 // 3008
+ SYS_FMAD128 = 0xBC1 // 3009
+ SYS_FMAXD32 = 0xBC2 // 3010
+ SYS_FMAXD64 = 0xBC3 // 3011
+ SYS_FMAXD128 = 0xBC4 // 3012
+ SYS_FMIND32 = 0xBC5 // 3013
+ SYS_FMIND64 = 0xBC6 // 3014
+ SYS_FMIND128 = 0xBC7 // 3015
+ SYS_FMODD32 = 0xBC8 // 3016
+ SYS_FMODD64 = 0xBC9 // 3017
+ SYS_FMODD128 = 0xBCA // 3018
+ SYS___FP_CAST_D = 0xBCB // 3019
+ SYS_FREXPD32 = 0xBCC // 3020
+ SYS_FREXPD64 = 0xBCD // 3021
+ SYS_FREXPD128 = 0xBCE // 3022
+ SYS_HYPOTD32 = 0xBCF // 3023
+ SYS_HYPOTD64 = 0xBD0 // 3024
+ SYS_HYPOTD128 = 0xBD1 // 3025
+ SYS_ILOGBD32 = 0xBD2 // 3026
+ SYS_ILOGBD64 = 0xBD3 // 3027
+ SYS_ILOGBD128 = 0xBD4 // 3028
+ SYS_LDEXPD32 = 0xBD5 // 3029
+ SYS_LDEXPD64 = 0xBD6 // 3030
+ SYS_LDEXPD128 = 0xBD7 // 3031
+ SYS_LGAMMAD32 = 0xBD8 // 3032
+ SYS_LGAMMAD64 = 0xBD9 // 3033
+ SYS_LGAMMAD128 = 0xBDA // 3034
+ SYS_LLRINTD32 = 0xBDB // 3035
+ SYS_LLRINTD64 = 0xBDC // 3036
+ SYS_LLRINTD128 = 0xBDD // 3037
+ SYS_LLROUNDD32 = 0xBDE // 3038
+ SYS_LLROUNDD64 = 0xBDF // 3039
+ SYS_LLROUNDD128 = 0xBE0 // 3040
+ SYS_LOGD32 = 0xBE1 // 3041
+ SYS_LOGD64 = 0xBE2 // 3042
+ SYS_LOGD128 = 0xBE3 // 3043
+ SYS_LOG10D32 = 0xBE4 // 3044
+ SYS_LOG10D64 = 0xBE5 // 3045
+ SYS_LOG10D128 = 0xBE6 // 3046
+ SYS_LOG1PD32 = 0xBE7 // 3047
+ SYS_LOG1PD64 = 0xBE8 // 3048
+ SYS_LOG1PD128 = 0xBE9 // 3049
+ SYS_LOG2D32 = 0xBEA // 3050
+ SYS_LOG2D64 = 0xBEB // 3051
+ SYS_LOG2D128 = 0xBEC // 3052
+ SYS_LOGBD32 = 0xBED // 3053
+ SYS_LOGBD64 = 0xBEE // 3054
+ SYS_LOGBD128 = 0xBEF // 3055
+ SYS_LRINTD32 = 0xBF0 // 3056
+ SYS_LRINTD64 = 0xBF1 // 3057
+ SYS_LRINTD128 = 0xBF2 // 3058
+ SYS_LROUNDD32 = 0xBF3 // 3059
+ SYS_LROUNDD64 = 0xBF4 // 3060
+ SYS_LROUNDD128 = 0xBF5 // 3061
+ SYS_MODFD32 = 0xBF6 // 3062
+ SYS_MODFD64 = 0xBF7 // 3063
+ SYS_MODFD128 = 0xBF8 // 3064
+ SYS_NAND32 = 0xBF9 // 3065
+ SYS_NAND64 = 0xBFA // 3066
+ SYS_NAND128 = 0xBFB // 3067
+ SYS_NEARBYINTD32 = 0xBFC // 3068
+ SYS_NEARBYINTD64 = 0xBFD // 3069
+ SYS_NEARBYINTD128 = 0xBFE // 3070
+ SYS_NEXTAFTERD32 = 0xBFF // 3071
+ SYS_NEXTAFTERD64 = 0xC00 // 3072
+ SYS_NEXTAFTERD128 = 0xC01 // 3073
+ SYS_NEXTTOWARDD32 = 0xC02 // 3074
+ SYS_NEXTTOWARDD64 = 0xC03 // 3075
+ SYS_NEXTTOWARDD128 = 0xC04 // 3076
+ SYS_POWD32 = 0xC05 // 3077
+ SYS_POWD64 = 0xC06 // 3078
+ SYS_POWD128 = 0xC07 // 3079
+ SYS_QUANTIZED32 = 0xC08 // 3080
+ SYS_QUANTIZED64 = 0xC09 // 3081
+ SYS_QUANTIZED128 = 0xC0A // 3082
+ SYS_REMAINDERD32 = 0xC0B // 3083
+ SYS_REMAINDERD64 = 0xC0C // 3084
+ SYS_REMAINDERD128 = 0xC0D // 3085
+ SYS___REMQUOD32 = 0xC0E // 3086
+ SYS___REMQUOD64 = 0xC0F // 3087
+ SYS___REMQUOD128 = 0xC10 // 3088
+ SYS_RINTD32 = 0xC11 // 3089
+ SYS_RINTD64 = 0xC12 // 3090
+ SYS_RINTD128 = 0xC13 // 3091
+ SYS_ROUNDD32 = 0xC14 // 3092
+ SYS_ROUNDD64 = 0xC15 // 3093
+ SYS_ROUNDD128 = 0xC16 // 3094
+ SYS_SAMEQUANTUMD32 = 0xC17 // 3095
+ SYS_SAMEQUANTUMD64 = 0xC18 // 3096
+ SYS_SAMEQUANTUMD128 = 0xC19 // 3097
+ SYS_SCALBLND32 = 0xC1A // 3098
+ SYS_SCALBLND64 = 0xC1B // 3099
+ SYS_SCALBLND128 = 0xC1C // 3100
+ SYS_SCALBND32 = 0xC1D // 3101
+ SYS_SCALBND64 = 0xC1E // 3102
+ SYS_SCALBND128 = 0xC1F // 3103
+ SYS_SIND32 = 0xC20 // 3104
+ SYS_SIND64 = 0xC21 // 3105
+ SYS_SIND128 = 0xC22 // 3106
+ SYS_SINHD32 = 0xC23 // 3107
+ SYS_SINHD64 = 0xC24 // 3108
+ SYS_SINHD128 = 0xC25 // 3109
+ SYS_SQRTD32 = 0xC26 // 3110
+ SYS_SQRTD64 = 0xC27 // 3111
+ SYS_SQRTD128 = 0xC28 // 3112
+ SYS_STRTOD32 = 0xC29 // 3113
+ SYS_STRTOD64 = 0xC2A // 3114
+ SYS_STRTOD128 = 0xC2B // 3115
+ SYS_TAND32 = 0xC2C // 3116
+ SYS_TAND64 = 0xC2D // 3117
+ SYS_TAND128 = 0xC2E // 3118
+ SYS_TANHD32 = 0xC2F // 3119
+ SYS_TANHD64 = 0xC30 // 3120
+ SYS_TANHD128 = 0xC31 // 3121
+ SYS_TGAMMAD32 = 0xC32 // 3122
+ SYS_TGAMMAD64 = 0xC33 // 3123
+ SYS_TGAMMAD128 = 0xC34 // 3124
+ SYS_TRUNCD32 = 0xC3E // 3134
+ SYS_TRUNCD64 = 0xC3F // 3135
+ SYS_TRUNCD128 = 0xC40 // 3136
+ SYS_WCSTOD32 = 0xC41 // 3137
+ SYS_WCSTOD64 = 0xC42 // 3138
+ SYS_WCSTOD128 = 0xC43 // 3139
+ SYS___CODEPAGE_INFO = 0xC64 // 3172
+ SYS_POSIX_OPENPT = 0xC66 // 3174
+ SYS_PSELECT = 0xC67 // 3175
+ SYS_SOCKATMARK = 0xC68 // 3176
+ SYS_AIO_FSYNC = 0xC69 // 3177
+ SYS_LIO_LISTIO = 0xC6A // 3178
+ SYS___ATANPID32 = 0xC6B // 3179
+ SYS___ATANPID64 = 0xC6C // 3180
+ SYS___ATANPID128 = 0xC6D // 3181
+ SYS___COSPID32 = 0xC6E // 3182
+ SYS___COSPID64 = 0xC6F // 3183
+ SYS___COSPID128 = 0xC70 // 3184
+ SYS___SINPID32 = 0xC71 // 3185
+ SYS___SINPID64 = 0xC72 // 3186
+ SYS___SINPID128 = 0xC73 // 3187
+ SYS_SETIPV4SOURCEFILTER = 0xC76 // 3190
+ SYS_GETIPV4SOURCEFILTER = 0xC77 // 3191
+ SYS_SETSOURCEFILTER = 0xC78 // 3192
+ SYS_GETSOURCEFILTER = 0xC79 // 3193
+ SYS_FWRITE_UNLOCKED = 0xC7A // 3194
+ SYS_FREAD_UNLOCKED = 0xC7B // 3195
+ SYS_FGETS_UNLOCKED = 0xC7C // 3196
+ SYS_GETS_UNLOCKED = 0xC7D // 3197
+ SYS_FPUTS_UNLOCKED = 0xC7E // 3198
+ SYS_PUTS_UNLOCKED = 0xC7F // 3199
+ SYS_FGETC_UNLOCKED = 0xC80 // 3200
+ SYS_FPUTC_UNLOCKED = 0xC81 // 3201
+ SYS_DLADDR = 0xC82 // 3202
+ SYS_SHM_OPEN = 0xC8C // 3212
+ SYS_SHM_UNLINK = 0xC8D // 3213
+ SYS___CLASS2F = 0xC91 // 3217
+ SYS___CLASS2L = 0xC92 // 3218
+ SYS___CLASS2F_B = 0xC93 // 3219
+ SYS___CLASS2F_H = 0xC94 // 3220
+ SYS___CLASS2L_B = 0xC95 // 3221
+ SYS___CLASS2L_H = 0xC96 // 3222
+ SYS___CLASS2D32 = 0xC97 // 3223
+ SYS___CLASS2D64 = 0xC98 // 3224
+ SYS___CLASS2D128 = 0xC99 // 3225
+ SYS___TOCSNAME2 = 0xC9A // 3226
+ SYS___D1TOP = 0xC9B // 3227
+ SYS___D2TOP = 0xC9C // 3228
+ SYS___D4TOP = 0xC9D // 3229
+ SYS___PTOD1 = 0xC9E // 3230
+ SYS___PTOD2 = 0xC9F // 3231
+ SYS___PTOD4 = 0xCA0 // 3232
+ SYS_CLEARERR_UNLOCKED = 0xCA1 // 3233
+ SYS_FDELREC_UNLOCKED = 0xCA2 // 3234
+ SYS_FEOF_UNLOCKED = 0xCA3 // 3235
+ SYS_FERROR_UNLOCKED = 0xCA4 // 3236
+ SYS_FFLUSH_UNLOCKED = 0xCA5 // 3237
+ SYS_FGETPOS_UNLOCKED = 0xCA6 // 3238
+ SYS_FGETWC_UNLOCKED = 0xCA7 // 3239
+ SYS_FGETWS_UNLOCKED = 0xCA8 // 3240
+ SYS_FILENO_UNLOCKED = 0xCA9 // 3241
+ SYS_FLDATA_UNLOCKED = 0xCAA // 3242
+ SYS_FLOCATE_UNLOCKED = 0xCAB // 3243
+ SYS_FPRINTF_UNLOCKED = 0xCAC // 3244
+ SYS_FPUTWC_UNLOCKED = 0xCAD // 3245
+ SYS_FPUTWS_UNLOCKED = 0xCAE // 3246
+ SYS_FSCANF_UNLOCKED = 0xCAF // 3247
+ SYS_FSEEK_UNLOCKED = 0xCB0 // 3248
+ SYS_FSEEKO_UNLOCKED = 0xCB1 // 3249
+ SYS_FSETPOS_UNLOCKED = 0xCB3 // 3251
+ SYS_FTELL_UNLOCKED = 0xCB4 // 3252
+ SYS_FTELLO_UNLOCKED = 0xCB5 // 3253
+ SYS_FUPDATE_UNLOCKED = 0xCB7 // 3255
+ SYS_FWIDE_UNLOCKED = 0xCB8 // 3256
+ SYS_FWPRINTF_UNLOCKED = 0xCB9 // 3257
+ SYS_FWSCANF_UNLOCKED = 0xCBA // 3258
+ SYS_GETWC_UNLOCKED = 0xCBB // 3259
+ SYS_GETWCHAR_UNLOCKED = 0xCBC // 3260
+ SYS_PERROR_UNLOCKED = 0xCBD // 3261
+ SYS_PRINTF_UNLOCKED = 0xCBE // 3262
+ SYS_PUTWC_UNLOCKED = 0xCBF // 3263
+ SYS_PUTWCHAR_UNLOCKED = 0xCC0 // 3264
+ SYS_REWIND_UNLOCKED = 0xCC1 // 3265
+ SYS_SCANF_UNLOCKED = 0xCC2 // 3266
+ SYS_UNGETC_UNLOCKED = 0xCC3 // 3267
+ SYS_UNGETWC_UNLOCKED = 0xCC4 // 3268
+ SYS_VFPRINTF_UNLOCKED = 0xCC5 // 3269
+ SYS_VFSCANF_UNLOCKED = 0xCC7 // 3271
+ SYS_VFWPRINTF_UNLOCKED = 0xCC9 // 3273
+ SYS_VFWSCANF_UNLOCKED = 0xCCB // 3275
+ SYS_VPRINTF_UNLOCKED = 0xCCD // 3277
+ SYS_VSCANF_UNLOCKED = 0xCCF // 3279
+ SYS_VWPRINTF_UNLOCKED = 0xCD1 // 3281
+ SYS_VWSCANF_UNLOCKED = 0xCD3 // 3283
+ SYS_WPRINTF_UNLOCKED = 0xCD5 // 3285
+ SYS_WSCANF_UNLOCKED = 0xCD6 // 3286
+ SYS_ASCTIME64 = 0xCD7 // 3287
+ SYS_ASCTIME64_R = 0xCD8 // 3288
+ SYS_CTIME64 = 0xCD9 // 3289
+ SYS_CTIME64_R = 0xCDA // 3290
+ SYS_DIFFTIME64 = 0xCDB // 3291
+ SYS_GMTIME64 = 0xCDC // 3292
+ SYS_GMTIME64_R = 0xCDD // 3293
+ SYS_LOCALTIME64 = 0xCDE // 3294
+ SYS_LOCALTIME64_R = 0xCDF // 3295
+ SYS_MKTIME64 = 0xCE0 // 3296
+ SYS_TIME64 = 0xCE1 // 3297
+ SYS___LOGIN_APPLID = 0xCE2 // 3298
+ SYS___PASSWD_APPLID = 0xCE3 // 3299
+ SYS_PTHREAD_SECURITY_APPLID_NP = 0xCE4 // 3300
+ SYS___GETTHENT = 0xCE5 // 3301
+ SYS_FREEIFADDRS = 0xCE6 // 3302
+ SYS_GETIFADDRS = 0xCE7 // 3303
+ SYS_POSIX_FALLOCATE = 0xCE8 // 3304
+ SYS_POSIX_MEMALIGN = 0xCE9 // 3305
+ SYS_SIZEOF_ALLOC = 0xCEA // 3306
+ SYS_RESIZE_ALLOC = 0xCEB // 3307
+ SYS_FREAD_NOUPDATE = 0xCEC // 3308
+ SYS_FREAD_NOUPDATE_UNLOCKED = 0xCED // 3309
+ SYS_FGETPOS64 = 0xCEE // 3310
+ SYS_FSEEK64 = 0xCEF // 3311
+ SYS_FSEEKO64 = 0xCF0 // 3312
+ SYS_FSETPOS64 = 0xCF1 // 3313
+ SYS_FTELL64 = 0xCF2 // 3314
+ SYS_FTELLO64 = 0xCF3 // 3315
+ SYS_FGETPOS64_UNLOCKED = 0xCF4 // 3316
+ SYS_FSEEK64_UNLOCKED = 0xCF5 // 3317
+ SYS_FSEEKO64_UNLOCKED = 0xCF6 // 3318
+ SYS_FSETPOS64_UNLOCKED = 0xCF7 // 3319
+ SYS_FTELL64_UNLOCKED = 0xCF8 // 3320
+ SYS_FTELLO64_UNLOCKED = 0xCF9 // 3321
+ SYS_FOPEN_UNLOCKED = 0xCFA // 3322
+ SYS_FREOPEN_UNLOCKED = 0xCFB // 3323
+ SYS_FDOPEN_UNLOCKED = 0xCFC // 3324
+ SYS_TMPFILE_UNLOCKED = 0xCFD // 3325
+ SYS___MOSERVICES = 0xD3D // 3389
+ SYS___GETTOD = 0xD3E // 3390
+ SYS_C16RTOMB = 0xD40 // 3392
+ SYS_C32RTOMB = 0xD41 // 3393
+ SYS_MBRTOC16 = 0xD42 // 3394
+ SYS_MBRTOC32 = 0xD43 // 3395
+ SYS_QUANTEXPD32 = 0xD44 // 3396
+ SYS_QUANTEXPD64 = 0xD45 // 3397
+ SYS_QUANTEXPD128 = 0xD46 // 3398
+ SYS___LOCALE_CTL = 0xD47 // 3399
+ SYS___SMF_RECORD2 = 0xD48 // 3400
+ SYS_FOPEN64 = 0xD49 // 3401
+ SYS_FOPEN64_UNLOCKED = 0xD4A // 3402
+ SYS_FREOPEN64 = 0xD4B // 3403
+ SYS_FREOPEN64_UNLOCKED = 0xD4C // 3404
+ SYS_TMPFILE64 = 0xD4D // 3405
+ SYS_TMPFILE64_UNLOCKED = 0xD4E // 3406
+ SYS_GETDATE64 = 0xD4F // 3407
+ SYS_GETTIMEOFDAY64 = 0xD50 // 3408
+ SYS_BIND2ADDRSEL = 0xD59 // 3417
+ SYS_INET6_IS_SRCADDR = 0xD5A // 3418
+ SYS___GETGRGID1 = 0xD5B // 3419
+ SYS___GETGRNAM1 = 0xD5C // 3420
+ SYS___FBUFSIZE = 0xD60 // 3424
+ SYS___FPENDING = 0xD61 // 3425
+ SYS___FLBF = 0xD62 // 3426
+ SYS___FREADABLE = 0xD63 // 3427
+ SYS___FWRITABLE = 0xD64 // 3428
+ SYS___FREADING = 0xD65 // 3429
+ SYS___FWRITING = 0xD66 // 3430
+ SYS___FSETLOCKING = 0xD67 // 3431
+ SYS__FLUSHLBF = 0xD68 // 3432
+ SYS___FPURGE = 0xD69 // 3433
+ SYS___FREADAHEAD = 0xD6A // 3434
+ SYS___FSETERR = 0xD6B // 3435
+ SYS___FPENDING_UNLOCKED = 0xD6C // 3436
+ SYS___FREADING_UNLOCKED = 0xD6D // 3437
+ SYS___FWRITING_UNLOCKED = 0xD6E // 3438
+ SYS__FLUSHLBF_UNLOCKED = 0xD6F // 3439
+ SYS___FPURGE_UNLOCKED = 0xD70 // 3440
+ SYS___FREADAHEAD_UNLOCKED = 0xD71 // 3441
+ SYS___LE_CEEGTJS = 0xD72 // 3442
+ SYS___LE_RECORD_DUMP = 0xD73 // 3443
+ SYS_FSTAT64 = 0xD74 // 3444
+ SYS_LSTAT64 = 0xD75 // 3445
+ SYS_STAT64 = 0xD76 // 3446
+ SYS___READDIR2_64 = 0xD77 // 3447
+ SYS___OPEN_STAT64 = 0xD78 // 3448
+ SYS_FTW64 = 0xD79 // 3449
+ SYS_NFTW64 = 0xD7A // 3450
+ SYS_UTIME64 = 0xD7B // 3451
+ SYS_UTIMES64 = 0xD7C // 3452
+ SYS___GETIPC64 = 0xD7D // 3453
+ SYS_MSGCTL64 = 0xD7E // 3454
+ SYS_SEMCTL64 = 0xD7F // 3455
+ SYS_SHMCTL64 = 0xD80 // 3456
+ SYS_MSGXRCV64 = 0xD81 // 3457
+ SYS___MGXR64 = 0xD81 // 3457
+ SYS_W_GETPSENT64 = 0xD82 // 3458
+ SYS_PTHREAD_COND_TIMEDWAIT64 = 0xD83 // 3459
+ SYS_FTIME64 = 0xD85 // 3461
+ SYS_GETUTXENT64 = 0xD86 // 3462
+ SYS_GETUTXID64 = 0xD87 // 3463
+ SYS_GETUTXLINE64 = 0xD88 // 3464
+ SYS_PUTUTXLINE64 = 0xD89 // 3465
+ SYS_NEWLOCALE = 0xD8A // 3466
+ SYS_FREELOCALE = 0xD8B // 3467
+ SYS_USELOCALE = 0xD8C // 3468
+ SYS_DUPLOCALE = 0xD8D // 3469
+ SYS___CHATTR64 = 0xD9C // 3484
+ SYS___LCHATTR64 = 0xD9D // 3485
+ SYS___FCHATTR64 = 0xD9E // 3486
+ SYS_____CHATTR64_A = 0xD9F // 3487
+ SYS_____LCHATTR64_A = 0xDA0 // 3488
+ SYS___LE_CEEUSGD = 0xDA1 // 3489
+ SYS___LE_IFAM_CON = 0xDA2 // 3490
+ SYS___LE_IFAM_DSC = 0xDA3 // 3491
+ SYS___LE_IFAM_GET = 0xDA4 // 3492
+ SYS___LE_IFAM_QRY = 0xDA5 // 3493
+ SYS_ALIGNED_ALLOC = 0xDA6 // 3494
+ SYS_ACCEPT4 = 0xDA7 // 3495
+ SYS___ACCEPT4_A = 0xDA8 // 3496
+ SYS_COPYFILERANGE = 0xDA9 // 3497
+ SYS_GETLINE = 0xDAA // 3498
+ SYS___GETLINE_A = 0xDAB // 3499
+ SYS_DIRFD = 0xDAC // 3500
+ SYS_CLOCK_GETTIME = 0xDAD // 3501
+ SYS_DUP3 = 0xDAE // 3502
+ SYS_EPOLL_CREATE = 0xDAF // 3503
+ SYS_EPOLL_CREATE1 = 0xDB0 // 3504
+ SYS_EPOLL_CTL = 0xDB1 // 3505
+ SYS_EPOLL_WAIT = 0xDB2 // 3506
+ SYS_EPOLL_PWAIT = 0xDB3 // 3507
+ SYS_EVENTFD = 0xDB4 // 3508
+ SYS_STATFS = 0xDB5 // 3509
+ SYS___STATFS_A = 0xDB6 // 3510
+ SYS_FSTATFS = 0xDB7 // 3511
+ SYS_INOTIFY_INIT = 0xDB8 // 3512
+ SYS_INOTIFY_INIT1 = 0xDB9 // 3513
+ SYS_INOTIFY_ADD_WATCH = 0xDBA // 3514
+ SYS___INOTIFY_ADD_WATCH_A = 0xDBB // 3515
+ SYS_INOTIFY_RM_WATCH = 0xDBC // 3516
+ SYS_PIPE2 = 0xDBD // 3517
+ SYS_PIVOT_ROOT = 0xDBE // 3518
+ SYS___PIVOT_ROOT_A = 0xDBF // 3519
+ SYS_PRCTL = 0xDC0 // 3520
+ SYS_PRLIMIT = 0xDC1 // 3521
+ SYS_SETHOSTNAME = 0xDC2 // 3522
+ SYS___SETHOSTNAME_A = 0xDC3 // 3523
+ SYS_SETRESUID = 0xDC4 // 3524
+ SYS_SETRESGID = 0xDC5 // 3525
+ SYS_PTHREAD_CONDATTR_GETCLOCK = 0xDC6 // 3526
+ SYS_FLOCK = 0xDC7 // 3527
+ SYS_FGETXATTR = 0xDC8 // 3528
+ SYS___FGETXATTR_A = 0xDC9 // 3529
+ SYS_FLISTXATTR = 0xDCA // 3530
+ SYS___FLISTXATTR_A = 0xDCB // 3531
+ SYS_FREMOVEXATTR = 0xDCC // 3532
+ SYS___FREMOVEXATTR_A = 0xDCD // 3533
+ SYS_FSETXATTR = 0xDCE // 3534
+ SYS___FSETXATTR_A = 0xDCF // 3535
+ SYS_GETXATTR = 0xDD0 // 3536
+ SYS___GETXATTR_A = 0xDD1 // 3537
+ SYS_LGETXATTR = 0xDD2 // 3538
+ SYS___LGETXATTR_A = 0xDD3 // 3539
+ SYS_LISTXATTR = 0xDD4 // 3540
+ SYS___LISTXATTR_A = 0xDD5 // 3541
+ SYS_LLISTXATTR = 0xDD6 // 3542
+ SYS___LLISTXATTR_A = 0xDD7 // 3543
+ SYS_LREMOVEXATTR = 0xDD8 // 3544
+ SYS___LREMOVEXATTR_A = 0xDD9 // 3545
+ SYS_LSETXATTR = 0xDDA // 3546
+ SYS___LSETXATTR_A = 0xDDB // 3547
+ SYS_REMOVEXATTR = 0xDDC // 3548
+ SYS___REMOVEXATTR_A = 0xDDD // 3549
+ SYS_SETXATTR = 0xDDE // 3550
+ SYS___SETXATTR_A = 0xDDF // 3551
+ SYS_FDATASYNC = 0xDE0 // 3552
+ SYS_SYNCFS = 0xDE1 // 3553
+ SYS_FUTIMES = 0xDE2 // 3554
+ SYS_FUTIMESAT = 0xDE3 // 3555
+ SYS___FUTIMESAT_A = 0xDE4 // 3556
+ SYS_LUTIMES = 0xDE5 // 3557
+ SYS___LUTIMES_A = 0xDE6 // 3558
+ SYS_INET_ATON = 0xDE7 // 3559
+ SYS_GETRANDOM = 0xDE8 // 3560
+ SYS_GETTID = 0xDE9 // 3561
+ SYS_MEMFD_CREATE = 0xDEA // 3562
+ SYS___MEMFD_CREATE_A = 0xDEB // 3563
+ SYS_FACCESSAT = 0xDEC // 3564
+ SYS___FACCESSAT_A = 0xDED // 3565
+ SYS_FCHMODAT = 0xDEE // 3566
+ SYS___FCHMODAT_A = 0xDEF // 3567
+ SYS_FCHOWNAT = 0xDF0 // 3568
+ SYS___FCHOWNAT_A = 0xDF1 // 3569
+ SYS_FSTATAT = 0xDF2 // 3570
+ SYS___FSTATAT_A = 0xDF3 // 3571
+ SYS_LINKAT = 0xDF4 // 3572
+ SYS___LINKAT_A = 0xDF5 // 3573
+ SYS_MKDIRAT = 0xDF6 // 3574
+ SYS___MKDIRAT_A = 0xDF7 // 3575
+ SYS_MKFIFOAT = 0xDF8 // 3576
+ SYS___MKFIFOAT_A = 0xDF9 // 3577
+ SYS_MKNODAT = 0xDFA // 3578
+ SYS___MKNODAT_A = 0xDFB // 3579
+ SYS_OPENAT = 0xDFC // 3580
+ SYS___OPENAT_A = 0xDFD // 3581
+ SYS_READLINKAT = 0xDFE // 3582
+ SYS___READLINKAT_A = 0xDFF // 3583
+ SYS_RENAMEAT = 0xE00 // 3584
+ SYS___RENAMEAT_A = 0xE01 // 3585
+ SYS_RENAMEAT2 = 0xE02 // 3586
+ SYS___RENAMEAT2_A = 0xE03 // 3587
+ SYS_SYMLINKAT = 0xE04 // 3588
+ SYS___SYMLINKAT_A = 0xE05 // 3589
+ SYS_UNLINKAT = 0xE06 // 3590
+ SYS___UNLINKAT_A = 0xE07 // 3591
+ SYS_SYSINFO = 0xE08 // 3592
+ SYS_WAIT4 = 0xE0A // 3594
+ SYS_CLONE = 0xE0B // 3595
+ SYS_UNSHARE = 0xE0C // 3596
+ SYS_SETNS = 0xE0D // 3597
+ SYS_CAPGET = 0xE0E // 3598
+ SYS_CAPSET = 0xE0F // 3599
+ SYS_STRCHRNUL = 0xE10 // 3600
+ SYS_PTHREAD_CONDATTR_SETCLOCK = 0xE12 // 3602
+ SYS_OPEN_BY_HANDLE_AT = 0xE13 // 3603
+ SYS___OPEN_BY_HANDLE_AT_A = 0xE14 // 3604
+ SYS___INET_ATON_A = 0xE15 // 3605
+ SYS_MOUNT1 = 0xE16 // 3606
+ SYS___MOUNT1_A = 0xE17 // 3607
+ SYS_UMOUNT1 = 0xE18 // 3608
+ SYS___UMOUNT1_A = 0xE19 // 3609
+ SYS_UMOUNT2 = 0xE1A // 3610
+ SYS___UMOUNT2_A = 0xE1B // 3611
+ SYS___PRCTL_A = 0xE1C // 3612
+ SYS_LOCALTIME_R2 = 0xE1D // 3613
+ SYS___LOCALTIME_R2_A = 0xE1E // 3614
+ SYS_OPENAT2 = 0xE1F // 3615
+ SYS___OPENAT2_A = 0xE20 // 3616
+ SYS___LE_CEEMICT = 0xE21 // 3617
+ SYS_GETENTROPY = 0xE22 // 3618
+ SYS_NANOSLEEP = 0xE23 // 3619
+ SYS_UTIMENSAT = 0xE24 // 3620
+ SYS___UTIMENSAT_A = 0xE25 // 3621
+ SYS_ASPRINTF = 0xE26 // 3622
+ SYS___ASPRINTF_A = 0xE27 // 3623
+ SYS_VASPRINTF = 0xE28 // 3624
+ SYS___VASPRINTF_A = 0xE29 // 3625
+ SYS_DPRINTF = 0xE2A // 3626
+ SYS___DPRINTF_A = 0xE2B // 3627
+ SYS_GETOPT_LONG = 0xE2C // 3628
+ SYS___GETOPT_LONG_A = 0xE2D // 3629
+ SYS_PSIGNAL = 0xE2E // 3630
+ SYS___PSIGNAL_A = 0xE2F // 3631
+ SYS_PSIGNAL_UNLOCKED = 0xE30 // 3632
+ SYS___PSIGNAL_UNLOCKED_A = 0xE31 // 3633
+ SYS_FSTATAT_O = 0xE32 // 3634
+ SYS___FSTATAT_O_A = 0xE33 // 3635
+ SYS_FSTATAT64 = 0xE34 // 3636
+ SYS___FSTATAT64_A = 0xE35 // 3637
+ SYS___CHATTRAT = 0xE36 // 3638
+ SYS_____CHATTRAT_A = 0xE37 // 3639
+ SYS___CHATTRAT64 = 0xE38 // 3640
+ SYS_____CHATTRAT64_A = 0xE39 // 3641
+ SYS_MADVISE = 0xE3A // 3642
+ SYS___AUTHENTICATE = 0xE3B // 3643
+
)
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux.go b/vendor/golang.org/x/sys/unix/ztypes_linux.go
index eff6bcdef8..0036746ea1 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux.go
@@ -1178,7 +1178,8 @@ const (
PERF_SAMPLE_BRANCH_TYPE_SAVE_SHIFT = 0x10
PERF_SAMPLE_BRANCH_HW_INDEX_SHIFT = 0x11
PERF_SAMPLE_BRANCH_PRIV_SAVE_SHIFT = 0x12
- PERF_SAMPLE_BRANCH_MAX_SHIFT = 0x13
+ PERF_SAMPLE_BRANCH_COUNTERS = 0x80000
+ PERF_SAMPLE_BRANCH_MAX_SHIFT = 0x14
PERF_SAMPLE_BRANCH_USER = 0x1
PERF_SAMPLE_BRANCH_KERNEL = 0x2
PERF_SAMPLE_BRANCH_HV = 0x4
@@ -1198,7 +1199,7 @@ const (
PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000
PERF_SAMPLE_BRANCH_HW_INDEX = 0x20000
PERF_SAMPLE_BRANCH_PRIV_SAVE = 0x40000
- PERF_SAMPLE_BRANCH_MAX = 0x80000
+ PERF_SAMPLE_BRANCH_MAX = 0x100000
PERF_BR_UNKNOWN = 0x0
PERF_BR_COND = 0x1
PERF_BR_UNCOND = 0x2
@@ -2481,6 +2482,15 @@ type XDPMmapOffsets struct {
Cr XDPRingOffset
}
+type XDPUmemReg struct {
+ Addr uint64
+ Len uint64
+ Chunk_size uint32
+ Headroom uint32
+ Flags uint32
+ Tx_metadata_len uint32
+}
+
type XDPStatistics struct {
Rx_dropped uint64
Rx_invalid_descs uint64
@@ -2935,7 +2945,7 @@ const (
BPF_TCP_LISTEN = 0xa
BPF_TCP_CLOSING = 0xb
BPF_TCP_NEW_SYN_RECV = 0xc
- BPF_TCP_MAX_STATES = 0xd
+ BPF_TCP_MAX_STATES = 0xe
TCP_BPF_IW = 0x3e9
TCP_BPF_SNDCWND_CLAMP = 0x3ea
TCP_BPF_DELACK_MAX = 0x3eb
@@ -3211,7 +3221,7 @@ const (
DEVLINK_CMD_LINECARD_NEW = 0x50
DEVLINK_CMD_LINECARD_DEL = 0x51
DEVLINK_CMD_SELFTESTS_GET = 0x52
- DEVLINK_CMD_MAX = 0x53
+ DEVLINK_CMD_MAX = 0x54
DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2
@@ -4595,7 +4605,7 @@ const (
NL80211_ATTR_MAC_HINT = 0xc8
NL80211_ATTR_MAC_MASK = 0xd7
NL80211_ATTR_MAX_AP_ASSOC_STA = 0xca
- NL80211_ATTR_MAX = 0x146
+ NL80211_ATTR_MAX = 0x149
NL80211_ATTR_MAX_CRIT_PROT_DURATION = 0xb4
NL80211_ATTR_MAX_CSA_COUNTERS = 0xce
NL80211_ATTR_MAX_MATCH_SETS = 0x85
@@ -4861,7 +4871,7 @@ const (
NL80211_BSS_FREQUENCY_OFFSET = 0x14
NL80211_BSS_INFORMATION_ELEMENTS = 0x6
NL80211_BSS_LAST_SEEN_BOOTTIME = 0xf
- NL80211_BSS_MAX = 0x16
+ NL80211_BSS_MAX = 0x18
NL80211_BSS_MLD_ADDR = 0x16
NL80211_BSS_MLO_LINK_ID = 0x15
NL80211_BSS_PAD = 0x10
@@ -4965,7 +4975,7 @@ const (
NL80211_CMD_LEAVE_IBSS = 0x2c
NL80211_CMD_LEAVE_MESH = 0x45
NL80211_CMD_LEAVE_OCB = 0x6d
- NL80211_CMD_MAX = 0x9a
+ NL80211_CMD_MAX = 0x9b
NL80211_CMD_MICHAEL_MIC_FAILURE = 0x29
NL80211_CMD_MODIFY_LINK_STA = 0x97
NL80211_CMD_NAN_MATCH = 0x78
@@ -5199,7 +5209,7 @@ const (
NL80211_FREQUENCY_ATTR_GO_CONCURRENT = 0xf
NL80211_FREQUENCY_ATTR_INDOOR_ONLY = 0xe
NL80211_FREQUENCY_ATTR_IR_CONCURRENT = 0xf
- NL80211_FREQUENCY_ATTR_MAX = 0x1c
+ NL80211_FREQUENCY_ATTR_MAX = 0x1f
NL80211_FREQUENCY_ATTR_MAX_TX_POWER = 0x6
NL80211_FREQUENCY_ATTR_NO_10MHZ = 0x11
NL80211_FREQUENCY_ATTR_NO_160MHZ = 0xc
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
index 438a30affa..fd402da43f 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
@@ -477,14 +477,6 @@ const (
BLKPG = 0x1269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
-}
-
type CryptoUserAlg struct {
Name [64]int8
Driver_name [64]int8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
index adceca3553..eb7a5e1864 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
@@ -492,15 +492,6 @@ const (
BLKPG = 0x1269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
- _ [4]byte
-}
-
type CryptoUserAlg struct {
Name [64]int8
Driver_name [64]int8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
index eeaa00a37d..d78ac108b6 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
@@ -470,15 +470,6 @@ const (
BLKPG = 0x1269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
- _ [4]byte
-}
-
type CryptoUserAlg struct {
Name [64]uint8
Driver_name [64]uint8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
index 6739aa91d4..cd06d47f1f 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
@@ -471,15 +471,6 @@ const (
BLKPG = 0x1269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
- _ [4]byte
-}
-
type CryptoUserAlg struct {
Name [64]int8
Driver_name [64]int8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go
index 9920ef6317..2f28fe26c1 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go
@@ -472,15 +472,6 @@ const (
BLKPG = 0x1269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
- _ [4]byte
-}
-
type CryptoUserAlg struct {
Name [64]int8
Driver_name [64]int8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
index 2923b799a4..71d6cac2f1 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
@@ -476,15 +476,6 @@ const (
BLKPG = 0x20001269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
- _ [4]byte
-}
-
type CryptoUserAlg struct {
Name [64]int8
Driver_name [64]int8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
index ce2750ee41..8596d45356 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
@@ -474,15 +474,6 @@ const (
BLKPG = 0x20001269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
- _ [4]byte
-}
-
type CryptoUserAlg struct {
Name [64]int8
Driver_name [64]int8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
index 3038811d70..cd60ea1866 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
@@ -474,15 +474,6 @@ const (
BLKPG = 0x20001269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
- _ [4]byte
-}
-
type CryptoUserAlg struct {
Name [64]int8
Driver_name [64]int8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
index efc6fed18c..b0ae420c48 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
@@ -476,15 +476,6 @@ const (
BLKPG = 0x20001269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
- _ [4]byte
-}
-
type CryptoUserAlg struct {
Name [64]int8
Driver_name [64]int8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go
index 9a654b75a9..8359728759 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go
@@ -482,15 +482,6 @@ const (
BLKPG = 0x20001269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
- _ [4]byte
-}
-
type CryptoUserAlg struct {
Name [64]uint8
Driver_name [64]uint8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
index 40d358e33e..69eb6a5c68 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
@@ -481,15 +481,6 @@ const (
BLKPG = 0x20001269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
- _ [4]byte
-}
-
type CryptoUserAlg struct {
Name [64]uint8
Driver_name [64]uint8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
index 148c6ceb86..5f583cb62b 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
@@ -481,15 +481,6 @@ const (
BLKPG = 0x20001269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
- _ [4]byte
-}
-
type CryptoUserAlg struct {
Name [64]uint8
Driver_name [64]uint8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
index 72ba81543e..15adc04142 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
@@ -499,15 +499,6 @@ const (
BLKPG = 0x1269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
- _ [4]byte
-}
-
type CryptoUserAlg struct {
Name [64]uint8
Driver_name [64]uint8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
index 71e765508e..cf3ce90037 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
@@ -495,15 +495,6 @@ const (
BLKPG = 0x1269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
- _ [4]byte
-}
-
type CryptoUserAlg struct {
Name [64]int8
Driver_name [64]int8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
index 4abbdb9de9..590b56739c 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
@@ -476,15 +476,6 @@ const (
BLKPG = 0x20001269
)
-type XDPUmemReg struct {
- Addr uint64
- Len uint64
- Size uint32
- Headroom uint32
- Flags uint32
- _ [4]byte
-}
-
type CryptoUserAlg struct {
Name [64]int8
Driver_name [64]int8
diff --git a/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go b/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go
index 54f31be637..d9a13af468 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go
@@ -25,10 +25,13 @@ const (
SizeofIPv6Mreq = 20
SizeofICMPv6Filter = 32
SizeofIPv6MTUInfo = 32
+ SizeofInet4Pktinfo = 8
+ SizeofInet6Pktinfo = 20
SizeofLinger = 8
SizeofSockaddrInet4 = 16
SizeofSockaddrInet6 = 28
SizeofTCPInfo = 0x68
+ SizeofUcred = 12
)
type (
@@ -69,12 +72,17 @@ type Utimbuf struct {
}
type Utsname struct {
- Sysname [65]byte
- Nodename [65]byte
- Release [65]byte
- Version [65]byte
- Machine [65]byte
- Domainname [65]byte
+ Sysname [16]byte
+ Nodename [32]byte
+ Release [8]byte
+ Version [8]byte
+ Machine [16]byte
+}
+
+type Ucred struct {
+ Pid int32
+ Uid uint32
+ Gid uint32
}
type RawSockaddrInet4 struct {
@@ -325,7 +333,7 @@ type Statvfs_t struct {
}
type Statfs_t struct {
- Type uint32
+ Type uint64
Bsize uint64
Blocks uint64
Bfree uint64
@@ -336,6 +344,7 @@ type Statfs_t struct {
Namelen uint64
Frsize uint64
Flags uint64
+ _ [4]uint64
}
type direntLE struct {
@@ -412,3 +421,126 @@ type W_Mntent struct {
Quiesceowner [8]byte
_ [38]byte
}
+
+type EpollEvent struct {
+ Events uint32
+ _ int32
+ Fd int32
+ Pad int32
+}
+
+type InotifyEvent struct {
+ Wd int32
+ Mask uint32
+ Cookie uint32
+ Len uint32
+ Name string
+}
+
+const (
+ SizeofInotifyEvent = 0x10
+)
+
+type ConsMsg2 struct {
+ Cm2Format uint16
+ Cm2R1 uint16
+ Cm2Msglength uint32
+ Cm2Msg *byte
+ Cm2R2 [4]byte
+ Cm2R3 [4]byte
+ Cm2Routcde *uint32
+ Cm2Descr *uint32
+ Cm2Msgflag uint32
+ Cm2Token uint32
+ Cm2Msgid *uint32
+ Cm2R4 [4]byte
+ Cm2DomToken uint32
+ Cm2DomMsgid *uint32
+ Cm2ModCartptr *byte
+ Cm2ModConsidptr *byte
+ Cm2MsgCart [8]byte
+ Cm2MsgConsid [4]byte
+ Cm2R5 [12]byte
+}
+
+const (
+ CC_modify = 1
+ CC_stop = 2
+ CONSOLE_FORMAT_2 = 2
+ CONSOLE_FORMAT_3 = 3
+ CONSOLE_HRDCPY = 0x80000000
+)
+
+type OpenHow struct {
+ Flags uint64
+ Mode uint64
+ Resolve uint64
+}
+
+const SizeofOpenHow = 0x18
+
+const (
+ RESOLVE_CACHED = 0x20
+ RESOLVE_BENEATH = 0x8
+ RESOLVE_IN_ROOT = 0x10
+ RESOLVE_NO_MAGICLINKS = 0x2
+ RESOLVE_NO_SYMLINKS = 0x4
+ RESOLVE_NO_XDEV = 0x1
+)
+
+type Siginfo struct {
+ Signo int32
+ Errno int32
+ Code int32
+ Pid int32
+ Uid uint32
+ _ [44]byte
+}
+
+type SysvIpcPerm struct {
+ Uid uint32
+ Gid uint32
+ Cuid uint32
+ Cgid uint32
+ Mode int32
+}
+
+type SysvShmDesc struct {
+ Perm SysvIpcPerm
+ _ [4]byte
+ Lpid int32
+ Cpid int32
+ Nattch uint32
+ _ [4]byte
+ _ [4]byte
+ _ [4]byte
+ _ int32
+ _ uint8
+ _ uint8
+ _ uint16
+ _ *byte
+ Segsz uint64
+ Atime Time_t
+ Dtime Time_t
+ Ctime Time_t
+}
+
+type SysvShmDesc64 struct {
+ Perm SysvIpcPerm
+ _ [4]byte
+ Lpid int32
+ Cpid int32
+ Nattch uint32
+ _ [4]byte
+ _ [4]byte
+ _ [4]byte
+ _ int32
+ _ byte
+ _ uint8
+ _ uint16
+ _ *byte
+ Segsz uint64
+ Atime int64
+ Dtime int64
+ Ctime int64
+}
diff --git a/vendor/golang.org/x/sys/windows/aliases.go b/vendor/golang.org/x/sys/windows/aliases.go
index ce2d713d62..16f90560a2 100644
--- a/vendor/golang.org/x/sys/windows/aliases.go
+++ b/vendor/golang.org/x/sys/windows/aliases.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build windows && go1.9
+//go:build windows
package windows
diff --git a/vendor/golang.org/x/sys/windows/empty.s b/vendor/golang.org/x/sys/windows/empty.s
deleted file mode 100644
index ba64caca5d..0000000000
--- a/vendor/golang.org/x/sys/windows/empty.s
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright 2019 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build !go1.12
-
-// This file is here to allow bodyless functions with go:linkname for Go 1.11
-// and earlier (see https://golang.org/issue/23311).
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 44a8ff3ece..f91ee53945 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -142,11 +142,11 @@ github.com/eclipse/paho.golang/paho/log
github.com/eclipse/paho.golang/paho/session
github.com/eclipse/paho.golang/paho/session/state
github.com/eclipse/paho.golang/paho/store/memory
-# github.com/elastic/elastic-transport-go/v8 v8.5.0
+# github.com/elastic/elastic-transport-go/v8 v8.6.0
## explicit; go 1.20
github.com/elastic/elastic-transport-go/v8/elastictransport
github.com/elastic/elastic-transport-go/v8/elastictransport/version
-# github.com/elastic/go-elasticsearch/v8 v8.13.1
+# github.com/elastic/go-elasticsearch/v8 v8.14.0
## explicit; go 1.21
github.com/elastic/go-elasticsearch/v8
github.com/elastic/go-elasticsearch/v8/esapi
@@ -441,6 +441,7 @@ github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedataframeanalytics
github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter
github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob
github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot
+github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment
github.com/elastic/go-elasticsearch/v8/typedapi/ml/upgradejobsnapshot
github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate
github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector
@@ -1086,7 +1087,7 @@ golang.org/x/net/trace
## explicit; go 1.18
golang.org/x/sync/errgroup
golang.org/x/sync/singleflight
-# golang.org/x/sys v0.19.0
+# golang.org/x/sys v0.20.0
## explicit; go 1.18
golang.org/x/sys/unix
golang.org/x/sys/windows